diff options
author | Josef Bacik <josef@toxicpanda.com> | 2022-09-12 12:27:44 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-09-29 17:08:28 +0200 |
commit | 1daedb1d6bf24c7185e00cd341404f262f8de7c8 (patch) | |
tree | 5b3411ade991ec8ea12cb778b028992e426ebad3 /fs/btrfs/delalloc-space.h | |
parent | 26ce91144631a402ff82c93358d8880326a7caa3 (diff) |
btrfs: add the ability to use NO_FLUSH for data reservations
In order to accommodate NOWAIT IOCB's we need to be able to do NO_FLUSH
data reservations, so plumb this through the delalloc reservation
system.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Stefan Roesch <shr@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/delalloc-space.h')
-rw-r--r-- | fs/btrfs/delalloc-space.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/delalloc-space.h b/fs/btrfs/delalloc-space.h index 28bf5c3ef430..e07d46043455 100644 --- a/fs/btrfs/delalloc-space.h +++ b/fs/btrfs/delalloc-space.h @@ -7,7 +7,8 @@ struct extent_changeset; int btrfs_alloc_data_chunk_ondemand(struct btrfs_inode *inode, u64 bytes); int btrfs_check_data_free_space(struct btrfs_inode *inode, - struct extent_changeset **reserved, u64 start, u64 len); + struct extent_changeset **reserved, u64 start, u64 len, + bool noflush); void btrfs_free_reserved_data_space(struct btrfs_inode *inode, struct extent_changeset *reserved, u64 start, u64 len); void btrfs_delalloc_release_space(struct btrfs_inode *inode, |