projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48f35b7
)
ocfs2: don't open-code inode_lock/inode_unlock
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 12 Apr 2016 04:41:01 +0000
(
00:41
-0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 2 May 2016 23:47:22 +0000
(19:47 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/aops.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/aops.c
b/fs/ocfs2/aops.c
index ad1577348a92d05f05e099e0b7823a439b66a858..abb0b0bf7c7f5674cafb119d4f9062160881aa89 100644
(file)
--- a/
fs/ocfs2/aops.c
+++ b/
fs/ocfs2/aops.c
@@
-2311,7
+2311,7
@@
static void ocfs2_dio_end_io_write(struct inode *inode,
/* ocfs2_file_write_iter will get i_mutex, so we need not lock if we
* are in that context. */
if (dwc->dw_writer_pid != task_pid_nr(current)) {
-
mutex_lock(&inode->i_mutex
);
+
inode_lock(inode
);
locked = 1;
}
@@
-2390,7
+2390,7
@@
out:
ocfs2_free_alloc_context(meta_ac);
ocfs2_run_deallocs(osb, &dealloc);
if (locked)
-
mutex_unlock(&inode->i_mutex
);
+
inode_unlock(inode
);
ocfs2_dio_free_write_ctx(inode, dwc);
}