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)
commitd38ed27f0442c8cd520e093081127949d4bcf9bc
treed8fdb42478d6badd99db87c2a4551616ab3c8923
parentac46777213e00e26b9210060586f473368c54da2
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