aboutsummaryrefslogtreecommitdiffstats
path: root/fs/attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/attr.c')
-rw-r--r--fs/attr.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/attr.c b/fs/attr.c
index 1f6a895e24e9..aeac826f4774 100644
--- a/fs/attr.c
+++ b/fs/attr.c
@@ -237,13 +237,10 @@ int notify_change(struct dentry * dentry, struct iattr * attr)
237 if (ia_valid & ATTR_SIZE) 237 if (ia_valid & ATTR_SIZE)
238 down_write(&dentry->d_inode->i_alloc_sem); 238 down_write(&dentry->d_inode->i_alloc_sem);
239 239
240 if (inode->i_op && inode->i_op->setattr) { 240 if (inode->i_op->setattr)
241 error = inode->i_op->setattr(dentry, attr); 241 error = inode->i_op->setattr(dentry, attr);
242 } else { 242 else
243 error = inode_change_ok(inode, attr); 243 error = simple_setattr(dentry, attr);
244 if (!error)
245 error = inode_setattr(inode, attr);
246 }
247 244
248 if (ia_valid & ATTR_SIZE) 245 if (ia_valid & ATTR_SIZE)
249 up_write(&dentry->d_inode->i_alloc_sem); 246 up_write(&dentry->d_inode->i_alloc_sem);