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/9p/vfs_file.c | |
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/9p/vfs_file.c')
-rw-r--r-- | fs/9p/vfs_file.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index 55cc9c80e187..d7fcb775311e 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c | |||
@@ -641,8 +641,6 @@ static const struct vm_operations_struct v9fs_mmap_file_vm_ops = { | |||
641 | 641 | ||
642 | const struct file_operations v9fs_cached_file_operations = { | 642 | const struct file_operations v9fs_cached_file_operations = { |
643 | .llseek = generic_file_llseek, | 643 | .llseek = generic_file_llseek, |
644 | .read = new_sync_read, | ||
645 | .write = new_sync_write, | ||
646 | .read_iter = generic_file_read_iter, | 644 | .read_iter = generic_file_read_iter, |
647 | .write_iter = generic_file_write_iter, | 645 | .write_iter = generic_file_write_iter, |
648 | .open = v9fs_file_open, | 646 | .open = v9fs_file_open, |
@@ -654,8 +652,6 @@ const struct file_operations v9fs_cached_file_operations = { | |||
654 | 652 | ||
655 | const struct file_operations v9fs_cached_file_operations_dotl = { | 653 | const struct file_operations v9fs_cached_file_operations_dotl = { |
656 | .llseek = generic_file_llseek, | 654 | .llseek = generic_file_llseek, |
657 | .read = new_sync_read, | ||
658 | .write = new_sync_write, | ||
659 | .read_iter = generic_file_read_iter, | 655 | .read_iter = generic_file_read_iter, |
660 | .write_iter = generic_file_write_iter, | 656 | .write_iter = generic_file_write_iter, |
661 | .open = v9fs_file_open, | 657 | .open = v9fs_file_open, |
@@ -668,8 +664,6 @@ const struct file_operations v9fs_cached_file_operations_dotl = { | |||
668 | 664 | ||
669 | const struct file_operations v9fs_file_operations = { | 665 | const struct file_operations v9fs_file_operations = { |
670 | .llseek = generic_file_llseek, | 666 | .llseek = generic_file_llseek, |
671 | .read = new_sync_read, | ||
672 | .write = new_sync_write, | ||
673 | .read_iter = v9fs_file_read_iter, | 667 | .read_iter = v9fs_file_read_iter, |
674 | .write_iter = v9fs_file_write_iter, | 668 | .write_iter = v9fs_file_write_iter, |
675 | .open = v9fs_file_open, | 669 | .open = v9fs_file_open, |
@@ -681,8 +675,6 @@ const struct file_operations v9fs_file_operations = { | |||
681 | 675 | ||
682 | const struct file_operations v9fs_file_operations_dotl = { | 676 | const struct file_operations v9fs_file_operations_dotl = { |
683 | .llseek = generic_file_llseek, | 677 | .llseek = generic_file_llseek, |
684 | .read = new_sync_read, | ||
685 | .write = new_sync_write, | ||
686 | .read_iter = v9fs_file_read_iter, | 678 | .read_iter = v9fs_file_read_iter, |
687 | .write_iter = v9fs_file_write_iter, | 679 | .write_iter = v9fs_file_write_iter, |
688 | .open = v9fs_file_open, | 680 | .open = v9fs_file_open, |
@@ -695,8 +687,6 @@ const struct file_operations v9fs_file_operations_dotl = { | |||
695 | 687 | ||
696 | const struct file_operations v9fs_mmap_file_operations = { | 688 | const struct file_operations v9fs_mmap_file_operations = { |
697 | .llseek = generic_file_llseek, | 689 | .llseek = generic_file_llseek, |
698 | .read = new_sync_read, | ||
699 | .write = new_sync_write, | ||
700 | .read_iter = v9fs_mmap_file_read_iter, | 690 | .read_iter = v9fs_mmap_file_read_iter, |
701 | .write_iter = v9fs_mmap_file_write_iter, | 691 | .write_iter = v9fs_mmap_file_write_iter, |
702 | .open = v9fs_file_open, | 692 | .open = v9fs_file_open, |
@@ -708,8 +698,6 @@ const struct file_operations v9fs_mmap_file_operations = { | |||
708 | 698 | ||
709 | const struct file_operations v9fs_mmap_file_operations_dotl = { | 699 | const struct file_operations v9fs_mmap_file_operations_dotl = { |
710 | .llseek = generic_file_llseek, | 700 | .llseek = generic_file_llseek, |
711 | .read = new_sync_read, | ||
712 | .write = new_sync_write, | ||
713 | .read_iter = v9fs_mmap_file_read_iter, | 701 | .read_iter = v9fs_mmap_file_read_iter, |
714 | .write_iter = v9fs_mmap_file_write_iter, | 702 | .write_iter = v9fs_mmap_file_write_iter, |
715 | .open = v9fs_file_open, | 703 | .open = v9fs_file_open, |