btrfs: remove extent_io_ops::readpage_end_io_hook
authorNikolay Borisov <nborisov@suse.com>
Fri, 18 Sep 2020 13:34:34 +0000 (16:34 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:13:24 +0000 (12:13 +0200)
It's no longer used so let's remove it.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c

index 1c84a7ea9894e1f5d25451b67ea72a54b2d499c3..4c1f63924498d714faef8082a6f6846102f8a87c 100644 (file)
@@ -4638,5 +4638,4 @@ static int btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info)
 static const struct extent_io_ops btree_extent_io_ops = {
        /* mandatory callbacks */
        .submit_bio_hook = btree_submit_bio_hook,
-       .readpage_end_io_hook = NULL
 };
index 3bbc25b816eaf6fabf809611e84a5d0c32e0d8dc..68c40902e5714a56cd28125a8877361767fae75e 100644 (file)
@@ -76,13 +76,10 @@ typedef blk_status_t (extent_submit_bio_start_t)(void *private_data,
 
 struct extent_io_ops {
        /*
-        * The following callbacks must be always defined, the function
+        * The following callback must be always defined, the function
         * pointer will be called unconditionally.
         */
        submit_bio_hook_t *submit_bio_hook;
-       int (*readpage_end_io_hook)(struct btrfs_io_bio *io_bio, u64 phy_offset,
-                                   struct page *page, u64 start, u64 end,
-                                   int mirror);
 };
 
 
index 982187b0cd595ae54c74b459eab8008df739460b..204cd9d39894bd011a8925eaf18a58d34c98fee9 100644 (file)
@@ -10260,7 +10260,6 @@ static const struct file_operations btrfs_dir_file_operations = {
 static const struct extent_io_ops btrfs_extent_io_ops = {
        /* mandatory callbacks */
        .submit_bio_hook = btrfs_submit_bio_hook,
-       .readpage_end_io_hook = NULL
 };
 
 /*