diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-11-01 14:09:53 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-12-17 14:51:29 +0100 |
commit | abbb55f4cd56dffb20ba7dd8dfc53154c79934f1 (patch) | |
tree | c0ce69c4035be9e1468856bf7ef5de7314b3cfc7 /fs/btrfs/inode.c | |
parent | 5c848198aad3ad1c68309aa7002fa571a540568c (diff) |
btrfs: Remove extent_io_ops::split_extent_hook callback
This is the counterpart to merge_extent_hook, similarly, it's used only
for data/freespace inodes so let's remove it, rename it and call it
directly where necessary. No functional changes.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
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/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 9111ae9eb5ad..a097f5fde31d 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -1609,10 +1609,9 @@ int btrfs_run_delalloc_range(void *private_data, struct page *locked_page, return ret; } -static void btrfs_split_extent_hook(void *private_data, - struct extent_state *orig, u64 split) +void btrfs_split_delalloc_extent(struct inode *inode, + struct extent_state *orig, u64 split) { - struct inode *inode = private_data; u64 size; /* not delalloc, ignore it */ @@ -10504,9 +10503,6 @@ static const struct extent_io_ops btrfs_extent_io_ops = { .submit_bio_hook = btrfs_submit_bio_hook, .readpage_end_io_hook = btrfs_readpage_end_io_hook, .readpage_io_failed_hook = btrfs_readpage_io_failed_hook, - - /* optional callbacks */ - .split_extent_hook = btrfs_split_extent_hook, }; /* |