Btrfs: always update root items for fs trees at commit time
authorYan Zheng <zheng.yan@oracle.com>
Tue, 16 Jun 2009 00:01:02 +0000 (20:01 -0400)
committerChris Mason <chris.mason@oracle.com>
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 <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/transaction.c