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>
This commit is contained in:
@@ -1710,7 +1710,7 @@ xfs_inactive_truncate(
|
||||
/*
|
||||
* Log the inode size first to prevent stale data exposure in the event
|
||||
* of a system crash before the truncate completes. See the related
|
||||
* comment in xfs_setattr_size() for details.
|
||||
* comment in xfs_vn_setattr_size() for details.
|
||||
*/
|
||||
ip->i_d.di_size = 0;
|
||||
xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);
|
||||
|
Reference in New Issue
Block a user