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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux