Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
7b9743eb
Commit
7b9743eb
authored
Apr 12, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ocfs2: don't open-code inode_lock/inode_unlock
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
48f35b7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/ocfs2/aops.c
fs/ocfs2/aops.c
+2
-2
No files found.
fs/ocfs2/aops.c
View file @
7b9743eb
...
...
@@ -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 @@ static void ocfs2_dio_end_io_write(struct inode *inode,
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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment