| To: | "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] xfs: fix uflags detection at xfs_fs_rm_xquota |
| From: | Jeff Liu <jeff.liu@xxxxxxxxxx> |
| Date: | Tue, 15 Jul 2014 17:35:23 +0800 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
From: Jie Liu <jeff.liu@xxxxxxxxxx>
We are intended to check up uflags against FS_PROJ_QUOTA rather than
FS_USER_UQUOTA once more, it looks to me like a typo, but might cause
the project quota metadata space can not be removed.
Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx>
---
fs/xfs/xfs_quotaops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_quotaops.c b/fs/xfs/xfs_quotaops.c
index 4f7aecb..b238027 100644
--- a/fs/xfs/xfs_quotaops.c
+++ b/fs/xfs/xfs_quotaops.c
@@ -123,7 +123,7 @@ xfs_fs_rm_xquota(
flags |= XFS_DQ_USER;
if (uflags & FS_GROUP_QUOTA)
flags |= XFS_DQ_GROUP;
- if (uflags & FS_USER_QUOTA)
+ if (uflags & FS_PROJ_QUOTA)
flags |= XFS_DQ_PROJ;
return xfs_qm_scall_trunc_qfiles(mp, flags);
--
1.8.3.2
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] xfs: remove XFS_IS_OQUOTA_ON macros, Jeff Liu |
|---|---|
| Next by Date: | [PATCH v2 1/2] xfstests: Check the file system consistency on SCRATCH_DEV, Lukas Czerner |
| Previous by Thread: | [PATCH] xfs: remove XFS_IS_OQUOTA_ON macros, Jeff Liu |
| Next by Thread: | Re: [PATCH] xfs: fix uflags detection at xfs_fs_rm_xquota, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |