diff options
author | Filipe Manana <fdmanana@suse.com> | 2014-10-10 10:43:11 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-11-21 02:14:28 +0100 |
commit | 728404dacfddb5364d7256d821a2ea482159cbe7 (patch) | |
tree | adb45931cbe6104ad888f4cc2d43aa0951f8b8d0 /fs/btrfs/ctree.h | |
parent | Btrfs: correctly flush compressed data before/after direct IO (diff) | |
download | linux-728404dacfddb5364d7256d821a2ea482159cbe7.tar.xz linux-728404dacfddb5364d7256d821a2ea482159cbe7.zip |
Btrfs: add helper btrfs_fdatawrite_range
To avoid duplicating this double filemap_fdatawrite_range() call for
inodes with async extents (compressed writes) so often.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index fe69edda11fb..b72b35867a7f 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -3901,6 +3901,7 @@ int btrfs_dirty_pages(struct btrfs_root *root, struct inode *inode, struct page **pages, size_t num_pages, loff_t pos, size_t write_bytes, struct extent_state **cached); +int btrfs_fdatawrite_range(struct inode *inode, loff_t start, loff_t end); /* tree-defrag.c */ int btrfs_defrag_leaves(struct btrfs_trans_handle *trans, |