All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carsten Otte <cotte@freenet.de>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	schwidefsky@de.ibm.com, akpm@osdl.org
Subject: Re: [RFC/PATCH 2/5] mm/fs: execute in place (V2)
Date: Wed, 18 May 2005 17:50:59 +0200	[thread overview]
Message-ID: <428B6463.3000604@freenet.de> (raw)
In-Reply-To: <20050518153650.GA25322@infradead.org>

Christoph Hellwig wrote:

>On Wed, May 18, 2005 at 05:31:13PM +0200, Carsten Otte wrote:
>  
>
>>- generic_file_read           => xip_file_read
>>    
>>
>
>no need to have that one if you implement aio_read -> use do_sync_read
>
>  
>
>>- generic_file_aio_read    => xip_file_aio_read
>>- __generic_file_aio_read => __xip_file_aio_read
>>    
>>
>
>readv and aio_read are just wrappers around this one.
>
>  
>
>>- generic_file_sendfile     => xip_file_sendfile
>>    
>>
>
>pretty trivial
>
>  
>
>>- generic file_readv          => xip_file_readv
>>- generic_file_write          => xip_file_write
>>    
>>
>
>just use do_sync_write
>
>  
>
>>- generic_file_aio_write_nolock => xip_file_write_nolock
>>- __generic_file_write_nolock => __xip_file_write_nolock
>>- generic_file_write_nolock => xip_file_write_nolock
>>- generic_file_aio_write => xip_file_aio_write
>>    
>>
>
>you don't need all these.  Just writev and aio_write as wrappers around a common one
>
>  
>
>>- generic_file_mmap => xip_file_mmap
>>    
>>
>
>this one doesn't share code anyway
>
>  
>
>>- generic_file_readonly_mmap => xip_file_readonly_mmap
>>    
>>
>
>unless you want to implement a readonly filesystem with xip support you
>don't need this one.
>
>  
>
I agree that sync/async is not too much of a difference when you do a memcpy
behind, so you can just have wrappers. I am still not convinced that it
will stay
reasonably small with all that duplicated stuff, but since it's easy to
do I just
gonna give it a try to see how it'll look alike. Bet the patch size will
double.

  reply	other threads:[~2005-05-18 16:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1116422644.2202.1.camel@cotte.boeblingen.de.ibm.com>
2005-05-18 13:53 ` [RFC/PATCH 1/5] bdev: execute in place (V2) Carsten Otte
2005-05-18 14:27   ` Christoph Hellwig
2005-05-18 15:36     ` Carsten Otte
2005-05-18 15:37       ` Christoph Hellwig
2005-05-18 13:53 ` [RFC/PATCH 2/5] mm/fs: " Carsten Otte
2005-05-18 14:27   ` Christoph Hellwig
2005-05-18 14:56     ` Carsten Otte
2005-05-18 15:00       ` Christoph Hellwig
2005-05-18 15:31         ` Carsten Otte
2005-05-18 15:36           ` Christoph Hellwig
2005-05-18 15:50             ` Carsten Otte [this message]
2005-05-18 15:53               ` Christoph Hellwig
2005-05-18 13:53 ` [RFC/PATCH 3/5] ext2: " Carsten Otte
2005-05-18 13:53 ` [RFC/PATCH 4/5] loop: " Carsten Otte
2005-05-18 14:28   ` Christoph Hellwig
2005-05-18 14:38     ` Carsten Otte
2005-05-18 13:54 ` [RFC/PATCH 5/5] madvice/fadvice: " Carsten Otte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=428B6463.3000604@freenet.de \
    --to=cotte@freenet.de \
    --cc=akpm@osdl.org \
    --cc=hch@infradead.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=schwidefsky@de.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.