diff options
author | Jan Kara <jack@suse.cz> | 2016-05-26 12:46:43 (GMT) |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2016-09-22 08:56:19 (GMT) |
commit | 69bca80744eef58fa155e8042996b968fec17b26 (patch) | |
tree | 6b2de5926d4a916c8053778c59c069283bdbd7b3 /fs/xfs/xfs_iops.h | |
parent | 073931017b49d9458aa351605b43a7e34598caef (diff) | |
download | linux-69bca80744eef58fa155e8042996b968fec17b26.tar.xz |
xfs: Propagate dentry down to inode_change_ok()
To avoid clearing of capabilities or security related extended
attributes too early, inode_change_ok() will need to take dentry instead
of inode. Propagate dentry down to functions calling inode_change_ok().
This is rather straightforward except for xfs_set_mode() function which
does not have dentry easily available. Luckily that function does not
call inode_change_ok() anyway so we just have to do a little dance with
function prototypes.
Acked-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/xfs/xfs_iops.h')
-rw-r--r-- | fs/xfs/xfs_iops.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_iops.h b/fs/xfs/xfs_iops.h index a0f84ab..0259a38 100644 --- a/fs/xfs/xfs_iops.h +++ b/fs/xfs/xfs_iops.h @@ -33,6 +33,7 @@ extern ssize_t xfs_vn_listxattr(struct dentry *, char *data, size_t size); extern void xfs_setattr_time(struct xfs_inode *ip, struct iattr *iattr); extern int xfs_setattr_nonsize(struct xfs_inode *ip, struct iattr *vap, int flags); -extern int xfs_setattr_size(struct xfs_inode *ip, struct iattr *vap); +extern int xfs_vn_setattr_nonsize(struct dentry *dentry, struct iattr *vap); +extern int xfs_vn_setattr_size(struct dentry *dentry, struct iattr *vap); #endif /* __XFS_IOPS_H__ */ |