]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: extent_io: Introduce new function set_record_extent_bits
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 12 Oct 2015 06:53:37 +0000 (14:53 +0800)
committerChris Mason <clm@fb.com>
Thu, 22 Oct 2015 01:37:44 +0000 (18:37 -0700)
commit4d52f74471d9fa108acdb51e0a305b237144778e
treed8fdb42478d6badd99db87c2a4551616ab3c8923
parentee30f42db926c642dc360087d1cd19560da4cf1b
btrfs: extent_io: Introduce new function set_record_extent_bits

Introduce new function set_record_extent_bits(), which will not only set
given bits, but also record how many bytes are changed, and detailed
range info.

This is quite important for later qgroup reserve framework.
The number of bytes will be used to do qgroup reserve, and detailed
range info will be used to cleanup for EQUOT case.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h