[Btrfs-devel][PATCH]Fix u32 overflow in dirty_and_release_pages.

Chris Mason chris.mason at oracle.com
Mon Nov 5 05:49:47 PST 2007


On Mon, 5 Nov 2007 18:45:58 +0800
"Yan Zheng" <yanzheng at 21cn.com> wrote:

> Hello,
> 
> When calculating the size of inline extent,  inode->i_size should also
> be take into consideration, otherwise sys_write may drop some data
> silently.  You can test this bug by:
> 
> #dd if=/dev/zero bs=4k count=1 of=test_file
> #dd if=/dev/zero bs=2k count=1 of=test_file conv=notrunc
> 
> Previous patch is included in this one, please ignore it.

Good catch, thanks.

I've got all your patches queued up here, I'll push out once I fix a
nagging loop during defrag.

-chris



More information about the Btrfs-devel mailing list