Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752197Ab0AHNIg (ORCPT ); Fri, 8 Jan 2010 08:08:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751715Ab0AHNIg (ORCPT ); Fri, 8 Jan 2010 08:08:36 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:60346 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876Ab0AHNIf (ORCPT ); Fri, 8 Jan 2010 08:08:35 -0500 Date: Fri, 8 Jan 2010 08:08:28 -0500 From: Christoph Hellwig To: Wu Fengguang Cc: Andi Kleen , Andrew Morton , Quentin Barnes , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , Nick Piggin , Steven Whitehouse , David Howells , Al Viro , Jonathan Corbet , Christoph Hellwig Subject: Re: [RFC][PATCH v2] readahead: introduce O_RANDOM_READ for POSIX_FADV_RANDOM Message-ID: <20100108130828.GA30480@infradead.org> References: <20091225000717.GA26949@yahoo-inc.com> <87aax18xms.fsf@basil.nowhere.org> <20091230051540.GA16308@localhost> <20091230052402.GB26364@localhost> <873a2s8hmp.fsf@basil.nowhere.org> <20091231043116.GA19397@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091231043116.GA19397@localhost> User-Agent: Mutt/1.5.19 (2009-01-05) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 403 Lines: 9 Just thinking about this again, why don't you put the flag into file->f_mode and the FMODE_* namespace given that we don't want it to be settable from open? -- 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/