提交 74dc93a9 编写于 作者: J Jie Liu 提交者: Dave Chinner

xfs: fix uflags detection at xfs_fs_rm_xquota

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: NJie Liu <jeff.liu@oracle.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NDave Chinner <david@fromorbit.com>
上级 7b409a7d
...@@ -123,7 +123,7 @@ xfs_fs_rm_xquota( ...@@ -123,7 +123,7 @@ xfs_fs_rm_xquota(
flags |= XFS_DQ_USER; flags |= XFS_DQ_USER;
if (uflags & FS_GROUP_QUOTA) if (uflags & FS_GROUP_QUOTA)
flags |= XFS_DQ_GROUP; flags |= XFS_DQ_GROUP;
if (uflags & FS_USER_QUOTA) if (uflags & FS_PROJ_QUOTA)
flags |= XFS_DQ_PROJ; flags |= XFS_DQ_PROJ;
return xfs_qm_scall_trunc_qfiles(mp, flags); return xfs_qm_scall_trunc_qfiles(mp, flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册