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

Kirill Tkhai ktkhai at virtuozzo.com
Wed May 20 19:03:30 MSK 2020


Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 include/linux/fs.h |    2 --
 mm/filemap.c       |    3 ---
 2 files changed, 5 deletions(-)

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();
 }




More information about the Devel mailing list