diff options
author | Christoph Hellwig <hch@lst.de> | 2011-07-08 14:34:23 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2011-07-08 14:34:23 +0200 |
commit | c4ed4243c40f97ed5b7b121777bbbc6aeaa722f0 (patch) | |
tree | fda6054305f357705687016906a1ca254018c2e7 /fs/xfs/xfs_vnodeops.h | |
parent | dec58f1dfd30a3c3e9dadc808692f4e5cd922745 (diff) | |
download | linux-stable-c4ed4243c40f97ed5b7b121777bbbc6aeaa722f0.tar.gz linux-stable-c4ed4243c40f97ed5b7b121777bbbc6aeaa722f0.tar.bz2 linux-stable-c4ed4243c40f97ed5b7b121777bbbc6aeaa722f0.zip |
xfs: split xfs_setattr
Split up xfs_setattr into two functions, one for the complex truncate
handling, and one for the trivial attribute updates. Also move both
new routines to xfs_iops.c as they are fairly Linux-specific.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.h')
-rw-r--r-- | fs/xfs/xfs_vnodeops.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_vnodeops.h b/fs/xfs/xfs_vnodeops.h index 3bcd23353d6c..35d3d513e1e9 100644 --- a/fs/xfs/xfs_vnodeops.h +++ b/fs/xfs/xfs_vnodeops.h @@ -13,7 +13,8 @@ struct xfs_inode; struct xfs_iomap; -int xfs_setattr(struct xfs_inode *ip, struct iattr *vap, int flags); +int xfs_setattr_nonsize(struct xfs_inode *ip, struct iattr *vap, int flags); +int xfs_setattr_size(struct xfs_inode *ip, struct iattr *vap, int flags); #define XFS_ATTR_DMI 0x01 /* invocation from a DMI function */ #define XFS_ATTR_NONBLOCK 0x02 /* return EAGAIN if operation would block */ #define XFS_ATTR_NOLOCK 0x04 /* Don't grab any conflicting locks */ |