[rh7,05/30] mm: Kill unused ->direct_IO_page

Submitted by Kirill Tkhai on May 20, 2020, 4:03 p.m.

Details

Message ID 158999060770.2234365.15146401022862144998.stgit@localhost.localdomain
State New
Series "fs, direct_IO: Switch to iov_iter and allow bio_vec for ext4"
Headers show

Commit Message

Kirill Tkhai May 20, 2020, 4:03 p.m.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 include/linux/fs.h |    2 --
 mm/filemap.c       |    3 ---
 2 files changed, 5 deletions(-)

Patch hide | download patch | download mbox

diff --git a/include/linux/fs.h b/include/linux/fs.h
index 4992b89b3cba..d86dfce69845 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -578,8 +578,6 @@  struct address_space_operations {
 			loff_t offset, unsigned long nr_segs);
 	ssize_t (*direct_IO_bvec)(int, struct kiocb *, struct bio_vec *bvec,
 			loff_t offset, unsigned long bvec_len);
-	ssize_t (*direct_IO_page)(int, struct kiocb *, struct page *page,
-			loff_t offset);
 	int (*get_xip_mem)(struct address_space *, pgoff_t, int,
 						void **, unsigned long *);
 	RH_KABI_DEPRECATE_FN(int, get_xip_mem, struct address_space *, pgoff_t,
diff --git a/mm/filemap.c b/mm/filemap.c
index cd72517769f4..3fe13fbb8576 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1998,9 +1998,6 @@  static ssize_t mapping_direct_IO(struct address_space *mapping, int rw,
 		return mapping->a_ops->direct_IO_bvec(rw, iocb,
 						      iov_iter_bvec(iter), pos,
 						      iter->nr_segs);
-	else if (iov_iter_has_page(iter))
-		return mapping->a_ops->direct_IO_page(rw, iocb,
-						      iov_iter_page(iter), pos);
 	else
 		BUG();
 }