Re: [PATCH 02/16] GFS: core fs

Alexey Dobriyan
2005-10-10T18:59:22Z

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;
> +}