diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-03 15:41:18 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-11 22:29:40 -0400 |
commit | 5d5d568975307877e9195f5305f4240e506a2807 (patch) | |
tree | b58d5b1af9e77189357b95f5cb0dc635bba65285 /fs/gfs2 | |
parent | 86cc05840a0da1afcb6b8151b53f3b606457c91b (diff) |
make new_sync_{read,write}() static
All places outside of core VFS that checked ->read and ->write for being NULL or
called the methods directly are gone now, so NULL {read,write} with non-NULL
{read,write}_iter will do the right thing in all cases.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/file.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index f6fc412b1100..614bb42cb7e1 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c | |||
@@ -1064,9 +1064,7 @@ static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl) | |||
1064 | 1064 | ||
1065 | const struct file_operations gfs2_file_fops = { | 1065 | const struct file_operations gfs2_file_fops = { |
1066 | .llseek = gfs2_llseek, | 1066 | .llseek = gfs2_llseek, |
1067 | .read = new_sync_read, | ||
1068 | .read_iter = generic_file_read_iter, | 1067 | .read_iter = generic_file_read_iter, |
1069 | .write = new_sync_write, | ||
1070 | .write_iter = gfs2_file_write_iter, | 1068 | .write_iter = gfs2_file_write_iter, |
1071 | .unlocked_ioctl = gfs2_ioctl, | 1069 | .unlocked_ioctl = gfs2_ioctl, |
1072 | .mmap = gfs2_mmap, | 1070 | .mmap = gfs2_mmap, |
@@ -1096,9 +1094,7 @@ const struct file_operations gfs2_dir_fops = { | |||
1096 | 1094 | ||
1097 | const struct file_operations gfs2_file_fops_nolock = { | 1095 | const struct file_operations gfs2_file_fops_nolock = { |
1098 | .llseek = gfs2_llseek, | 1096 | .llseek = gfs2_llseek, |
1099 | .read = new_sync_read, | ||
1100 | .read_iter = generic_file_read_iter, | 1097 | .read_iter = generic_file_read_iter, |
1101 | .write = new_sync_write, | ||
1102 | .write_iter = gfs2_file_write_iter, | 1098 | .write_iter = gfs2_file_write_iter, |
1103 | .unlocked_ioctl = gfs2_ioctl, | 1099 | .unlocked_ioctl = gfs2_ioctl, |
1104 | .mmap = gfs2_mmap, | 1100 | .mmap = gfs2_mmap, |