From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 1/3] quota: Add a new quotactl command Q_XGETQSTATV Date: Tue, 20 Aug 2013 23:43:57 -0700 Message-ID: <20130821064357.GA8822@infradead.org> References: <1375828029-26360-1-git-send-email-sekharan@us.ibm.com> <1375828029-26360-2-git-send-email-sekharan@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: linux-fsdevel , Abhijith Das , Jan Kara , Steven Whitehouse , xfs@oss.sgi.com To: Chandra Seetharaman Return-path: Content-Disposition: inline In-Reply-To: <1375828029-26360-2-git-send-email-sekharan@us.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com List-Id: linux-fsdevel.vger.kernel.org Sorry for being late to the game, but I don not like the in-kernel interface here at all. Given that Q_XGETQSTATV is a strict superset of Q_XGETQSTAT there is no need for the second method - just always fill out the larger in-kernel structure and only copy the smaller information to userspace for the Q_XGETSTAT case. That keeps the amount of code required in the implementations of the methods low and follows the model used elsewhere in the kernel (e.g. stat and statfs) _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs