From: Joel Becker <Joel.Becker@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 2/2] ocfs2: Fix race between mount and recovery
Date: Fri, 11 Jul 2008 18:24:35 -0700 [thread overview]
Message-ID: <20080712012435.GI22577@mail.oracle.com> (raw)
In-Reply-To: <1215822318-6442-3-git-send-email-sunil.mushran@oracle.com>
On Fri, Jul 11, 2008 at 05:25:18PM -0700, Sunil Mushran wrote:
> diff --git a/fs/ocfs2/journal.h b/fs/ocfs2/journal.h
> index 52f02fe..7faab59 100644
> --- a/fs/ocfs2/journal.h
> +++ b/fs/ocfs2/journal.h
> @@ -132,6 +132,16 @@ static inline void ocfs2_inode_set_new(struct ocfs2_super *osb,
> spin_unlock(&trans_inc_lock);
> }
>
> +static inline void ocfs2_bump_recovery_generation(struct ocfs2_dinode *di)
> +{
> + le32_add_cpu(&(di->id1.journal1.ij_recovery_generation), 1);
> +}
> +
> +static inline u32 ocfs2_get_recovery_generation(struct ocfs2_dinode *di)
> +{
> + return le32_to_cpu(di->id1.journal1.ij_recovery_generation);
> +}
There's no reason for these to be inline or even outside of
journal.c.
Joel
--
"Practice random acts of kindness and senseless acts of beauty."
Oh, and don't forget where your towel is.
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
next prev parent reply other threads:[~2008-07-12 1:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-12 0:25 [Ocfs2-devel] OCFS2 1.4: Proposed fix for mount/recovery race (Attempt 3) Sunil Mushran
2008-07-12 0:25 ` [Ocfs2-devel] [PATCH 1/2] ocfs2: Adds counter in struct ocfs2_dinode to track journal replays Sunil Mushran
2008-07-12 0:25 ` [Ocfs2-devel] [PATCH 2/2] ocfs2: Fix race between mount and recovery Sunil Mushran
2008-07-12 1:24 ` Joel Becker [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-07-15 0:31 [Ocfs2-devel] Recovery/mount fixes for mainline Sunil Mushran
2008-07-15 0:31 ` [Ocfs2-devel] [PATCH 2/2] ocfs2: Fix race between mount and recovery Sunil Mushran
2008-07-14 20:12 [Ocfs2-devel] OCFS2 1.4: Proposed fix for mount/recovery race (Attempt 4) Sunil Mushran
2008-07-14 20:12 ` [Ocfs2-devel] [PATCH 2/2] ocfs2: Fix race between mount and recovery Sunil Mushran
2008-07-14 20:25 ` Joel Becker
2008-07-11 23:27 [Ocfs2-devel] OCFS2 1.4: Proposed fix for mount/recovery race (Attempt 2) Sunil Mushran
2008-07-11 23:27 ` [Ocfs2-devel] [PATCH 2/2] ocfs2: Fix race between mount and recovery Sunil Mushran
2008-07-11 23:52 ` Joel Becker
2008-07-10 23:17 [Ocfs2-devel] OCFS2 1.4: Proposed fix for mount/recovery race Sunil Mushran
2008-07-10 23:17 ` [Ocfs2-devel] [PATCH 2/2] ocfs2: Fix race between mount and recovery Sunil Mushran
2008-07-11 0:36 ` Joel Becker
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=20080712012435.GI22577@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.