Messages in this thread | | | Date | Mon, 10 Oct 2005 23:10:58 +0400 | From | Alexey Dobriyan <> | Subject | Re: [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/
| |