]> 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)
commit1608e036614f0cd757bf39823a88e1ab0c378782
treed8fdb42478d6badd99db87c2a4551616ab3c8923
parent15abafdd9fb7f7b5811c8441d261e1d555c1daa6
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