diff options
Diffstat (limited to 'fs/ecryptfs/inode.c')
-rw-r--r-- | fs/ecryptfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index fc850b55db67..661dd53f0040 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c | |||
@@ -942,7 +942,7 @@ static int ecryptfs_setattr(struct dentry *dentry, struct iattr *ia) | |||
942 | } | 942 | } |
943 | mutex_unlock(&crypt_stat->cs_mutex); | 943 | mutex_unlock(&crypt_stat->cs_mutex); |
944 | 944 | ||
945 | rc = inode_change_ok(inode, ia); | 945 | rc = setattr_prepare(dentry, ia); |
946 | if (rc) | 946 | if (rc) |
947 | goto out; | 947 | goto out; |
948 | if (ia->ia_valid & ATTR_SIZE) { | 948 | if (ia->ia_valid & ATTR_SIZE) { |