aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2011-12-14 20:12:01 -0500
committerChris Mason <chris.mason@oracle.com>2011-12-15 10:50:35 -0500
commitf4a2f4c548296168832ad4ab7e7f7b0cd0bf1214 (patch)
tree10df3e81cc6a10253bb007858ee862a91c596335 /fs/logfs
parent5dbc8fca8ef5d719014f22345d990e957dcfc692 (diff)
Btrfs: fix wrong i_size when truncating a file to a larger size
Btrfsck report error 100 after the 83th case of xfstests was run, it means the i_size of the file is wrong. The reason of this bug is that: Btrfs increased i_size of the file at the beginning, but it failed to expand the file, and failed to update the i_size to the old size because there is no enough space in the file system, so we found a wrong i_size. This patch fixes this bug by updating the i_size just when we pass the file expanding and get enough space to update i-node. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/logfs')
0 files changed, 0 insertions, 0 deletions