| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 1/3] xfs: Remove useless test |
| From: | Jan Kara <jack@xxxxxxx> |
| Date: | Thu, 15 Jan 2015 11:18:03 +0100 |
| Cc: | Dave Chinner <david@xxxxxxxxxxxxx>, Jan Kara <jack@xxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1421317085-14350-1-git-send-email-jack@xxxxxxx> |
| References: | <1421317085-14350-1-git-send-email-jack@xxxxxxx> |
Q_XQUOTARM is never passed to xfs_fs_set_xstate() so remove the test.
Signed-off-by: Jan Kara <jack@xxxxxxx>
---
fs/xfs/xfs_quotaops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_quotaops.c b/fs/xfs/xfs_quotaops.c
index 7542bbeca6a1..8fcd20dbf89a 100644
--- a/fs/xfs/xfs_quotaops.c
+++ b/fs/xfs/xfs_quotaops.c
@@ -75,7 +75,7 @@ xfs_fs_set_xstate(
if (sb->s_flags & MS_RDONLY)
return -EROFS;
- if (op != Q_XQUOTARM && !XFS_IS_QUOTA_RUNNING(mp))
+ if (!XFS_IS_QUOTA_RUNNING(mp))
return -ENOSYS;
if (uflags & FS_QUOTA_UDQ_ACCT)
--
2.1.2
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 0/3] xfs: Quota related cleanups, Jan Kara |
|---|---|
| Next by Date: | Re: [PATCH v8 9/11] xfstests: generic/043: Test multiple fallocate insert/collapse range calls, Brian Foster |
| Previous by Thread: | Re: [PATCH 3/3] xfs: Remove some pointless quota checks, Brian Foster |
| Next by Thread: | Re: [PATCH 1/3] xfs: Remove useless test, Brian Foster |
| Indexes: | [Date] [Thread] [Top] [All Lists] |