diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2009-07-22 10:07:05 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-07-22 10:07:05 -0400 |
commit | 4a8c9a62d7f7f058eed4b8a6f2c890a887778093 (patch) | |
tree | d3d099197e5ddc94f737dbad273810b902b05307 /fs/btrfs/async-thread.c | |
parent | 33c66f430bfa3a033e70470e4c93f967156b696d (diff) | |
download | op-kernel-dev-4a8c9a62d7f7f058eed4b8a6f2c890a887778093.zip op-kernel-dev-4a8c9a62d7f7f058eed4b8a6f2c890a887778093.tar.gz |
Btrfs: make sure all dirty blocks are written at commit time
Write dirty block groups may allocate new block, and so may add new delayed
back ref. btrfs_run_delayed_refs may make some block groups dirty.
commit_cowonly_roots does not handle the recursion properly, and some dirty
blocks can be left unwritten at commit time. This patch moves
btrfs_run_delayed_refs into the loop that writes dirty block groups, and makes
the code not break out of the loop until there are no dirty block groups or
delayed back refs.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions