OSDN Git Service

btrfs: Remove extent_io_ops::writepage_start_hook
authorNikolay Borisov <nborisov@suse.com>
Thu, 1 Nov 2018 12:09:47 +0000 (14:09 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:27 +0000 (14:51 +0100)
commitd75855b4518b525dbba4e461819b26bc5bb89a82
tree543166d826ee87bf60e12ae38d27aa426cf6ebc5
parent5eaad97af8aeff38debe7d3c69ec3a0d71f8350f
btrfs: Remove extent_io_ops::writepage_start_hook

This hook is called only from __extent_writepage_io which is already
called only from the data page writeout path. So there is no need to
make an indirect call via extent_io_ops. This patch just removes the
callback definition, exports the callback function and calls it directly
at the only call site. Also give the function a more descriptive name.
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/ctree.h
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c