diff options
author | Zhao Lei <zhaolei@cn.fujitsu.com> | 2015-03-02 19:32:20 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-04-13 07:31:10 -0700 |
commit | c99f1b0c6c45d1621f08afb1352689e24a627844 (patch) | |
tree | 2b890b3bc3ffbd5e0e06b13f95455760d7c71212 /fs/btrfs/ordered-data.h | |
parent | d7c151717a1efe289aec29fb9f94485f64262c0b (diff) | |
download | blackbird-op-linux-c99f1b0c6c45d1621f08afb1352689e24a627844.tar.gz blackbird-op-linux-c99f1b0c6c45d1621f08afb1352689e24a627844.zip |
btrfs: Support busy loop of write and delete
Reproduce:
while true; do
dd if=/dev/zero of=/mnt/btrfs/file count=[75% fs_size]
rm /mnt/btrfs/file
done
Then we can see above loop failed on NO_SPACE.
It it long-term problem since very beginning, because delayed-iput
after rm are not run.
We already have commit_transaction() in alloc_space code, but it is
not triggered in above case.
This patch trigger commit_transaction() to run delayed-iput and
reflash pinned-space to to make write success.
It is based on previous fix of delayed-iput in commit_transaction(),
need to be applied on top of:
btrfs: Fix NO_SPACE bug caused by delayed-iput
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ordered-data.h')
0 files changed, 0 insertions, 0 deletions