diff options
author | Josef Bacik <josef@toxicpanda.com> | 2021-07-14 14:47:23 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-08-23 13:19:07 +0200 |
commit | b3776305278e5937366f512d3e655ace13b8b027 (patch) | |
tree | 18ad0503cec1bad594e850e3c9803bd5d42fd26f /fs/9p/vfs_file.c | |
parent | 5a798493b8f30121363359bba834392f044c169b (diff) | |
download | linux-stable-b3776305278e5937366f512d3e655ace13b8b027.tar.gz linux-stable-b3776305278e5937366f512d3e655ace13b8b027.tar.bz2 linux-stable-b3776305278e5937366f512d3e655ace13b8b027.zip |
btrfs: use the filemap_fdatawrite_wbc helper for delalloc shrinking
sync_inode() has some holes that can cause problems if we're under heavy
ENOSPC pressure. If there's writeback running on a separate thread
sync_inode() will skip writing the inode altogether. What we really
want is to make sure writeback has been started on all the pages to make
sure we can see the ordered extents and wait on them if appropriate.
Switch to this new helper which will allow us to accomplish this and
avoid ENOSPC'ing early.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/9p/vfs_file.c')
0 files changed, 0 insertions, 0 deletions