Skip to content

Commit

Permalink
xfs: fix uflags detection at xfs_fs_rm_xquota
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
  • Loading branch information
pibroch authored and dchinner committed Jul 24, 2014
1 parent 7b409a7 commit 74dc93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_quotaops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 74dc93a

Please sign in to comment.