Btrfs: add ioctl to wait for qgroup rescan completion
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Mon, 6 May 2013 19:14:17 +0000 (19:14 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:22 +0000 (11:29 -0400)
commit57254b6ebce4ceca02d9c8b615f6059c56c19238
treea90b04313e8671e6846d09c0c14c7b08e16d0e65
parent1e8f915868c59be4d6e49d9aff928454a5d5d569
Btrfs: add ioctl to wait for qgroup rescan completion

btrfs_qgroup_wait_for_completion waits until the currently running qgroup
operation completes. It returns immediately when no rescan process is in
progress. This is useful to automate things around the rescan process (e.g.
testing).

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/ioctl.c
fs/btrfs/qgroup.c
include/uapi/linux/btrfs.h