]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[XFS] Fix quotaon syscall failures for group enforcement requests.
authorDonald Douwsma <donaldd@sgi.com>
Tue, 8 May 2007 03:49:15 +0000 (13:49 +1000)
committerTim Shimmin <tes@sgi.com>
Tue, 8 May 2007 03:49:15 +0000 (13:49 +1000)
xfs_qm_scall_quotaon was incorrectly failing requests to enable group
quota enforcement. Fixes logic error in OQUOTA handling.

SGI-PV: 961964
SGI-Modid: xfs-linux-melb:xfs-kern:28227a

Signed-off-by: Donald Douwsma <donaldd@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/quota/xfs_qm_syscalls.c

index 44ab68de971d12d06a09f7bacd1ceee9ae948a3b..22d853e77cda0f69a879d8f14548c43e7ed9570a 100644 (file)
@@ -456,9 +456,7 @@ xfs_qm_scall_quotaon(
            ||
            ((flags & XFS_PQUOTA_ACCT) == 0 &&
            (mp->m_sb.sb_qflags & XFS_PQUOTA_ACCT) == 0 &&
-           (flags & XFS_OQUOTA_ENFD))
-           ||
-           ((flags & XFS_GQUOTA_ACCT) == 0 &&
+           (flags & XFS_GQUOTA_ACCT) == 0 &&
            (mp->m_sb.sb_qflags & XFS_GQUOTA_ACCT) == 0 &&
            (flags & XFS_OQUOTA_ENFD))) {
                qdprintk("Can't enforce without acct, flags=%x sbflags=%x\n",