aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fat/file.c')
-rw-r--r--fs/fat/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/file.c b/fs/fat/file.c
index a08f1039909a..1254f8438f20 100644
--- a/fs/fat/file.c
+++ b/fs/fat/file.c
@@ -389,7 +389,7 @@ int fat_setattr(struct dentry *dentry, struct iattr *attr)
389 attr->ia_valid &= ~TIMES_SET_FLAGS; 389 attr->ia_valid &= ~TIMES_SET_FLAGS;
390 } 390 }
391 391
392 error = inode_change_ok(inode, attr); 392 error = setattr_prepare(dentry, attr);
393 attr->ia_valid = ia_valid; 393 attr->ia_valid = ia_valid;
394 if (error) { 394 if (error) {
395 if (sbi->options.quiet) 395 if (sbi->options.quiet)