From: Yan Date: Tue, 6 Nov 2007 15:26:26 +0000 (-0500) Subject: Btrfs: Fix u32 overflow in dirty_and_release_pages. X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~421 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcfec0dcb1b1a037fb26177789e8f108bc429cb3;p=pandora-kernel.git Btrfs: Fix u32 overflow in dirty_and_release_pages. 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed