Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 8B0117F3F for ; Tue, 20 Jan 2015 10:44:05 -0600 (CST) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay3.corp.sgi.com (Postfix) with ESMTP id 187FCAC009 for ; Tue, 20 Jan 2015 08:44:04 -0800 (PST) Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by cuda.sgi.com with ESMTP id HkcAkNbadl0vnKEv (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 20 Jan 2015 08:44:03 -0800 (PST) Date: Tue, 20 Jan 2015 17:44:00 +0100 From: Jan Kara Subject: Re: [PATCH 1/3] xfs: Remove useless test Message-ID: <20150120164400.GB3648@quack.suse.cz> References: <1421317085-14350-1-git-send-email-jack@suse.cz> <1421317085-14350-2-git-send-email-jack@suse.cz> <20150115132754.GA23696@bfoster.bfoster> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20150115132754.GA23696@bfoster.bfoster> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Brian Foster Cc: Jan Kara , xfs@oss.sgi.com On Thu 15-01-15 08:27:54, Brian Foster wrote: > On Thu, Jan 15, 2015 at 11:18:03AM +0100, Jan Kara wrote: > > Q_XQUOTARM is never passed to xfs_fs_set_xstate() so remove the test. > > > > Signed-off-by: Jan Kara > > --- > > Reviewed-by: Brian Foster Thanks for reviews! I've pulled the XFS cleanups from this series into my tree. Honza > > 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 > > > > _______________________________________________ > > xfs mailing list > > xfs@oss.sgi.com > > http://oss.sgi.com/mailman/listinfo/xfs -- Jan Kara SUSE Labs, CR _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs