]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove extent_io_ops::writepage_end_io_hook
authorNikolay Borisov <nborisov@suse.com>
Thu, 1 Nov 2018 12:09:48 +0000 (14:09 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:28 +0000 (14:51 +0100)
commit49446f08c4e9b037514b2ecafca66b515af8a5f1
tree905dbcb6f508631e1aa496f437172793585a9632
parent9abe82629f474dab30e3ec81ed8bb47208d7f34f
btrfs: Remove extent_io_ops::writepage_end_io_hook

This callback is ony ever called for data page writeout so there is no
need to actually abstract it via extent_io_ops. Lets just export it,
remove the definition of the callback and call it directly in the
functions that invoke the callback. Also rename the function to
btrfs_writepage_endio_finish_ordered since what it really does is
account finished io in the ordered extent data structures.  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>
fs/btrfs/compression.c
fs/btrfs/ctree.h
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c