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).
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -530,6 +530,7 @@ struct btrfs_ioctl_send_args { · 529 unmodified lines | |||
| 530 | struct btrfs_ioctl_quota_rescan_args) | 530 | struct btrfs_ioctl_quota_rescan_args) |
| 531 | #define BTRFS_IOC_QUOTA_RESCAN_STATUS _IOR(BTRFS_IOCTL_MAGIC, 45, \ | 531 | #define BTRFS_IOC_QUOTA_RESCAN_STATUS _IOR(BTRFS_IOCTL_MAGIC, 45, \ |
| 532 | struct btrfs_ioctl_quota_rescan_args) | 532 | struct btrfs_ioctl_quota_rescan_args) |
| 533 | #define BTRFS_IOC_QUOTA_RESCAN_WAIT _IO(BTRFS_IOCTL_MAGIC, 46) | ||
| 533 | #define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \ | 534 | #define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \ |
| 534 | char[BTRFS_LABEL_SIZE]) | 535 | char[BTRFS_LABEL_SIZE]) |
| 535 | #define BTRFS_IOC_SET_FSLABEL _IOW(BTRFS_IOCTL_MAGIC, 50, \ | 536 | #define BTRFS_IOC_SET_FSLABEL _IOW(BTRFS_IOCTL_MAGIC, 50, \ |