Merge branch 'for-linus' of git://git.kernel.org/pub/scm/fs/xfs/xfs
[cascardo/linux.git] / fs / xfs / linux-2.6 / xfs_quotaops.c
index 9e41f91..3d4a0c8 100644 (file)
@@ -80,7 +80,7 @@ xfs_fs_set_xstate(
 
        if (sb->s_flags & MS_RDONLY)
                return -EROFS;
-       if (!XFS_IS_QUOTA_RUNNING(mp))
+       if (op != Q_XQUOTARM && !XFS_IS_QUOTA_RUNNING(mp))
                return -ENOSYS;
        if (!capable(CAP_SYS_ADMIN))
                return -EPERM;