diff options
author | Qu Wenruo <wqu@suse.com> | 2018-04-17 18:43:58 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-04-18 16:46:57 +0200 |
commit | 336a8bb8e36a273a802a54b2e673c777c9c62fb1 (patch) | |
tree | c041c9f7aedaaf64c674c114801c278b587bd265 /fs/btrfs/file.c | |
parent | f218ea6c4792e0fabba0195f2f866d0a3b58431e (diff) | |
download | blackbird-op-linux-336a8bb8e36a273a802a54b2e673c777c9c62fb1.tar.gz blackbird-op-linux-336a8bb8e36a273a802a54b2e673c777c9c62fb1.zip |
btrfs: Fix wrong btrfs_delalloc_release_extents parameter
Commit 43b18595d660 ("btrfs: qgroup: Use separate meta reservation type
for delalloc") merged into mainline is not the latest version submitted
to mail list in Dec 2017.
It has a fatal wrong @qgroup_free parameter, which results increasing
qgroup metadata pertrans reserved space, and causing a lot of early EDQUOT.
Fix it by applying the correct diff on top of current branch.
Fixes: 43b18595d660 ("btrfs: qgroup: Use separate meta reservation type for delalloc")
Signed-off-by: Qu Wenruo <wqu@suse.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 0167a9c97c9c..f660ba1e5e58 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1748,7 +1748,7 @@ again: unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, &cached_state); btrfs_delalloc_release_extents(BTRFS_I(inode), reserve_bytes, - (ret != 0)); + true); if (ret) { btrfs_drop_pages(pages, num_pages); break; |