]> 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)
commitf992e80b684911e885b284013840f48c73cd2f5c
treef7b1cbec89d9c6d030f15817e77ee42e5941244a
parent3f25319e83f62855c915a018164a1999a1154af2
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