From: Joel Becker <Joel.Becker@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 08/18] ocfs2: Use metadata-specific ocfs2_journal_access_*() functions.
Date: Wed, 10 Dec 2008 16:46:58 -0800 [thread overview]
Message-ID: <20081211004658.GH21455@mail.oracle.com> (raw)
In-Reply-To: <49405F4D.60302@oracle.com>
On Thu, Dec 11, 2008 at 08:31:09AM +0800, Tao Ma wrote:
> > But then you start dereferencing the path bh list. That's
> > breaks the abstraction of the path structure. It also drops the
> > consistency of always using ocfs2_path_bh_journal_access() for paths.
> > Conversely, there is no real loss to calling
> > ocfs2_path_bh_journal_access(); the extra function call is
> > insignificant.
> fail enough. actually this piece of code make me think of the use of
> ocfs2_journal_access_eb.
> in ocfs2_rotate_subtree_left:
> if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) {
> ret = ocfs2_journal_access_eb(handle, inode,
> path_leaf_bh(right_path),
> OCFS2_JOURNAL_ACCESS_WRITE);
> So according to your policy, we should change it to
> ocfs2_path_bh_journal_access also? ;)
Nope, because it's not based on an index, it's using the
path_leaf_bh() func. I know you were being humourous here ;-)
> >> This is really a good chance for us to modify the comments also. ;)
> >
> > You mean something like 'may update the tree root'?
> yeah.
Done.
Joel
--
Joel's Second Law:
If a code change requires additional user setup, it is wrong.
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
next prev parent reply other threads:[~2008-12-11 0:46 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-10 1:09 [Ocfs2-devel] [PATCH 0/18] ocfs2: Add metadata ECC - almost there Joel Becker
2008-12-10 1:09 ` [PATCH 01/18] jbd2: Add buffer triggers Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] " Joel Becker
2008-12-11 19:57 ` Andreas Dilger
2008-12-13 0:45 ` Joel Becker
2008-12-13 0:45 ` [Ocfs2-devel] " Joel Becker
2008-12-18 18:08 ` Jan Kara
2008-12-18 18:08 ` Jan Kara
2008-12-19 0:32 ` Joel Becker
2008-12-19 0:32 ` [Ocfs2-devel] " Joel Becker
2008-12-19 0:40 ` Jan Kara
2008-12-19 0:40 ` Jan Kara
2008-12-19 1:43 ` Joel Becker
2008-12-19 1:43 ` [Ocfs2-devel] " Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 02/18] ocfs2: Add the on-disk structures for metadata checksums Joel Becker
2008-12-10 1:32 ` Tao Ma
2008-12-10 1:40 ` Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 03/18] ocfs2: Add the underlying blockcheck code Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 04/18] ocfs2: Add a validation hook for quota block reads Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 05/18] ocfs2: block read meta ecc Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 06/18] ocfs2: Add journal_access functions with jbd2 triggers Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 07/18] ocfs2: Wrap up the common use cases of ocfs2_new_path() Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 08/18] ocfs2: Use metadata-specific ocfs2_journal_access_*() functions Joel Becker
2008-12-10 2:31 ` Tao Ma
2008-12-10 11:15 ` Joel Becker
2008-12-11 0:31 ` Tao Ma
2008-12-11 0:46 ` Joel Becker [this message]
2008-12-11 1:10 ` Tao Ma
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 09/18] ocfs2: Add ecc and checksums to ocfs2 xattr buckets Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 10/18] ocfs2: Create ocfs2_xattr_value_buf Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 11/18] ocfs2: Pull ocfs2_xattr_value_buf up from __ocfs2_remove_xattr_range() Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 12/18] ocfs2: Pull ocfs2_xattr_value_buf up into ocfs2_xattr_value_truncate() Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 13/18] ocfs2: Pass ocfs2_xattr_value_buf " Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 14/18] ocfs2: Pass value buf to ocfs2_xattr_update_entry() Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 15/18] ocfs2: Use ocfs2_xattr_value_buf in ocfs2_xattr_set_entry() Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 16/18] ocfs2: Pass value buf to ocfs2_remove_value_outside() Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 17/18] ocfs2: Use proper journal_access function in xattr.c Joel Becker
2008-12-10 1:09 ` [Ocfs2-devel] [PATCH 18/18] ocfs2: Enable metadata checksums Joel Becker
2008-12-10 1:52 ` [Ocfs2-devel] [PATCH 0/18] ocfs2: Add metadata ECC - almost there Joel Becker
2008-12-10 12:54 ` Andi Kleen
2008-12-10 18:15 ` Joel Becker
2008-12-10 19:27 ` Andi Kleen
2008-12-11 2:16 ` Joel Becker
2008-12-11 2:25 ` [Ocfs2-devel] [PATCH] ocfs2: Add directory block trailers Joel Becker
2008-12-11 2:25 ` [Ocfs2-devel] [PATCH] ocfs2: Checksum and ECC for directory blocks Joel Becker
2008-12-11 2:46 ` [Ocfs2-devel] [PATCH 0/18] ocfs2: Add metadata ECC - almost there Tao Ma
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=20081211004658.GH21455@mail.oracle.com \
--to=joel.becker@oracle.com \
--cc=ocfs2-devel@oss.oracle.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.