diff options
author | Su Yue <suy.fnst@cn.fujitsu.com> | 2018-09-05 11:07:33 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-01 09:16:21 +0100 |
commit | 1b49c453a5645f483cd6b7733919a36f9c492f98 (patch) | |
tree | 81a427ff2c215f6f0d25277896c4ced121269b0b /fs | |
parent | 9325e8f4688ce4df65dc9c1b4698f75f3ab9a515 (diff) | |
download | linux-stable-1b49c453a5645f483cd6b7733919a36f9c492f98.tar.gz linux-stable-1b49c453a5645f483cd6b7733919a36f9c492f98.tar.bz2 linux-stable-1b49c453a5645f483cd6b7733919a36f9c492f98.zip |
btrfs: defrag: use btrfs_mod_outstanding_extents in cluster_pages_for_defrag
[ Upstream commit 28c4a3e21ad030d7571ee9b1b246a5cbfd886627 ]
Since commit 8b62f87bad9c ("Btrfs: rework outstanding_extents"),
manual operations of outstanding_extent in btrfs_inode are replaced by
btrfs_mod_outstanding_extents().
The one in cluster_pages_for_defrag seems to be lost, so replace it
of btrfs_mod_outstanding_extents().
Fixes: 8b62f87bad9c ("Btrfs: rework outstanding_extents")
Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 7592beb53fc4..00ff4349b457 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -1337,7 +1337,7 @@ again: if (i_done != page_cnt) { spin_lock(&BTRFS_I(inode)->lock); - BTRFS_I(inode)->outstanding_extents++; + btrfs_mod_outstanding_extents(BTRFS_I(inode), 1); spin_unlock(&BTRFS_I(inode)->lock); btrfs_delalloc_release_space(inode, data_reserved, start_index << PAGE_SHIFT, |