vfs: splice remove_suid() cleanup
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 7 May 2008 07:22:39 +0000 (09:22 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 7 May 2008 07:29:00 +0000 (09:29 +0200)
commit7f3d4ee108c184ab215036051087aaaaa8de7661
tree373f4f928f0687ca84478964b43c26e3ec9cec70
parent07416d29bcf608257f1e5280642dcbe0021518a3
vfs: splice remove_suid() cleanup

generic_file_splice_write() duplicates remove_suid() just because it
doesn't hold i_mutex.  But it grabs i_mutex inside splice_from_pipe()
anyway, so this is rather pointless.

Move locking to generic_file_splice_write() and call remove_suid() and
__splice_from_pipe() instead.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/splice.c
include/linux/fs.h
mm/filemap.c