On Tue, Nov 24, 2009 at 6:53 AM, Chris Mason <chris.mason@xxxxxxxxxx> wrote:
> On Thu, Nov 19, 2009 at 06:46:58PM +0530, pragnesh radadia wrote:
>> I got following kernel oops when trying to compile kernel on btrfs
>> partation on my laptop.
>
> This is probably running out of space. Could you please send along the
> lines around line number 735 in fs/btrfs/inode.c?
>
> -chris
>
code,
712 if (ret == 0) {
713 extent_clear_unlock_delalloc(inode,
714
&BTRFS_I(inode)->io_tree,
715 start, end,
NULL, 1, 1,
716 1, 1, 1, 1);
717 *nr_written = *nr_written +
718 (end - start + PAGE_CACHE_SIZE) /
PAGE_CACHE_SIZE;
719 *page_started = 1;
720 ret = 0;
721 goto out;
722 }
723 }
724
725 BUG_ON(disk_num_bytes >
726 btrfs_super_total_bytes(&root->fs_info->super_copy));
727
728 btrfs_drop_extent_cache(inode, start, start + num_bytes - 1, 0);
729
730 while (disk_num_bytes > 0) {
731 cur_alloc_size = min(disk_num_bytes,
root->fs_info->max_extent);
732 ret = btrfs_reserve_extent(trans, root, cur_alloc_size,
733 root->sectorsize, 0, alloc_hint,
734 (u64)-1, &ins, 1);
735 BUG_ON(ret);
736
737 em = alloc_extent_map(GFP_NOFS);
738 em->start = start;
739 em->orig_start = em->start;
740
741 ram_size = ins.offset;
-pragnesh
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html