From: Anton Altaparmakov <aia21@cam.ac.uk>
To: Andrew Morton <akpm@osdl.org>
Cc: Robert S Peterson <rpeterso@redhat.com>, linux-fsdevel@vger.kernel.org
Subject: Re: [patch] loop.c to use write ops for fs requiring special locking
Date: Sat, 11 Mar 2006 00:36:18 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.4.64.0603110025510.24189@hermes-2.csi.cam.ac.uk> (raw)
In-Reply-To: <20060310151353.584ddfd5.akpm@osdl.org>
On Fri, 10 Mar 2006, Andrew Morton wrote:
> Robert S Peterson <rpeterso@redhat.com> wrote:
> > On Thu, 2006-03-02 at 10:16 +0000, Anton Altaparmakov wrote:
> > > It is simply that it is faster on all file systems that can use
> > > prepare_write/commit_write and the "performance hungry" would have
> > > complained if it were to be removed.
> > (snip)
> > > Anton
> >
> > Having heard no objections to my loop.c patch, when can I expect it to
> > be integrated into the 2.6 kernel?
>
> When we've remembered what Al's statement meant in
> http://marc.theaimsgroup.com/?t=102129995600002&r=1&w=2
>
> I knew at the time, but I've forgotten. Maybe the issue went away..
The comment is that the patch put forward by Urban in the above thread
replaced the use of readpage for reading with file ->read and
prepare_write/commit_write for writing with file ->write without thinking
about it. So he left out the entire transformation on the data which is
what Al correctly complained about.
I.e. Urban's patch made loop only work for a "straight" loopback mount
without any changes to the data (i.e. crypto) applied to it.
This is no longer relevant because my patch which is in current 2.6
kernels (can't remember when I wrote it/when it got put into 2.6) did the
conversion from prepare_write/commit_write to file ->write correctly so
the data transformation still happens so that crypto still works with the
loop driver.
To get back to Robert's patch that he is requesting to be included. I
think it is fine but the flag name could perhaps be better. Perhaps
"FS_AOPS_PRIVATE" or "FS_AOPS_SPECIAL" or "FS_AOPS_NEED_LOCKING" or
even "FS_AOPS_REQUIRE_LOCKING" or something. "FS_REQUIRES_LOCKING" just
does not mean much and certainly would not suggest to me that no-one
outside the file system should use the address space operations of the
file system... But maybe I am just bein picky. (-:
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
next prev parent reply other threads:[~2006-03-11 0:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-01 16:48 [patch] loop.c to use write ops for fs requiring special locking Robert S Peterson
2006-03-01 22:09 ` Andrew Morton
2006-03-02 10:16 ` Anton Altaparmakov
2006-03-10 23:04 ` Robert S Peterson
2006-03-10 23:13 ` Andrew Morton
2006-03-11 0:36 ` Anton Altaparmakov [this message]
2006-03-24 17:07 ` [patch 2.6.16] loop.c to use write ops for fs requiring special locking [try #2] Robert S Peterson
2006-03-24 19:46 ` Anton Altaparmakov
-- strict thread matches above, loose matches on Subject: below --
2006-03-27 21:52 [PATCH] loop.c to use write ops for fs requiring special locking Robert S Peterson
2006-03-28 0:44 ` Andrew Morton
2006-03-28 15:33 ` Robert S Peterson
2006-03-28 19:27 ` Andrew Morton
2006-03-28 14:40 ` Christoph Hellwig
2006-03-28 15:59 ` Robert S Peterson
2006-03-29 9:05 ` Christoph Hellwig
2006-03-30 0:10 ` Robert S Peterson
2006-03-30 14:15 ` Christoph Hellwig
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=Pine.LNX.4.64.0603110025510.24189@hermes-2.csi.cam.ac.uk \
--to=aia21@cam.ac.uk \
--cc=akpm@osdl.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=rpeterso@redhat.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 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).