X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=fs%2Fecryptfs%2Finode.c;h=1623ebf25e5121950c4a4f9dc9edf700988146fe;hb=9c3580aa52195699065bc2d7242b1c7e3e6903fa;hp=a7d5d7d2b2a7d137d832397ae40d5fc8ab5c4485;hpb=18d1dbf1d401e8f9d74cf1cf799fdb19cff150c6;p=linux-2.6-omap-h63xx.git diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index a7d5d7d2b2a..1623ebf25e5 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -908,7 +908,9 @@ static int ecryptfs_setattr(struct dentry *dentry, struct iattr *ia) if (ia->ia_valid & (ATTR_KILL_SUID | ATTR_KILL_SGID)) ia->ia_valid &= ~ATTR_MODE; + mutex_lock(&lower_dentry->d_inode->i_mutex); rc = notify_change(lower_dentry, ia); + mutex_unlock(&lower_dentry->d_inode->i_mutex); out: fsstack_copy_attr_all(inode, lower_inode, NULL); return rc;