lkml.org 
[lkml]   [2008]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 26/48] [GFS2] The case of the missing asterisk
    Date
    From: Steven Whitehouse <swhiteho@redhat.com>

    A dereference was forgotten. This adds it back correctly.

    Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

    diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
    index 1fda731..7f72564 100644
    --- a/fs/gfs2/bmap.c
    +++ b/fs/gfs2/bmap.c
    @@ -402,7 +402,7 @@ static int lookup_metapath(struct inode *inode, struct metapath *mp,

    for (x = 0; x < end_of_metadata; x++) {
    lookup_block(ip, x, mp, create, new, dblock);
    - if (!dblock)
    + if (!*dblock)
    return 0;

    ret = gfs2_meta_indirect_buffer(ip, x+1, *dblock, *new, &mp->mp_bh[x+1]);
    --
    1.5.1.2


    \
     
     \ /
      Last update: 2008-04-17 11:47    [W:0.024 / U:0.216 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site