summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorNikolay Borisov2018-11-01 13:09:47 +0100
committerDavid Sterba2018-12-17 14:51:27 +0100
commitd75855b4518b525dbba4e461819b26bc5bb89a82 (patch)
tree543166d826ee87bf60e12ae38d27aa426cf6ebc5 /fs/btrfs/ctree.h
parentbtrfs: Remove extent_io_ops::fill_delalloc (diff)
downloadkernel-qcow2-linux-d75855b4518b525dbba4e461819b26bc5bb89a82.tar.gz
kernel-qcow2-linux-d75855b4518b525dbba4e461819b26bc5bb89a82.tar.xz
kernel-qcow2-linux-d75855b4518b525dbba4e461819b26bc5bb89a82.zip
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 3a4d19e6a8e9..a10240f5910f 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -3192,6 +3192,7 @@ int btrfs_prealloc_file_range_trans(struct inode *inode,
int btrfs_run_delalloc_range(void *private_data, struct page *locked_page,
u64 start, u64 end, int *page_started, unsigned long *nr_written,
struct writeback_control *wbc);
+int btrfs_writepage_cow_fixup(struct page *page, u64 start, u64 end);
extern const struct dentry_operations btrfs_dentry_operations;
/* ioctl.c */