lkml.org 
[lkml]   [2007]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] jbd/jbd2: Journal initialization doesn't need __GFP_NOFAIL
    Date
    From: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>

    Signed-off-by: Mingming Cao <cmm@us.ibm.com>
    Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
    ---
    fs/jbd/journal.c | 2 +-
    fs/jbd2/journal.c | 2 +-
    2 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c
    index ae2c25d..8d6d475 100644
    --- a/fs/jbd/journal.c
    +++ b/fs/jbd/journal.c
    @@ -653,7 +653,7 @@ static journal_t * journal_init_common (void)
    journal_t *journal;
    int err;

    - journal = kmalloc(sizeof(*journal), GFP_KERNEL|__GFP_NOFAIL);
    + journal = kmalloc(sizeof(*journal), GFP_KERNEL);
    if (!journal)
    goto fail;
    memset(journal, 0, sizeof(*journal));
    diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
    index 4281244..0e329a3 100644
    --- a/fs/jbd2/journal.c
    +++ b/fs/jbd2/journal.c
    @@ -654,7 +654,7 @@ static journal_t * journal_init_common (void)
    journal_t *journal;
    int err;

    - journal = kmalloc(sizeof(*journal), GFP_KERNEL|__GFP_NOFAIL);
    + journal = kmalloc(sizeof(*journal), GFP_KERNEL);
    if (!journal)
    goto fail;
    memset(journal, 0, sizeof(*journal));
    --
    1.5.3.2.81.g17ed
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-10-04 07:53    [W:0.021 / U:65.412 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site