On Thu, 15 Jun 2006 02:08:32 +0400 "Vladimir V. Saveliev" <[email protected]> wrote: > The core of generic_file_buffered_write is > do { > grab_cache_page(); > a_ops->prepare_write(); > copy_from_user(); > a_ops->commit_write(); > > filemap_set_next_iovec(); > balance_dirty_pages_ratelimited(); > } while (count); > > > Would it make sence to rework this code with adding new address_space > operation - fill_pages so that looks like: > > do { > a_ops->fill_pages(); > filemap_set_next_iovec(); > balance_dirty_pages_ratelimited(); > } while (count); > > generic implementation of fill_pages would look like: > > generic_fill_pages() > { > grab_cache_page(); > a_ops->prepare_write(); > copy_from_user(); > a_ops->commit_write(); > } > There's nothing which leaps out and says "wrong" in this. But there's nothing which leaps out and says "right", either. It seems somewhat arbitrary, that's all. We have one filesystem which wants such a refactoring (although I don't think you've adequately spelled out _why_ reiser4 wants this). To be able to say "yes, we want this" I think we'd need to understand which other filesystems would benefit from exploiting it, and with what results? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: batched write
- From: Andreas Dilger <[email protected]>
- Re: batched write
- From: Hans Reiser <[email protected]>
- Re: batched write
- References:
- [PATCH] updated reiser4 - reduced cpu usage for writes by writing more than 4k at a time (has implications for generic write code and eventually for the IO layer)
- From: Hans Reiser <[email protected]>
- Re: [PATCH] updated reiser4 - reduced cpu usage for writes by writing more than 4k at a time (has implications for generic write code and eventually for the IO layer)
- From: Tom Vier <[email protected]>
- Re: [PATCH] updated reiser4 - reduced cpu usage for writes by writing more than 4k at a time (has implications for generic write code and eventually for the IO layer)
- From: Hans Reiser <[email protected]>
- Re: [PATCH] updated reiser4 - reduced cpu usage for writes by writing more than 4k at a time (has implications for generic write code and eventually for the IO layer)
- From: Jens Axboe <[email protected]>
- Re: [PATCH] updated reiser4 - reduced cpu usage for writes by writing more than 4k at a time (has implications for generic write code and eventually for the IO layer)
- From: "Vladimir V. Saveliev" <[email protected]>
- Re: [PATCH] updated reiser4 - reduced cpu usage for writes by writing more than 4k at a time (has implications for generic write code and eventually for the IO layer)
- From: Christoph Hellwig <[email protected]>
- batched write
- From: "Vladimir V. Saveliev" <[email protected]>
- [PATCH] updated reiser4 - reduced cpu usage for writes by writing more than 4k at a time (has implications for generic write code and eventually for the IO layer)
- Prev by Date: Re: 2.6.17-rc[56]-mm*: pcmcia "I/O resource not free"
- Next by Date: Re: x86_64: x86-64 mailing lists / posting patchkits / x86-64 releases
- Previous by thread: batched write
- Next by thread: Re: batched write
- Index(es):