Re: [PATCH] fs: fix i_writecount on shmem and friends

From: Al Viro
Date: Fri Mar 14 2014 - 00:51:30 EST


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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/