aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2008-05-07 03:22:39 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-05-07 03:29:00 -0400
commit7f3d4ee108c184ab215036051087aaaaa8de7661 (patch)
tree373f4f928f0687ca84478964b43c26e3ec9cec70 /include/linux/fs.h
parent07416d29bcf608257f1e5280642dcbe0021518a3 (diff)
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>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 7e0fa9e64479..f413085f748e 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1816,7 +1816,6 @@ extern void iget_failed(struct inode *);
1816extern void clear_inode(struct inode *); 1816extern void clear_inode(struct inode *);
1817extern void destroy_inode(struct inode *); 1817extern void destroy_inode(struct inode *);
1818extern struct inode *new_inode(struct super_block *); 1818extern struct inode *new_inode(struct super_block *);
1819extern int __remove_suid(struct dentry *, int);
1820extern int should_remove_suid(struct dentry *); 1819extern int should_remove_suid(struct dentry *);
1821extern int remove_suid(struct dentry *); 1820extern int remove_suid(struct dentry *);
1822 1821