diff options
author | 2022-09-12 12:27:44 -0700 | |
---|---|---|
committer | 2022-09-29 17:08:28 +0200 | |
commit | 1daedb1d6bf24c7185e00cd341404f262f8de7c8 (patch) | |
tree | 5b3411ade991ec8ea12cb778b028992e426ebad3 /fs/btrfs/file.c | |
parent | btrfs: make can_nocow_extent nowait compatible (diff) | |
download | linux-1daedb1d6bf24c7185e00cd341404f262f8de7c8.tar.gz linux-1daedb1d6bf24c7185e00cd341404f262f8de7c8.tar.bz2 linux-1daedb1d6bf24c7185e00cd341404f262f8de7c8.zip |
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/file.c')
-rw-r--r-- | fs/btrfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 22471f611867..94a9b47d5ae5 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1663,7 +1663,7 @@ static noinline ssize_t btrfs_buffered_write(struct kiocb *iocb, extent_changeset_release(data_reserved); ret = btrfs_check_data_free_space(BTRFS_I(inode), &data_reserved, pos, - write_bytes); + write_bytes, false); if (ret < 0) { /* * If we don't have to COW at the offset, reserve |