aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2017-02-27 07:10:36 +0000
committerDavid Sterba <[email protected]>2017-06-29 18:17:02 +0000
commit7bc329c1836866ffac8b2613f780a51b3ffe786d (patch)
tree5befa521d84f3ec6158acae1c3cc07253cb2cf5b /fs/btrfs/dev-replace.c
parentbtrfs: qgroup: Cleanup btrfs_qgroup_prepare_account_extents function (diff)
downloadkernel-7bc329c1836866ffac8b2613f780a51b3ffe786d.tar.gz
kernel-7bc329c1836866ffac8b2613f780a51b3ffe786d.zip
btrfs: qgroup: Return actually freed bytes for qgroup release or free data
btrfs_qgroup_release/free_data() only returns 0 or a negative error number (ENOMEM is the only possible error). This is normally good enough, but sometimes we need the exact byte count it freed/released. Change it to return actually released/freed bytenr number instead of 0 for success. And slightly modify related extent_changeset structure, since in btrfs one no-hole data extent won't be larger than 128M, so "unsigned int" is large enough for the use case. Signed-off-by: Qu Wenruo <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions