xfs: fix uflags detection at xfs_fs_rm_xquota
authorJie Liu <jeff.liu@oracle.com>
Thu, 24 Jul 2014 11:27:17 +0000 (21:27 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 24 Jul 2014 11:27:17 +0000 (21:27 +1000)
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@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_quotaops.c

index 4f7aecbe61da3e06a4231a5a29ff6a4e698fb429..b238027df98735d60ff451ce7d5d3440bd12ce0e 100644 (file)
@@ -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);