linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: David Howells <dhowells@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>,
	akpm@osdl.org, linux-fsdevel@vger.kernel.org
Subject: Re: fscache review comments, part 3
Date: Sat, 7 Oct 2006 22:05:22 +0100	[thread overview]
Message-ID: <20061007210522.GB17717@infradead.org> (raw)
In-Reply-To: <8798.1160141154@redhat.com>

On Fri, Oct 06, 2006 at 02:25:54PM +0100, David Howells wrote:
> Christoph Hellwig <hch@infradead.org> wrote:
> 
> >  - generic_file_buffered_write_one_kernel_page seems generally fine, but
> >    you must not call this directly from cachefiles but rather go through
> >    a file operation for it.
> 
> I can't do that for one very good reason: you insisted that I take out[*] all
> the provision of a struct file * for doing I/O to the cache, and without that
> I can't call file ops.  You can't have it both ways.  Sorry.

A file operation doesn't actually have to take a file struct, they're
also available from the inode.  But in some way you are right, doing that
as the file_operations level without a struct file is indeed rather odd.

The important point here is that we definitly need one of the operation
vectors to go through instead of a direct call.   I'm rather tired of all
this arguing here, so if the higher gods think we absolutely need cachefs
now just add a method somewhere with the signature of your function and
hopefull someone will clean up the utter mess later.  It's not like our
current set of read/write methods makes any sense.


      reply	other threads:[~2006-10-07 21:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-28 16:45 fscache review comments, part 3 Christoph Hellwig
2006-09-29  9:23 ` David Howells
2006-09-29 16:43   ` Christoph Hellwig
2006-10-06 13:25 ` David Howells
2006-10-07 21:05   ` Christoph Hellwig [this message]

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=20061007210522.GB17717@infradead.org \
    --to=hch@infradead.org \
    --cc=akpm@osdl.org \
    --cc=dhowells@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).