xfs
[Top] [All Lists]

TAKE 981498 - Don't update i_size for directories and special files

To: sgi.bugs.xfs@xxxxxxxxxxxx
Subject: TAKE 981498 - Don't update i_size for directories and special files
From: bnaujok@xxxxxxx (Barry Naujok)
Date: Fri, 20 Jun 2008 11:12:03 +1000 (EST)
Cc: xfs@xxxxxxxxxxx
Sender: xfs-bounce@xxxxxxxxxxx
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



<Prev in Thread] Current Thread [Next in Thread>
  • TAKE 981498 - Don't update i_size for directories and special files, Barry Naujok <=