Hi.

On Wed, Oct 29, 2008 at 01:49:56AM +0000, Phillip Lougher ([EMAIL PROTECTED]) 
wrote:
> +int squashfs_read_data(struct super_block *sb, void *buffer,
> +                     long long index, int length, long long *next_index,
> +                     int srclength)
> +{
> +     struct squashfs_sb_info *msblk = sb->s_fs_info;
> +     struct buffer_head **bh;
> +     int offset = index & ((1 << msblk->devblksize_log2) - 1);
> +     long long cur_index = index >> msblk->devblksize_log2;
> +     int avail, bytes, compressed, b = 0, k = 0;
> +     int c_byte = length;
> +
> +     bh = kcalloc((msblk->block_size >> msblk->devblksize_log2) + 1,
> +                             sizeof(*bh), GFP_KERNEL);

Could be great to have a memory pool though...

-- 
        Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe linux-embedded" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to