Linux LVM users
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.org>
To: Andrew Morton <akpm@zip.com.au>
Cc: Neil Brown <neilb@cse.unsw.edu.au>,
	Joe Thornber <joe@fib011235813.fsnet.co.uk>,
	linux-lvm@sistina.com, linux-kernel@vger.kernel.org
Subject: Re: [linux-lvm] LVM2 modifies the buffer_head struct?
Date: Thu Jul  4 03:40:02 2002	[thread overview]
Message-ID: <20020704083941.GA6204@suse.de> (raw)
In-Reply-To: <3D2409FA.44E88C1D@zip.com.au>

On Thu, Jul 04 2002, Andrew Morton wrote:
> Jens Axboe wrote:
> > 
> > ...
> > > We just want ext3/jbd to make sure that it only calls bh2jh on
> > > an unlocked buffer... is that easy?
> > 
> > That's the question indeed, someone with a good grasp of jbd should make
> > that call. If that is the only 'violator' (depending on your point of
> > view), then yes lets just fix that up and say that the above is pb
> > private is valid.
> 
> We really don't want to do this, please.  Changing things so
> that we can only run bh2jh() and, particularly, journal_add_journal_head()
> on a locked buffer would involve fairly unpleasant surgery against
> parts of ext3 which are already prone to exploding.  Like
> do_get_write_access().
> 
> If it was needed for 2.5 then hmm, maybe.  But as this is only a
> 2.4 problem then I really don't think we should risk breaking
> or slowing down the filesystem for this.
> 
> Look, it's easy: delete buffer_head.b_inode (which is only used as 
> a boolean), move its function to a b_state bit.  Add a new
> buffer_head.ext3_hack and we can use that for pointing at the journal_head.

Thank you, this is what I was looking for (if you look further up, I was
advocating this very thing). Slimming down buffer_head and just add the
ext3 hack is perfectly acceptable to me.

Which just means that device mapper needs to do the stacking properly,
EOD.

-- 
Jens Axboe

  reply	other threads:[~2002-07-04  3:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-02  8:41 [linux-lvm] LVM2 modifies the buffer_head struct? Tom Walcott
2002-07-02  9:17 ` Joe Thornber
2002-07-03  5:09   ` Jens Axboe
2002-07-03  5:23     ` Andrew Morton
2002-07-03  7:01     ` Joe Thornber
2002-07-03  7:10       ` Jens Axboe
2002-07-03 23:44         ` Neil Brown
2002-07-04  0:39           ` Andrew Morton
2002-07-04  2:46           ` Joe Thornber
2002-07-04  2:58           ` Jens Axboe
2002-07-04  3:34             ` Andrew Morton
2002-07-04  3:40               ` Jens Axboe [this message]
2002-07-04  3:58                 ` Joe Thornber
2002-07-04  4:00                   ` Jens Axboe
2002-07-04  4:38                 ` Andrew Morton
2002-07-07 14:52                   ` Joe Thornber
  -- strict thread matches above, loose matches on Subject: below --
2002-07-05  0:21 Mark Peloquin

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=20020704083941.GA6204@suse.de \
    --to=axboe@kernel.org \
    --cc=akpm@zip.com.au \
    --cc=joe@fib011235813.fsnet.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-lvm@sistina.com \
    --cc=neilb@cse.unsw.edu.au \
    /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