diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-01 20:51:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-01 20:51:54 -0400 |
commit | 20b4fb485227404329e41ad15588afad3df23050 (patch) | |
tree | f3e099f0ab3da8a93b447203e294d2bb22f6dc05 /fs/ocfs2 | |
parent | b9394d8a657cd3c064fa432aa0905c1b58b38fe9 (diff) | |
parent | ac3e3c5b1164397656df81b9e9ab4991184d3236 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull VFS updates from Al Viro,
Misc cleanups all over the place, mainly wrt /proc interfaces (switch
create_proc_entry to proc_create(), get rid of the deprecated
create_proc_read_entry() in favor of using proc_create_data() and
seq_file etc).
7kloc removed.
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (204 commits)
don't bother with deferred freeing of fdtables
proc: Move non-public stuff from linux/proc_fs.h to fs/proc/internal.h
proc: Make the PROC_I() and PDE() macros internal to procfs
proc: Supply a function to remove a proc entry by PDE
take cgroup_open() and cpuset_open() to fs/proc/base.c
ppc: Clean up scanlog
ppc: Clean up rtas_flash driver somewhat
hostap: proc: Use remove_proc_subtree()
drm: proc: Use remove_proc_subtree()
drm: proc: Use minor->index to label things, not PDE->name
drm: Constify drm_proc_list[]
zoran: Don't print proc_dir_entry data in debug
reiserfs: Don't access the proc_dir_entry in r_open(), r_start() r_show()
proc: Supply an accessor for getting the data from a PDE's parent
airo: Use remove_proc_subtree()
rtl8192u: Don't need to save device proc dir PDE
rtl8187se: Use a dir under /proc/net/r8180/
proc: Add proc_mkdir_data()
proc: Move some bits from linux/proc_fs.h to linux/{of.h,signal.h,tty.h}
proc: Move PDE_NET() to fs/proc/proc_net.c
...
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/file.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 6474cb44004d..8a7509f9e6f5 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c | |||
@@ -2248,8 +2248,6 @@ static ssize_t ocfs2_file_aio_write(struct kiocb *iocb, | |||
2248 | if (iocb->ki_left == 0) | 2248 | if (iocb->ki_left == 0) |
2249 | return 0; | 2249 | return 0; |
2250 | 2250 | ||
2251 | sb_start_write(inode->i_sb); | ||
2252 | |||
2253 | appending = file->f_flags & O_APPEND ? 1 : 0; | 2251 | appending = file->f_flags & O_APPEND ? 1 : 0; |
2254 | direct_io = file->f_flags & O_DIRECT ? 1 : 0; | 2252 | direct_io = file->f_flags & O_DIRECT ? 1 : 0; |
2255 | 2253 | ||
@@ -2423,7 +2421,6 @@ out_sems: | |||
2423 | ocfs2_iocb_clear_sem_locked(iocb); | 2421 | ocfs2_iocb_clear_sem_locked(iocb); |
2424 | 2422 | ||
2425 | mutex_unlock(&inode->i_mutex); | 2423 | mutex_unlock(&inode->i_mutex); |
2426 | sb_end_write(inode->i_sb); | ||
2427 | 2424 | ||
2428 | if (written) | 2425 | if (written) |
2429 | ret = written; | 2426 | ret = written; |
@@ -2468,8 +2465,7 @@ static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe, | |||
2468 | out->f_path.dentry->d_name.len, | 2465 | out->f_path.dentry->d_name.len, |
2469 | out->f_path.dentry->d_name.name, len); | 2466 | out->f_path.dentry->d_name.name, len); |
2470 | 2467 | ||
2471 | if (pipe->inode) | 2468 | pipe_lock(pipe); |
2472 | mutex_lock_nested(&pipe->inode->i_mutex, I_MUTEX_PARENT); | ||
2473 | 2469 | ||
2474 | splice_from_pipe_begin(&sd); | 2470 | splice_from_pipe_begin(&sd); |
2475 | do { | 2471 | do { |
@@ -2489,8 +2485,7 @@ static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe, | |||
2489 | } while (ret > 0); | 2485 | } while (ret > 0); |
2490 | splice_from_pipe_end(pipe, &sd); | 2486 | splice_from_pipe_end(pipe, &sd); |
2491 | 2487 | ||
2492 | if (pipe->inode) | 2488 | pipe_unlock(pipe); |
2493 | mutex_unlock(&pipe->inode->i_mutex); | ||
2494 | 2489 | ||
2495 | if (sd.num_spliced) | 2490 | if (sd.num_spliced) |
2496 | ret = sd.num_spliced; | 2491 | ret = sd.num_spliced; |