Btrfs: always update root items for fs trees at commit time
authorYan Zheng <[email protected]>
Tue, 16 Jun 2009 00:01:02 +0000 (20:01 -0400)
committerChris Mason <[email protected]>
Tue, 16 Jun 2009 00:01:02 +0000 (20:01 -0400)
commit978d910d31c5202e251298bf3f603300a54605dd
tree69a5c7a2f1fac9b98dcc3bc95d9214686d487f16
parentb263c2c8bf13c273485bd99dbbeba79c844409dd
Btrfs: always update root items for fs trees at commit time

commit_fs_roots skips updating root items for fs trees that aren't modified.
This is unsafe now that relocation code modifies root item's last_snapshot
field without modifying corresponding fs tree.

Signed-off-by: Yan Zheng <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/transaction.c