aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'fs/overlayfs/inode.c')
-rw-r--r--fs/overlayfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c
index 0bb8347c0d8b..d293034ae2cb 100644
--- a/fs/overlayfs/inode.c
+++ b/fs/overlayfs/inode.c
@@ -54,7 +54,7 @@ int ovl_setattr(struct dentry *dentry, struct iattr *attr)
54 * inode_newsize_ok() will always check against MAX_LFS_FILESIZE and not 54 * inode_newsize_ok() will always check against MAX_LFS_FILESIZE and not
55 * check for a swapfile (which this won't be anyway). 55 * check for a swapfile (which this won't be anyway).
56 */ 56 */
57 err = inode_change_ok(dentry->d_inode, attr); 57 err = setattr_prepare(dentry, attr);
58 if (err) 58 if (err)
59 return err; 59 return err;
60 60