diff options
author | Nikolay Borisov <nborisov@suse.com> | 2020-09-18 16:34:34 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-10-07 13:13:24 +0300 |
commit | 1f03d9cfda53d86e7822bf0dd5f0ef5d8fa6d1ad (patch) | |
tree | 7b92ad5955b1e1c94225733026b37d1105f17909 /fs | |
parent | 9a446d6a9fc7df48e53c54b161dfdfc6f5031d4b (diff) | |
download | linux-1f03d9cfda53d86e7822bf0dd5f0ef5d8fa6d1ad.tar.xz |
btrfs: remove extent_io_ops::readpage_end_io_hook
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/disk-io.c | 1 | ||||
-rw-r--r-- | fs/btrfs/extent_io.h | 5 | ||||
-rw-r--r-- | fs/btrfs/inode.c | 1 |
3 files changed, 1 insertions, 6 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 1c84a7ea9894..4c1f63924498 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -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 }; diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 3bbc25b816ea..68c40902e571 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -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); }; diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 982187b0cd59..204cd9d39894 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -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 }; /* |