summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-11-01 08:09:46 -0400
committerDavid Sterba <dsterba@suse.com>2018-12-17 08:51:27 -0500
commit5eaad97af8aeff38debe7d3c69ec3a0d71f8350f (patch)
tree904aa5357a122144f3bad4948157298f520c94e4 /fs/btrfs/ctree.h
parent06f2548f9d74a925a16967bb4ff3d860e0c6b33f (diff)
btrfs: Remove extent_io_ops::fill_delalloc
This callback is called only from writepage_delalloc which in turn is guaranteed to be called from the data page writeout path. In the end there is no reason to have the call to this function to be indrected via the extent_io_ops structure. This patch removes the callback definition, exports the function and calls it directly. 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> [ rename to btrfs_run_delalloc_range ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 68f322f600a0..3a4d19e6a8e9 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -3189,6 +3189,9 @@ int btrfs_prealloc_file_range_trans(struct inode *inode,
3189 struct btrfs_trans_handle *trans, int mode, 3189 struct btrfs_trans_handle *trans, int mode,
3190 u64 start, u64 num_bytes, u64 min_size, 3190 u64 start, u64 num_bytes, u64 min_size,
3191 loff_t actual_len, u64 *alloc_hint); 3191 loff_t actual_len, u64 *alloc_hint);
3192int btrfs_run_delalloc_range(void *private_data, struct page *locked_page,
3193 u64 start, u64 end, int *page_started, unsigned long *nr_written,
3194 struct writeback_control *wbc);
3192extern const struct dentry_operations btrfs_dentry_operations; 3195extern const struct dentry_operations btrfs_dentry_operations;
3193 3196
3194/* ioctl.c */ 3197/* ioctl.c */