From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH] fs: fix i_writecount on shmem and friends Date: Fri, 14 Mar 2014 04:51:05 +0000 Message-ID: <20140314045105.GN18016@ZenIV.linux.org.uk> References: <1393859798-1407-1-git-send-email-dh.herrmann@gmail.com> <20140312181925.GK18016@ZenIV.linux.org.uk> <20140313150800.07878c80@notabene.brown> <20140313042934.GM18016@ZenIV.linux.org.uk> <20140313165541.2b23dc96@notabene.brown> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linus Torvalds , David Herrmann , Linux Kernel Mailing List , linux-fsdevel , Andrew Morton , David Howells , Oleg Nesterov To: NeilBrown Return-path: Content-Disposition: inline In-Reply-To: <20140313165541.2b23dc96@notabene.brown> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Mar 13, 2014 at 04:55:41PM +1100, NeilBrown wrote: > Can we do direct writes from kernel space yet? If so I'll change the code to > do that so that it will work with any filesystem (which supports direct > writes). You can - see __swap_writepage() (mm/page_io.c). However, that area is about to get a lot of massage, so it would make sense to wait a bit... > (The documentation says we that bitmap files should only be used on ext2 or > ext3. Most people use bitmaps on the raw devices so hopefully the few who > have a need for files will read the documentation :-) > > (and yes, I check for FMODE_WRITE) Umm... Where?