aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-defrag.c
diff options
context:
space:
mode:
authorYan <yanzheng@21cn.com>2007-11-06 10:26:26 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:57 -0400
commitdcfec0dcb1b1a037fb26177789e8f108bc429cb3 (patch)
treeab052a4aa666d6453e26d32ba509e46c0ef3d85f /fs/btrfs/tree-defrag.c
parent081e95736d9118a96e9f6dcc5cec02dc75c9e1cb (diff)
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 <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/tree-defrag.c')
0 files changed, 0 insertions, 0 deletions