aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorLu Fengqi <[email protected]>2018-08-09 01:46:04 +0000
committerDavid Sterba <[email protected]>2018-08-23 15:37:26 +0000
commita5b7f4295eeae8b05ca91f6d145cd8773b08de9e (patch)
tree34d2cb5ef46a2c16c6673010f200d17fbd5fd732 /arch/powerpc/lib/code-patching.c
parentBtrfs: fix data corruption when deduplicating between different files (diff)
downloadkernel-a5b7f4295eeae8b05ca91f6d145cd8773b08de9e.tar.gz
kernel-a5b7f4295eeae8b05ca91f6d145cd8773b08de9e.zip
btrfs: fix qgroup_free wrong num_bytes in btrfs_subvolume_reserve_metadata
After btrfs_qgroup_reserve_meta_prealloc(), num_bytes will be assigned again by btrfs_calc_trans_metadata_size(). Once block_rsv fails, we can't properly free the num_bytes of the previous qgroup_reserve. Use a separate variable to store the num_bytes of the qgroup_reserve. Delete the comment for the qgroup_reserved that does not exist and add a comment about use_global_rsv. Fixes: c4c129db5da8 ("btrfs: drop unused parameter qgroup_reserved") CC: [email protected] # 4.18+ Signed-off-by: Lu Fengqi <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions