btrfs: quota: Introduce new flag to cancel quota rescan
PATCH 1/1 btrfs: quota: Introduce new flag to cancel quota rescan
Until now, there wasn't a way to cancel a currently running quota rescan. The QUOTA_CTL ioctl has only commands to enable and disable, thus, no way to cancel and restart the rescan. This functionality can be useful to applications like snapper, that can create and delete snapshots, and thus restarting the quota scan can be used instead of waiting for the current scan to finish.
The new command BTRFS_QUOTA_CTL_CANCEL_RESCAN can now be used in QUOTA_CTL ioctl to reset the progress of the rescan and stopping btrfs_qgroup_rescan_worker.
---
Can someone check if locking only qgrop_ioctl_lock is enough for this case, or if I missed something? Thanks!
fs/btrfs/ctree.h | 1 + fs/btrfs/ioctl.c | 3 +++ fs/btrfs/qgroup.c | 29 +++++++++++++++++++++++++++++ fs/btrfs/qgroup.h | 1 + include/uapi/linux/btrfs.h | 1 + 5 files changed, 35 insertions(+)
fs/btrfs/ctree.h +1 -0
@@ -933,6 +933,7 @@ struct btrfs_fs_info {/* qgroup rescan items */ struct mutex qgroup_rescan_lock;/* protects the progress item */ +bool qgroup_cancel_rescan;struct btrfs_key qgroup_rescan_progress;struct btrfs_workqueue *qgroup_rescan_workers;struct completion qgroup_rescan_completion;
fs/btrfs/ioctl.c +3 -0
@@ -4206,6 +4206,9 @@ static long btrfs_ioctl_quota_ctl(struct file *file, void __user *arg)case BTRFS_QUOTA_CTL_DISABLE : ret =btrfs_quota_disable (fs_info);break ; +case BTRFS_QUOTA_CTL_CANCEL_RESCAN : + ret =btrfs_quota_cancel_rescan (fs_info); +break ;default : ret = -EINVAL ;break ;
fs/btrfs/qgroup.c +29 -0
@@ -1233,6 +1233,21 @@ int btrfs_quota_disable(struct btrfs_fs_info *fs_info)return ret; } +int btrfs_quota_cancel_rescan (struct btrfs_fs_info *fs_info) +{ +int ret; + +mutex_lock (&fs_info->qgroup_ioctl_lock); + fs_info->qgroup_cancel_rescan = true; + + ret =btrfs_qgroup_wait_for_completion (fs_info, false); + + fs_info->qgroup_cancel_rescan = false; +mutex_unlock (&fs_info->qgroup_ioctl_lock); + +return ret; +} +static void qgroup_dirty (struct btrfs_fs_info *fs_info,struct btrfs_qgroup *qgroup) {
@@ -3214,6 +3229,7 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work)int err = -ENOMEM ;int ret =0 ;bool stopped = false; +bool canceled = false; path =btrfs_alloc_path ();if (!path)
@@ -3234,6 +3250,9 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work) }if (!test_bit (BTRFS_FS_QUOTA_ENABLED , &fs_info->flags)) { err = -EINTR ; + }else if (fs_info->qgroup_cancel_rescan) { + canceled = true; + err = -ECANCELED ; }else { err =qgroup_rescan_leaf (trans, path); }
@@ -3280,6 +3299,14 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work) } } fs_info->qgroup_rescan_running = false; + +/* +* If we cancel the current rescan, set progress to zero to start over +* on next rescan. +*/ +if (canceled) + fs_info->qgroup_rescan_progress.objectid =0 ; +complete_all (&fs_info->qgroup_rescan_completion);mutex_unlock (&fs_info->qgroup_rescan_lock);
@@ -3290,6 +3317,8 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work)if (stopped) {btrfs_info (fs_info,"qgroup scan paused" ); + }else if (canceled) { +btrfs_info (fs_info,"qgroup scan canceled" ); }else if (err >=0 ) {btrfs_info (fs_info,"qgroup scan completed%s" , err >0 ?" (inconsistency flag cleared)" :"" );
fs/btrfs/qgroup.h +1 -0
@@ -245,6 +245,7 @@ static inline u64 btrfs_qgroup_subvolid(u64 qgroupid)int btrfs_quota_enable (struct btrfs_fs_info *fs_info);int btrfs_quota_disable (struct btrfs_fs_info *fs_info); +int btrfs_quota_cancel_rescan (struct btrfs_fs_info *fs_info);int btrfs_qgroup_rescan (struct btrfs_fs_info *fs_info);void btrfs_qgroup_rescan_resume (struct btrfs_fs_info *fs_info); int btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info,
include/uapi/linux/btrfs.h +1 -0
@@ -714,6 +714,7 @@ struct btrfs_ioctl_get_dev_stats {#define BTRFS_QUOTA_CTL_ENABLE 1#define BTRFS_QUOTA_CTL_DISABLE 2#define BTRFS_QUOTA_CTL_RESCAN__NOTUSED 3 +#define BTRFS_QUOTA_CTL_CANCEL_RESCAN 4struct btrfs_ioctl_quota_ctl_args {__u64 cmd;__u64 status;
Signature · 1 line
2.26.2
Quoted 6 lines · Marcos Paulo de Souza
Until now, there wasn't a way to cancel a currently running quota rescan. The
QUOTA_CTLioctl has only commands to enable and disable, thus, no way to cancel and restart the rescan. This functionality can be useful to applications like snapper, that can create and delete snapshots, and thus restarting the quota scan can be used instead of waiting for the current scan to finish.
This implies there are some operations which would make qgroup accounting go crazy when doing rescan.
My first idea is doing qgroup inherit during rescan.
As we can't handle it now, we will make the fs with INCONSISTENT bit, and forget about it.
But if a rescan is running, then when it finishes, the INCONSISTENT bit get cleared, giving a false view of the qgroup numbers.
I hope the commit message can have better background on this part.
Quoted 90 lines
The new command
BTRFS_QUOTA_CTL_CANCEL_RESCANcan now be used inQUOTA_CTLioctl to reset the progress of the rescan and stoppingbtrfs_qgroup_rescan_worker.Signed-off-by Marcos Paulo de Souza <[email protected]>---
Can someone check if locking only
qgrop_ioctl_lockis enough for this case, or if I missed something? Thanks!fs/btrfs/ctree.h | 1 + fs/btrfs/ioctl.c | 3 +++ fs/btrfs/qgroup.c | 29 +++++++++++++++++++++++++++++ fs/btrfs/qgroup.h | 1 + include/uapi/linux/btrfs.h | 1 + 5 files changed, 35 insertions(+)fs/btrfs/ctree.h +1
-0@@ -933,6 +933,7 @@ struct btrfs_fs_info {/* qgroup rescan items */ struct mutex qgroup_rescan_lock;/* protects the progress item */ +bool qgroup_cancel_rescan;struct btrfs_key qgroup_rescan_progress;struct btrfs_workqueue *qgroup_rescan_workers;struct completion qgroup_rescan_completion;fs/btrfs/ioctl.c +3
-0@@ -4206,6 +4206,9 @@ static long btrfs_ioctl_quota_ctl(struct file *file, void __user *arg)case BTRFS_QUOTA_CTL_DISABLE : ret =btrfs_quota_disable (fs_info);break ; +case BTRFS_QUOTA_CTL_CANCEL_RESCAN : + ret =btrfs_quota_cancel_rescan (fs_info); +break ;default : ret = -EINVAL ;break ;fs/btrfs/qgroup.c +19
-0@@ -1233,6 +1233,21 @@ int btrfs_quota_disable(struct btrfs_fs_info *fs_info)return ret; } +int btrfs_quota_cancel_rescan (struct btrfs_fs_info *fs_info) +{ +int ret; + +mutex_lock (&fs_info->qgroup_ioctl_lock); + fs_info->qgroup_cancel_rescan = true; + + ret =btrfs_qgroup_wait_for_completion (fs_info, false); + + fs_info->qgroup_cancel_rescan = false; +mutex_unlock (&fs_info->qgroup_ioctl_lock); + +return ret; +} +static void qgroup_dirty (struct btrfs_fs_info *fs_info,struct btrfs_qgroup *qgroup) {@@ -3214,6 +3229,7 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work)int err = -ENOMEM ;int ret =0 ;bool stopped = false; +bool canceled = false; path =btrfs_alloc_path ();if (!path)@@ -3234,6 +3250,9 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work) }if (!test_bit (BTRFS_FS_QUOTA_ENABLED , &fs_info->flags)) { err = -EINTR ; + }else if (fs_info->qgroup_cancel_rescan) { + canceled = true; + err = -ECANCELED ; }else { err =qgroup_rescan_leaf (trans, path); }@@ -3280,6 +3299,14 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work) }
fs/btrfs/qgroup.c static void btrfs_qgroup_rescan_worker(struct btrfs_work *work) · line 3309
Quoted 10 lines
fs/btrfs/qgroup.c +8
-0} fs_info->qgroup_rescan_running = false; + +/* +* If we cancel the current rescan, set progress to zero to start over +* on next rescan. +*/ +if (canceled) + fs_info->qgroup_rescan_progress.objectid =0 ; +
Not sure if this is needed.
Quoted 29 lines
fs/btrfs/qgroup.c +2
-0complete_all (&fs_info->qgroup_rescan_completion);mutex_unlock (&fs_info->qgroup_rescan_lock);@@ -3290,6 +3317,8 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work)if (stopped) {btrfs_info (fs_info,"qgroup scan paused" ); + }else if (canceled) { +btrfs_info (fs_info,"qgroup scan canceled" ); }else if (err >=0 ) {btrfs_info (fs_info,"qgroup scan completed%s" , err >0 ?" (inconsistency flag cleared)" :"" );fs/btrfs/qgroup.h +1
-0@@ -245,6 +245,7 @@ static inline u64 btrfs_qgroup_subvolid(u64 qgroupid)int btrfs_quota_enable (struct btrfs_fs_info *fs_info);int btrfs_quota_disable (struct btrfs_fs_info *fs_info); +int btrfs_quota_cancel_rescan (struct btrfs_fs_info *fs_info);int btrfs_qgroup_rescan (struct btrfs_fs_info *fs_info);void btrfs_qgroup_rescan_resume (struct btrfs_fs_info *fs_info); int btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info,include/uapi/linux/btrfs.h +0
-0
include/uapi/linux/btrfs.h struct btrfs_ioctl_get_dev_stats { · line 717
Quoted 4 lines
include/uapi/linux/btrfs.h +1
-0@@ -714,6 +714,7 @@ struct btrfs_ioctl_get_dev_stats {#define BTRFS_QUOTA_CTL_ENABLE 1#define BTRFS_QUOTA_CTL_DISABLE 2#define BTRFS_QUOTA_CTL_RESCAN__NOTUSED 3 +#define BTRFS_QUOTA_CTL_CANCEL_RESCAN 4
Well, this needs to be determined by David.
Despite that, it looks OK to me.
Thanks,
Qu
Quoted 4 lines
include/uapi/linux/btrfs.h +0
-0struct btrfs_ioctl_quota_ctl_args {__u64 cmd;__u64 status;
Quoted 169 lines · Qu Wenruo
Quoted 9 lines · Marcos Paulo de Souza
Until now, there wasn't a way to cancel a currently running quota rescan. The
QUOTA_CTLioctl has only commands to enable and disable,
thus, no way to cancel and restart the rescan. This functionality can be
useful to applications like snapper, that can create and delete snapshots, and thus restarting the quota scan can be used instead of
waiting for the current scan to finish.This implies there are some operations which would make qgroup accounting go crazy when doing rescan.
My first idea is doing qgroup inherit during rescan.
As we can't handle it now, we will make the fs with INCONSISTENT bit, and forget about it.
But if a rescan is running, then when it finishes, the INCONSISTENT bit
get cleared, giving a false view of the qgroup numbers.I hope the commit message can have better background on this part.
Quoted 103 lines
The new command
BTRFS_QUOTA_CTL_CANCEL_RESCANcan now be used inQUOTA_CTLioctl to reset the progress of the rescan and stoppingbtrfs_qgroup_rescan_worker.Signed-off-by Marcos Paulo de Souza <[email protected]>---
Can someone check if locking only
qgrop_ioctl_lockis enough for
this case, or
if I missed something? Thanks!fs/btrfs/ctree.h | 1 + fs/btrfs/ioctl.c | 3 +++ fs/btrfs/qgroup.c | 29 +++++++++++++++++++++++++++++ fs/btrfs/qgroup.h | 1 + include/uapi/linux/btrfs.h | 1 + 5 files changed, 35 insertions(+)fs/btrfs/ctree.h +1
-0@@ -933,6 +933,7 @@ struct btrfs_fs_info {/* qgroup rescan items */ struct mutex qgroup_rescan_lock;/* protects the progress item */ +bool qgroup_cancel_rescan;struct btrfs_key qgroup_rescan_progress;struct btrfs_workqueue *qgroup_rescan_workers;struct completion
qgroup_rescan_completion;fs/btrfs/ioctl.c +3
-0@@ -4206,6 +4206,9 @@ static long btrfs_ioctl_quota_ctl(struct file *file, void __user *arg)case BTRFS_QUOTA_CTL_DISABLE : ret =btrfs_quota_disable (fs_info);break ; +case BTRFS_QUOTA_CTL_CANCEL_RESCAN : + ret =btrfs_quota_cancel_rescan (fs_info); +break ;default : ret = -EINVAL ;break;
fs/btrfs/qgroup.c +15
-0@@ -1233,6 +1233,21 @@ int btrfs_quota_disable(struct btrfs_fs_info *fs_info)return ret; } +int btrfs_quota_cancel_rescan (struct btrfs_fs_info *fs_info) +{ +int ret; + +mutex_lock (&fs_info->qgroup_ioctl_lock); + fs_info->qgroup_cancel_rescan = true; + + ret =btrfs_qgroup_wait_for_completion (fs_info, false); + + fs_info->qgroup_cancel_rescan = false; +mutex_unlock (&fs_info->qgroup_ioctl_lock); + +return ret; +} +static void qgroup_dirty (struct btrfs_fs_info *fs_info,struct btrfs_qgroup *qgroup){fs/btrfs/qgroup.c +1
-0@@ -3214,6 +3229,7 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work)int err = -ENOMEM ;int ret =0 ;bool stopped = false; +bool canceled = false; path =btrfs_alloc_path ();if (!path)
fs/btrfs/qgroup.c +3
-0@@ -3234,6 +3250,9 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work) }if (!test_bit (BTRFS_FS_QUOTA_ENABLED , &fs_info->flags)) { err = -EINTR ; + }else if (fs_info->qgroup_cancel_rescan) { + canceled = true; + err = -ECANCELED ; }else {err = qgroup_rescan_leaf(trans, path); }fs/btrfs/qgroup.c +3
-0@@ -3280,6 +3299,14 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work) } } fs_info->qgroup_rescan_running = false; + +/* +* If we cancel the current rescan, set progress to zero to start over
fs/btrfs/qgroup.c static void btrfs_qgroup_rescan_worker(struct btrfs_work *work) · line 3309
Quoted 5 lines
fs/btrfs/qgroup.c +5
-0+* on next rescan. +*/ +if (canceled) + fs_info->qgroup_rescan_progress.objectid =0 ; +Not sure if this is needed.
Quoted 32 lines
complete_all(&fs_info->qgroup_rescan_completion); mutex_unlock(&fs_info->qgroup_rescan_lock);fs/btrfs/qgroup.c +2
-0@@ -3290,6 +3317,8 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work) if (stopped) {btrfs_info (fs_info,"qgroup scan paused" ); + } else if (canceled) { +btrfs_info (fs_info,"qgroup scan canceled" ); } else if (err >= 0) { btrfs_info(fs_info, "qgroup scan completed%s",err > 0 ? " (inconsistency flag cleared)" :
"");fs/btrfs/qgroup.h +1
-0@@ -245,6 +245,7 @@ static inline u64 btrfs_qgroup_subvolid(u64 qgroupid)int btrfs_quota_enable (struct btrfs_fs_info *fs_info);int btrfs_quota_disable (struct btrfs_fs_info *fs_info); +int btrfs_quota_cancel_rescan (struct btrfs_fs_info *fs_info);int btrfs_qgroup_rescan (struct btrfs_fs_info *fs_info);void btrfs_qgroup_rescan_resume (struct btrfs_fs_info *fs_info);int btrfs_qgroup_wait_for_completion(struct
btrfs_fs_info*fs_info,include/uapi/linux/btrfs.h +0
-1--- a/include/uapi/linux/btrfs.h
Quoted 8 lines
include/uapi/linux/btrfs.h struct btrfs_ioctl_get_dev_stats { · line 717
Quoted 6 lines
+++
b/include/uapi/linux/btrfs.hinclude/uapi/linux/btrfs.h +1
-0@@ -714,6 +714,7 @@ struct btrfs_ioctl_get_dev_stats {#define BTRFS_QUOTA_CTL_ENABLE 1#define BTRFS_QUOTA_CTL_DISABLE 2#define BTRFS_QUOTA_CTL_RESCAN__NOTUSED 3 +#define BTRFS_QUOTA_CTL_CANCEL_RESCAN 4Well, this needs to be determined by David.
Ping David :)
Quoted 10 lines
Despite that, it looks OK to me.
Thanks,
QuQuoted 4 lines
include/uapi/linux/btrfs.h +0
-0struct btrfs_ioctl_quota_ctl_args {__u64 cmd;__u64 status;
Quoted 188 lines · Marcos Paulo de Souza
Quoted 178 lines · Qu Wenruo
Quoted 9 lines · Marcos Paulo de Souza
Until now, there wasn't a way to cancel a currently running quota rescan. The
QUOTA_CTLioctl has only commands to enable and disable,
thus, no way to cancel and restart the rescan. This functionality can be
useful to applications like snapper, that can create and delete snapshots, and thus restarting the quota scan can be used instead of
waiting for the current scan to finish.This implies there are some operations which would make qgroup accounting go crazy when doing rescan.
My first idea is doing qgroup inherit during rescan.
As we can't handle it now, we will make the fs with INCONSISTENT bit,
and forget about it.But if a rescan is running, then when it finishes, the INCONSISTENT bit
get cleared, giving a false view of the qgroup numbers.I hope the commit message can have better background on this part.
Quoted 110 lines
The new command
BTRFS_QUOTA_CTL_CANCEL_RESCANcan now be used inQUOTA_CTLioctl to reset the progress of the rescan and stoppingbtrfs_qgroup_rescan_worker.Signed-off-by Marcos Paulo de Souza <[email protected]>---
Can someone check if locking only
qgrop_ioctl_lockis enough
for
this case, or
if I missed something? Thanks!fs/btrfs/ctree.h | 1 + fs/btrfs/ioctl.c | 3 +++ fs/btrfs/qgroup.c | 29 +++++++++++++++++++++++++++++ fs/btrfs/qgroup.h | 1 + include/uapi/linux/btrfs.h | 1 + 5 files changed, 35 insertions(+)fs/btrfs/ctree.h +0
-0@@ -933,6 +933,7 @@ struct btrfs_fs_info {/* qgroup rescan items */ struct mutex qgroup_rescan_lock;/* protects the progress item
*/fs/btrfs/ctree.h +1
-0+bool qgroup_cancel_rescan;struct btrfs_key qgroup_rescan_progress;struct btrfs_workqueue *qgroup_rescan_workers;struct completion qgroup_rescan_completion;fs/btrfs/ioctl.c +0
-0@@ -4206,6 +4206,9 @@ static long btrfs_ioctl_quota_ctl(structfile
*file, void__user*arg)
caseBTRFS_QUOTA_CTL_DISABLE:
ret =btrfs_quota_disable(fs_info); break;fs/btrfs/ioctl.c +3
-0+case BTRFS_QUOTA_CTL_CANCEL_RESCAN : + ret =btrfs_quota_cancel_rescan (fs_info); +break ;default : ret = -EINVAL ;break ;fs/btrfs/qgroup.c +0
-0@@ -1233,6 +1233,21 @@ int btrfs_quota_disable(struct
btrfs_fs_info*fs_info)
return ret;
}fs/btrfs/qgroup.c +15
-0+int btrfs_quota_cancel_rescan (struct btrfs_fs_info *fs_info) +{ +int ret; + +mutex_lock (&fs_info->qgroup_ioctl_lock); + fs_info->qgroup_cancel_rescan = true; + + ret =btrfs_qgroup_wait_for_completion (fs_info, false); + + fs_info->qgroup_cancel_rescan = false; +mutex_unlock (&fs_info->qgroup_ioctl_lock); + +return ret; +} +static void qgroup_dirty (struct btrfs_fs_info *fs_info,struct btrfs_qgroup *qgroup) {@@ -3214,6 +3229,7 @@ static voidbtrfs_qgroup_rescan_worker(struct
btrfs_work*work)
int err =-ENOMEM;
int ret = 0;
bool stopped = false;fs/btrfs/qgroup.c +1
-0+bool canceled = false; path =btrfs_alloc_path ();if (!path)@@ -3234,6 +3250,9 @@ static voidbtrfs_qgroup_rescan_worker(struct
btrfs_work*work)
}
if (!test_bit(BTRFS_FS_QUOTA_ENABLED, &fs_info-Quoted 1 line
flags))
{
err =-EINTR;fs/btrfs/qgroup.c +6
-0+ }else if (fs_info->qgroup_cancel_rescan) { + canceled = true; + err = -ECANCELED ; }else { err =qgroup_rescan_leaf (trans, path); }@@ -3280,6 +3299,14 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work) } } fs_info->qgroup_rescan_running = false; + +/* +* If we cancel the current rescan, set progress to zero to start over
fs/btrfs/qgroup.c static void btrfs_qgroup_rescan_worker(struct btrfs_work *work) · line 3309
Quoted 5 lines
fs/btrfs/qgroup.c +5
-0+* on next rescan. +*/ +if (canceled) + fs_info->qgroup_rescan_progress.objectid =0 ; +Not sure if this is needed.
Quoted 34 lines
complete_all(&fs_info->qgroup_rescan_completion); mutex_unlock(&fs_info->qgroup_rescan_lock);fs/btrfs/qgroup.c +0
-0@@ -3290,6 +3317,8 @@ static voidbtrfs_qgroup_rescan_worker(struct
btrfs_work*work)if (stopped) { btrfs_info(fs_info, "qgroup scan paused");fs/btrfs/qgroup.c +2
-0+ }else if (canceled) { +btrfs_info (fs_info,"qgroup scan canceled" ); }else if (err >=0 ) { btrfs_info(fs_info, "qgroup scan completed%s", err > 0 ? " (inconsistency flagcleared)" :
"");fs/btrfs/qgroup.h +1
-0@@ -245,6 +245,7 @@ static inline u64 btrfs_qgroup_subvolid(u64 qgroupid)int btrfs_quota_enable (struct btrfs_fs_info *fs_info);int btrfs_quota_disable (struct btrfs_fs_info *fs_info); +int btrfs_quota_cancel_rescan (struct btrfs_fs_info *fs_info);int btrfs_qgroup_rescan (struct btrfs_fs_info *fs_info);void btrfs_qgroup_rescan_resume (struct btrfs_fs_info *fs_info);int btrfs_qgroup_wait_for_completion(struct
btrfs_fs_info*fs_info,include/uapi/linux/btrfs.h +0
-1--- a/include/uapi/linux/btrfs.hQuoted 8 lines
include/uapi/linux/btrfs.h struct btrfs_ioctl_get_dev_stats { · line 717
Quoted 6 lines
+++
b/include/uapi/linux/btrfs.hinclude/uapi/linux/btrfs.h +1
-0@@ -714,6 +714,7 @@ struct btrfs_ioctl_get_dev_stats {#define BTRFS_QUOTA_CTL_ENABLE 1#define BTRFS_QUOTA_CTL_DISABLE 2#define BTRFS_QUOTA_CTL_RESCAN__NOTUSED 3 +#define BTRFS_QUOTA_CTL_CANCEL_RESCAN 4Well, this needs to be determined by David.
Quoted 1 line
Ping David :)
Ping v2 :)
Quoted 10 lines
Quoted 10 lines
Despite that, it looks OK to me.
Thanks,
QuQuoted 4 lines
include/uapi/linux/btrfs.h +0
-0struct btrfs_ioctl_quota_ctl_args {__u64 cmd;__u64 status;