X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fjfs%2Fxattr.c;fp=fs%2Fjfs%2Fxattr.c;h=cba307d772af962a8edcf46b0e609945ea38775b;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=eead5883c0b5fd386feaa4591cd93fa667603613;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c index eead5883c..cba307d77 100644 --- a/fs/jfs/xattr.c +++ b/fs/jfs/xattr.c @@ -956,13 +956,13 @@ int jfs_setxattr(struct dentry *dentry, const char *name, const void *value, } tid = txBegin(inode->i_sb, 0); - mutex_lock(&ji->commit_mutex); + down(&ji->commit_sem); rc = __jfs_setxattr(tid, dentry->d_inode, name, value, value_len, flags); if (!rc) rc = txCommit(tid, 1, &inode, 0); txEnd(tid); - mutex_unlock(&ji->commit_mutex); + up(&ji->commit_sem); return rc; } @@ -1115,12 +1115,12 @@ int jfs_removexattr(struct dentry *dentry, const char *name) return rc; tid = txBegin(inode->i_sb, 0); - mutex_lock(&ji->commit_mutex); + down(&ji->commit_sem); rc = __jfs_setxattr(tid, dentry->d_inode, name, NULL, 0, XATTR_REPLACE); if (!rc) rc = txCommit(tid, 1, &inode, 0); txEnd(tid); - mutex_unlock(&ji->commit_mutex); + up(&ji->commit_sem); return rc; }