Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-8056 llite: use inode_lock to access i_mutex
[fs/lustre-release.git]
/
lustre
/
include
/
lvfs.h
diff --git
a/lustre/include/lvfs.h
b/lustre/include/lvfs.h
index
be4187f
..
2bdee77
100644
(file)
--- a/
lustre/include/lvfs.h
+++ b/
lustre/include/lvfs.h
@@
-86,9
+86,9
@@
ll_lookup_one_len(const char *fid_name, struct dentry *dparent,
{
struct dentry *dchild;
-
mutex_lock(&dparent->d_inode->i_mutex
);
+
inode_lock(dparent->d_inode
);
dchild = lookup_one_len(fid_name, dparent, fid_namelen);
-
mutex_unlock(&dparent->d_inode->i_mutex
);
+
inode_unlock(dparent->d_inode
);
if (IS_ERR(dchild) || dchild->d_inode == NULL)
return dchild;