Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755848Ab0KTBh5 (ORCPT ); Fri, 19 Nov 2010 20:37:57 -0500 Received: from thunk.org ([69.25.196.29]:42222 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753694Ab0KTBhz (ORCPT ); Fri, 19 Nov 2010 20:37:55 -0500 Date: Fri, 19 Nov 2010 20:37:53 -0500 From: "Ted Ts'o" To: Lukas Czerner Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, hch@infradead.org, sandeen@redhat.com Subject: Re: [PATCH 2/2] ext4: Add EXT4_IOC_TRIM ioctl to handle batched discard Message-ID: <20101120013753.GB28151@thunk.org> Mail-Followup-To: Ted Ts'o , Lukas Czerner , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, hch@infradead.org, sandeen@redhat.com References: <1290065809-3976-1-git-send-email-lczerner@redhat.com> <1290065809-3976-2-git-send-email-lczerner@redhat.com> <20101119161929.GI10039@thunk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 943 Lines: 24 On Fri, Nov 19, 2010 at 05:26:51PM +0100, Lukas Czerner wrote: > > If we're going to keep FITRIM defined in include/fs.h, then we should > > just dispatch off of FITRIM below, and not define EXT4_IOC_TRIM. > > > > > + case EXT4_IOC_TRIM: > > > + { > > > > Agreed? > > I am ok either way, I was just following example of EXT4_IOC_GETFLAGS -> > FS_IOC_GETFLAGS etc.. The history of that was the ioctl was originally EXT4_IOC_GETFLAGS and it was later generalized to be FS_IOC_GETFLAGS. In this case though we started with it being an generalized interface, so there's no need to create an EXT4_IOC_TRIM ioctl. I'll fix that up in your patch when I add it to the ext4 patch queue. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/