Btrfs: setup free ino caching in a more asynchronous way
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 26 May 2011 06:38:30 +0000 (06:38 +0000)
committerChris Mason <chris.mason@oracle.com>
Thu, 26 May 2011 21:53:04 +0000 (17:53 -0400)
commita47d6b70e280401d553e7cac6f5750870de1ad21
tree2874064c08ecc65cdfda9b2a9fd9895eb73a011e
parent00d01bc17cc2807292303961519d9c005794eb1d
Btrfs: setup free ino caching in a more asynchronous way

For a filesystem that has lots of files in it, the first time we mount
it with free ino caching support, it can take quite a long time to
setup the caching before we can create new files.

Here we fill the cache with [highest_ino, BTRFS_LAST_FREE_OBJECTID]
before we start the caching thread to search through the extent tree.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode-map.c