commit | 2cf8572dac62cc2ff7e995173e95b6c694401b3f | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Tue Jul 26 15:35:09 2011 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Wed Jul 27 12:46:48 2011 -0400 |
tree | ae37f2f4a2f4a797ee971a94ee2c29c55a8048dc | |
parent | 19b6caf4acbf065dc96b47741d99f1b87243c468 [diff] |
Btrfs: use the commit_root for reading free_space_inode crcs Now that we are using regular file crcs for the free space cache, we can deadlock if we try to read the free_space_inode while we are updating the crc tree. This commit fixes things by using the commit_root to read the crcs. This is safe because we the free space cache file would already be loaded if that block group had been changed in the current transaction. Signed-off-by: Chris Mason <chris.mason@oracle.com>