All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manish Katiyar <mkatiyar@gmail.com>
To: "Ted Ts'o" <tytso@mit.edu>
Cc: Jan Kara <jack@suse.cz>, linux-ext4@vger.kernel.org
Subject: Re: [PATCH 2/3] jbd2 : Fix journal start by passing a parameter to specify if the caller can deal with ENOMEM
Date: Fri, 27 May 2011 23:16:00 -0700	[thread overview]
Message-ID: <BANLkTimsOKkRO=8k2GK8wY+LaYXRZaqkYQ@mail.gmail.com> (raw)
In-Reply-To: <20110526022251.GG9520@thunk.org>

On Wed, May 25, 2011 at 7:22 PM, Ted Ts'o <tytso@mit.edu> wrote:
> On Wed, May 25, 2011 at 10:13:33AM +0200, Jan Kara wrote:
>> >
>> >    ok.. I will do it as a separate patch.
>>   Well, patch 2/3 does not really make too much sense without it (errok
>> parameter isn't used) so there's no reason to do it as a separate patch.
>> Just add it to this patch please.
>
> Agreed; right now this whole patch series is a no-op, since errok
> isn't getting used for anything.  So fixing errok so it's passed to
> start_this_handle() seems to be more in the category of "fix the
> patch" more than anything else.
>
> One more thing; perhaps we should be passing in a integer so we can
> pass in a flag word.  That way you don't need to have a fail_ok
> variant.  It's a lot more obvious if you have a call:
>
>          handle = ext4_journal_start(inode, 1, JBD2_FAIL_OK);
>
> What we can also do is this:
>
>          handle = ext4_journal_start(inode, 1, JBD2_FAIL_OK | JBD2_TOPLEVEL);
>
> What JBD2_TOPLEVEL means is that caller is from a top-level file
> system function, such as ext4_symlink() or ext4_chmod(), such that
> start_this_handle() can use GFP_KERNEL instead of GFP_NOFS.  GFP_NOFS
> is needed for any function that might get called by the direct reclaim
> path (i.e., the writepage() function).  But for the top-level
> symlink() or chmod() function, it's actually OK to allocate memory
> using GFP_KERNEL, since there's no potential recursion problem.

Hi Ted,

Resending version 2 of the three patch series after updating them as
you suggested above.

-- 
Thanks -
Manish
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2011-05-28  6:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-25  7:26 [PATCH 2/3] jbd2 : Fix journal start by passing a parameter to specify if the caller can deal with ENOMEM Manish Katiyar
2011-05-25  7:44 ` Jan Kara
2011-05-25  7:47   ` Manish Katiyar
2011-05-25  8:13     ` Jan Kara
2011-05-26  2:22       ` Ted Ts'o
2011-05-26  4:07         ` Andreas Dilger
2011-05-26 14:05           ` Ted Ts'o
2011-05-26 14:49             ` Jan Kara
2011-05-26 15:08               ` Ted Ts'o
2011-05-26 15:37                 ` Jan Kara
2011-05-27  4:11                 ` Manish Katiyar
2011-05-26  5:29         ` Manish Katiyar
2011-05-26 14:51           ` Jan Kara
2011-05-28  6:16         ` Manish Katiyar [this message]

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='BANLkTimsOKkRO=8k2GK8wY+LaYXRZaqkYQ@mail.gmail.com' \
    --to=mkatiyar@gmail.com \
    --cc=jack@suse.cz \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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.