[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110125114020.GA4088@quack.suse.cz>
Date: Tue, 25 Jan 2011 12:40:20 +0100
From: Jan Kara <jack@...e.cz>
To: Joel Becker <jlbec@...lplan.org>
Cc: Jan Kara <jack@...e.cz>, Ted Ts'o <tytso@....edu>,
Manish Katiyar <mkatiyar@...il.com>,
ext4 <linux-ext4@...r.kernel.org>
Subject: Re: [PATCH 1/3] jbd2 : Make jbd2 transaction handle allocation to
return errors and handle them gracefully.
On Mon 24-01-11 09:20:23, Joel Becker wrote:
> On Mon, Jan 24, 2011 at 02:31:43PM +0100, Jan Kara wrote:
> > On Sat 22-01-11 22:29:01, Joel Becker wrote:
> > > This API is markedly better to read. Btw, does _nofail() mean no
> > > possible failures, or just no memory errors? If it is no failures, I'd
> > > love to see the function become void.
> > jbd2_journal_start can always fail e.g. because the journal is aborted.
> > So it really just means no memory failures...
>
> Then _nofail() is a terrible name, because it can still fail.
> Let's call it jbd2_journal_start_nofs(); that's what it is.
Good point. But it's not even NO_FS - that's just an internal thing how
JBD2 abuses gfp flags to communicate it's wish. It should really be "do not
fail if there is still hope because user will silently loose data if you
do". But that's obviously too long for a function name suffix ;). I'm
looking for a better name... Andreas' _retry does not well describe what's
the desired effect either.
Honza
--
Jan Kara <jack@...e.cz>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists