summaryrefslogtreecommitdiffstats
path: root/fs/stack.c
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2013-10-25 17:33:36 +0800
committerChris Mason <chris.mason@fusionio.com>2013-11-11 22:08:49 -0500
commit9dced186f934648bb7796ad3301cfc2563e2ad6e (patch)
tree8a982bcff082d94b639a57fb35b4e0b10c892edf /fs/stack.c
parent9e6a0c52b74b2d63a6cdb09cec5eaf66038b218f (diff)
downloadtalos-op-linux-9dced186f934648bb7796ad3301cfc2563e2ad6e.tar.gz
talos-op-linux-9dced186f934648bb7796ad3301cfc2563e2ad6e.zip
Btrfs: fix the free space write out failure when there is no data space
After running space balance on a new fs, the fs check program outputed the following warning message: free space inode generation (0) did not match free space cache generation (20) Steps to reproduce: # mkfs.btrfs -f <dev> # mount <dev> <mnt> # btrfs balance start <mnt> # umount <mnt> # btrfs check <dev> It was because there was no data space after the space balance, and the free space write out task didn't try to allocate a new data chunk for the free space inode when doing the reservation. So the data space reservation failed, and in order to tell the free space loader that this free space inode could not be trusted, the generation of the free space inode wasn't updated. Then the check program found this problem and outputed the above message. But in fact, it is safe that we try to allocate a new data chunk when we find the data space is not enough. The patch fixes the above problem by this way. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/stack.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud