]> git.baikalelectronics.ru Git - kernel.git/commit
remove inode_setattr
authorChristoph Hellwig <hch@lst.de>
Fri, 4 Jun 2010 09:30:02 +0000 (11:30 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Aug 2010 20:47:37 +0000 (16:47 -0400)
commit54d3128311e7a76c9285c32cb9bc4aaa7d20b932
tree2be221c205cb5579652a6063e8ee27d1c72d1bbd
parent840540f573ee16559f4a7725bd87c7da41a638af
remove inode_setattr

Replace inode_setattr with opencoded variants of it in all callers.  This
moves the remaining call to vmtruncate into the filesystem methods where it
can be replaced with the proper truncate sequence.

In a few cases it was obvious that we would never end up calling vmtruncate
so it was left out in the opencoded variant:

 spufs: explicitly checks for ATTR_SIZE earlier
 btrfs,hugetlbfs,logfs,dlmfs: explicitly clears ATTR_SIZE earlier
 ufs: contains an opencoded simple_seattr + truncate that sets the filesize just above

In addition to that ncpfs called inode_setattr with handcrafted iattrs,
which allowed to trim down the opencoded variant.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
35 files changed:
arch/powerpc/platforms/cell/spufs/inode.c
drivers/staging/pohmelfs/inode.c
fs/9p/vfs_inode.c
fs/affs/inode.c
fs/attr.c
fs/btrfs/inode.c
fs/cifs/inode.c
fs/exofs/inode.c
fs/ext3/inode.c
fs/ext4/inode.c
fs/gfs2/inode.c
fs/gfs2/ops_inode.c
fs/gfs2/xattr.c
fs/hfs/inode.c
fs/hfsplus/inode.c
fs/hostfs/hostfs_kern.c
fs/hpfs/inode.c
fs/hugetlbfs/inode.c
fs/jfs/file.c
fs/logfs/file.c
fs/minix/file.c
fs/ncpfs/inode.c
fs/nilfs2/inode.c
fs/ntfs/inode.c
fs/ocfs2/dlmfs/dlmfs.c
fs/ocfs2/file.c
fs/omfs/file.c
fs/proc/base.c
fs/proc/generic.c
fs/proc/proc_sysctl.c
fs/reiserfs/inode.c
fs/sysv/file.c
fs/udf/file.c
fs/ufs/truncate.c
include/linux/fs.h