]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
Btrfs: Fix async caching interaction with unmount
authorYan Zheng <zheng.yan@oracle.com>
Tue, 28 Jul 2009 12:41:57 +0000 (08:41 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 28 Jul 2009 12:41:57 +0000 (08:41 -0400)
commitf25784b35f590c81d5fb8245a8cd45e1afb6f1b2
tree71306747041b6e4a5eaccc5028c770fed29b3f87
parent68b38550ddbea13d296184bf69edff387618b1d3
Btrfs: Fix async caching interaction with unmount

- don't stop the caching thread until btrfs_commit_super return.

- if caching is interrupted by umount, set last to (u64)-1.
  otherwise the un-scanned range of block group will be considered
  as free extent.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c