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)
- 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>

No differences found