summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_da_btree.c
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2011-12-15 05:12:02 +0400
committerChris Mason <chris.mason@oracle.com>2011-12-15 19:50:36 +0400
commit3642320e07444cc46327b24977d752f99706dac2 (patch)
tree1ae0d347b6cd2330ca99041d2234672919ebffac /fs/xfs/xfs_da_btree.c
parentf4a2f4c548296168832ad4ab7e7f7b0cd0bf1214 (diff)
downloadlinux-3642320e07444cc46327b24977d752f99706dac2.tar.xz
Btrfs: fix wrong disk space information of the files
Btrfsck report errors after the 83th case of xfstests was run, The error number is 400, it means the used disk space of the file is wrong. The reason of this bug is that: The file truncation may fail when the space of the file system is not enough, and leave some file extents, whose offset are beyond the end of the files. When we want to expand those files, we will drop those file extents, and put in dummy file extents, and then we should update the i-node. But btrfs forgets to do it. This patch adds the forgotten i-node update. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_da_btree.c')
0 files changed, 0 insertions, 0 deletions