îütree 080d4a2a20d8d7e7ea8b36f63150827b970da715 parent 35a30d7ce54e087d8025a725d4e5a2fdee723a9f author Chris Mason 1308341649 -0400 committer Chris Mason 1308343127 -0400 Btrfs: avoid delayed metadata items during commits Snapshot creation has two phases. One is the initial snapshot setup, and the second is done during commit, while nobody is allowed to modify the root we are snapshotting. The delayed metadata insertion code can break that rule, it does a delayed inode update on the inode of the parent of the snapshot, and delayed directory item insertion. This makes sure to run the pending delayed operations before we record the snapshot root, which avoids corruptions. Signed-off-by: Chris Mason „Ç Ù’ x