Don't update i_size for directories and special files
The core kernel uses vfs_getattr to look at the inode size and similar
attributes, so there is no need to keep i_size uptodate for directories
or special files. This means we can remove xfs_validate_fields because
the I/O path already keeps i_size uptodate for regular files.
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Date: Fri Jun 20 11:11:11 AEST 2008
Workarea: chook.melbourne.sgi.com:/home/bnaujok/isms/2.6.x-xfs
Inspected by: bnaujok
The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb
Modid: xfs-linux-melb:xfs-kern:31336a
fs/xfs/linux-2.6/xfs_iops.c - 1.291 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_iops.c.diff?r1=text&tr1=1.291&r2=text&tr2=1.290&f=h
- Don't update i_size for directories and special files
|