lkml.org 
[lkml]   [2005]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 02/16] GFS: core fs
On Mon, Oct 10, 2005 at 12:09:54PM -0500, David Teigland wrote:
> --- a/fs/gfs2/bmap.c
> +++ b/fs/gfs2/bmap.c

> +static struct metapath *find_metapath(struct gfs2_inode *ip, uint64_t block)
> +{
> + struct gfs2_sbd *sdp = ip->i_sbd;
> + struct metapath *mp;
> + uint64_t b = block;
> + unsigned int i;
> +
> + mp = kzalloc(sizeof(struct metapath), GFP_KERNEL | __GFP_NOFAIL);

Not checked.

> + for (i = ip->i_di.di_height; i--;)
> + mp->mp_list[i] = do_div(b, sdp->sd_inptrs);
> +
> + return mp;
> +}

-
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: 2005-10-10 21:01    [W:0.036 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site