X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fattr.c;h=538e27959d3f7fec79a8a0647723830b2bb4a5b4;hb=c04ea8ae99d71182b525cb8e4d48dc2fde0dd0ee;hp=caf2aa521e2b4101e29e288ed1ed4b5fb895f226;hpb=ff95acb6733d41a8d45feb0e18b96df25e610e78;p=~andy%2Flinux diff --git a/fs/attr.c b/fs/attr.c index caf2aa521e2..538e27959d3 100644 --- a/fs/attr.c +++ b/fs/attr.c @@ -232,17 +232,11 @@ int notify_change(struct dentry * dentry, struct iattr * attr) if (error) return error; - if (ia_valid & ATTR_SIZE) - down_write(&dentry->d_inode->i_alloc_sem); - if (inode->i_op->setattr) error = inode->i_op->setattr(dentry, attr); else error = simple_setattr(dentry, attr); - if (ia_valid & ATTR_SIZE) - up_write(&dentry->d_inode->i_alloc_sem); - if (!error) fsnotify_change(dentry, ia_valid);