projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wrappers for ->i_mutex access
[linux-block.git]
/
fs
/
ocfs2
/
aops.c
diff --git
a/fs/ocfs2/aops.c
b/fs/ocfs2/aops.c
index 7f604727f487b3680d7f145161288656dd1aaf80..794fd1587f34a3bc210d60770525a02f3cd59aba 100644
(file)
--- a/
fs/ocfs2/aops.c
+++ b/
fs/ocfs2/aops.c
@@
-2046,9
+2046,9
@@
static int ocfs2_try_to_free_truncate_log(struct ocfs2_super *osb,
int ret = 0;
unsigned int truncated_clusters;
int ret = 0;
unsigned int truncated_clusters;
-
mutex_lock(&osb->osb_tl_inode->i_mutex
);
+
inode_lock(osb->osb_tl_inode
);
truncated_clusters = osb->truncated_clusters;
truncated_clusters = osb->truncated_clusters;
-
mutex_unlock(&osb->osb_tl_inode->i_mutex
);
+
inode_unlock(osb->osb_tl_inode
);
/*
* Check whether we can succeed in allocating if we free
/*
* Check whether we can succeed in allocating if we free