Fix xfs_ichgtime()s broken usage of I_SYNC
The recent I_LOCK->I_SYNC changes mistakenly changed xfs_ichgtime to
look at I_SYNC instead of I_LOCK. This was incorrect and prevents newly
created inodes from moving to the dirty list. Change this to the correct
check which is for I_NEW, not I_LOCK or I_SYNC so that behaviour is
correct.
Date: Thu Dec 6 16:59:52 AEDT 2007
Workarea: chook.melbourne.sgi.com:/build/dgc/isms/2.6.x-xfs
Inspected by: lachlan@xxxxxxx
The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb
Modid: xfs-linux-melb:xfs-kern:30204a
fs/xfs/linux-2.6/xfs_iops.c - 1.271 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_iops.c.diff?r1=text&tr1=1.271&r2=text&tr2=1.270&f=h
- Use I_NEW in xfs_ichgtime instead of I_SYNC so that new inodes are
moved to the dirty list correctly.
|