]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[XFS] Don't update i_size for directories and special files
authorChristoph Hellwig <hch@infradead.org>
Mon, 23 Jun 2008 03:25:25 +0000 (13:25 +1000)
committerNiv Sardi <xaiki@debian.org>
Mon, 28 Jul 2008 06:59:00 +0000 (16:59 +1000)
commite5700704b2b0853c059e424284cceeff3032ea28
treef1b4a42cdbf7a745491cbcb3966f300ad52401f0
parent8f112e3bc3508afc8d1612868d178359446c08fd
[XFS] 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.

SGI-PV: 981498

SGI-Modid: xfs-linux-melb:xfs-kern:31336a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Barry Naujok <bnaujok@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_iops.c