Re: Kernel crashes when mounting btrfs filesystem when using latest git btrfs trunk.

2008-10-02 Thread Harley Peters
On Fri, 03 Oct 2008 03:31:34 +0800 Zheng Yan <[EMAIL PROTECTED]> wrote: > > Please pull btrfs-progs from the latest git. > > Thanks > Yan Zheng > -- > To unsubscribe from this list: send the line "unsubscribe > linux-btrfs" in the body of a message to [EMAIL PROTECTED] > More majordomo info at

Re: Kernel crashes when mounting btrfs filesystem when using latest git btrfs trunk.

2008-10-02 Thread Zheng Yan
Harley Peters wrote: > When using the latest git trunk if I try and mount a brfs filesystem > the kernel crashes with the following error. > Is this a known problem are just me ? > > > Oct 2 12:43:07 parity [ cut here ] > Oct 2 12:43:07 parity kernel BUG at fs/btrfs/disk

Kernel crashes when mounting btrfs filesystem when using latest git btrfs trunk.

2008-10-02 Thread Harley Peters
When using the latest git trunk if I try and mount a brfs filesystem the kernel crashes with the following error. Is this a known problem are just me ? Oct 2 12:43:07 parity [ cut here ] Oct 2 12:43:07 parity kernel BUG at fs/btrfs/disk-io.c:837! Oct 2 12:43:07 parity i

Re: [PATCH] Btrfs: avoid NULL deref after failed allocation

2008-10-02 Thread Andi Kleen
Jim Meyering <[EMAIL PROTECTED]> writes: > However, in some places, the trend is > to BUG_ON(!ptr), so I've done that, too. Even if it's a trend, it's wrong. Better don't add more. And also unnecessary because next reference will obviously oops anyways. -Andi -- To unsubscribe from this list:

[PATCH] Btrfs: avoid NULL deref after failed allocation

2008-10-02 Thread Jim Meyering
I scanned through the sources looking mostly at kmalloc uses to see if a NULL result pointer could be dereferenced. There were a few. Where it was easy, I adjusted the code to return -ENOMEM. However, in some places, the trend is to BUG_ON(!ptr), so I've done that, too. There were two cases wher