Qu Wenruo
7bc329c183
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 <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2017-06-29 20:17:02 +02:00
..
2017-06-19 18:25:58 +02:00
2016-09-22 10:55:32 +02:00
2017-01-09 11:24:50 +01:00
2016-12-13 11:01:30 -08:00
2017-06-19 18:26:02 +02:00
2017-04-26 16:27:26 +01:00
2017-06-19 18:26:04 +02:00
2016-12-06 16:06:59 +01:00
2017-06-19 18:26:03 +02:00
2017-06-19 18:26:00 +02:00
2017-06-19 18:26:02 +02:00
2017-06-21 19:16:04 +02:00
2016-07-26 13:52:25 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-06-29 20:17:01 +02:00
2017-06-29 20:17:01 +02:00
2017-04-18 14:07:26 +02:00
2017-02-28 14:26:07 +01:00
2017-06-29 20:06:11 +02:00
2017-06-21 19:03:39 +02:00
2017-06-19 18:26:01 +02:00
2017-06-21 19:16:04 +02:00
2017-06-19 18:26:04 +02:00
2017-06-29 20:17:02 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-06-29 20:17:02 +02:00
2017-06-19 18:25:59 +02:00
2017-06-21 16:52:45 +02:00
2017-04-18 14:07:26 +02:00
2017-02-17 12:03:56 +01:00
2017-06-19 18:26:01 +02:00
2015-12-17 12:16:47 -08:00
2017-06-08 17:36:03 +08:00
2016-06-06 14:08:28 +02:00
2016-12-06 16:06:59 +01:00
2017-02-28 11:30:07 +01:00
2016-01-15 19:25:02 +01:00
2017-06-21 19:16:04 +02:00
2017-06-19 18:26:02 +02:00
2016-01-07 14:30:52 +01:00
2017-06-19 18:26:02 +02:00
2015-12-17 12:16:47 -08:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-06-19 18:26:00 +02:00
2016-12-06 16:06:59 +01:00
2017-06-21 19:16:04 +02:00
2017-06-29 20:17:02 +02:00
2017-06-29 20:17:02 +02:00
2017-06-19 18:26:04 +02:00
2016-12-06 16:06:59 +01:00
2017-06-19 18:25:59 +02:00
2017-06-19 18:25:58 +02:00
2017-06-21 19:16:04 +02:00
2017-06-19 18:26:04 +02:00
2017-06-21 19:16:04 +02:00
2016-01-07 14:38:02 +01:00
2016-05-25 22:35:14 +02:00
2017-06-20 14:22:48 +02:00
2017-06-19 18:25:58 +02:00
2016-01-21 18:50:40 +01:00
2017-06-29 20:17:02 +02:00
2017-04-18 14:07:25 +02:00
2015-12-18 02:51:32 +00:00
2017-06-21 19:16:04 +02:00
2017-02-14 15:50:54 +01:00
2017-02-17 12:03:50 +01:00
2017-02-17 12:03:50 +01:00
2016-12-19 18:08:15 +01:00
2017-06-21 19:03:38 +02:00
2017-06-21 19:03:38 +02:00
2017-06-21 19:16:04 +02:00
2016-05-17 19:17:09 -04:00
2017-06-19 18:26:02 +02:00