]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: rescan for qgroups
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 25 Apr 2013 16:04:51 +0000 (16:04 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:55:19 +0000 (15:55 -0400)
commit9bbb9ec884b07024efbfa3e26930b1ee90fc826e
treef7b1cbec89d9c6d030f15817e77ee42e5941244a
parent3b38a6817c37272240f6ac71740cac9d9640fb9e
Btrfs: rescan for qgroups

If qgroup tracking is out of sync, a rescan operation can be started. It
iterates the complete extent tree and recalculates all qgroup tracking data.
This is an expensive operation and should not be used unless required.

A filesystem under rescan can still be umounted. The rescan continues on the
next mount.  Status information is provided with a separate ioctl while a
rescan operation is in progress.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/ioctl.c
fs/btrfs/qgroup.c
include/uapi/linux/btrfs.h