aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2')
-rw-r--r--fs/ocfs2/file.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 1c93e771e950..8a7509f9e6f5 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -2465,8 +2465,7 @@ static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe,
2465 out->f_path.dentry->d_name.len, 2465 out->f_path.dentry->d_name.len,
2466 out->f_path.dentry->d_name.name, len); 2466 out->f_path.dentry->d_name.name, len);
2467 2467
2468 if (pipe->inode) 2468 pipe_lock(pipe);
2469 mutex_lock_nested(&pipe->inode->i_mutex, I_MUTEX_PARENT);
2470 2469
2471 splice_from_pipe_begin(&sd); 2470 splice_from_pipe_begin(&sd);
2472 do { 2471 do {
@@ -2486,8 +2485,7 @@ static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe,
2486 } while (ret > 0); 2485 } while (ret > 0);
2487 splice_from_pipe_end(pipe, &sd); 2486 splice_from_pipe_end(pipe, &sd);
2488 2487
2489 if (pipe->inode) 2488 pipe_unlock(pipe);
2490 mutex_unlock(&pipe->inode->i_mutex);
2491 2489
2492 if (sd.num_spliced) 2490 if (sd.num_spliced)
2493 ret = sd.num_spliced; 2491 ret = sd.num_spliced;