btrfs-progs: update generation_v2 in btrfs_update_root
authorEric Sandeen <sandeen@redhat.com>
Mon, 22 Apr 2013 05:16:41 +0000 (00:16 -0500)
committerDavid Sterba <dsterba@suse.cz>
Tue, 23 Apr 2013 16:56:28 +0000 (18:56 +0200)
commit2417dd4cc99253db7daf8d694c6ce5c543d55def
tree26f966444a90d96720054b9f23a189d19c92f171
parent3456bf086603d11ae77b15e381d6523105f75f15
btrfs-progs: update generation_v2 in btrfs_update_root

This addresses the same issue as did:

2bd1169 btrfs-progs: root_item generation_v2 is out of sync after btrfsck

but rather than optionally updating generation_v2 based
on the size of the existing item, increase the size of the
item as needed, and unconditionally set generation_v2.
This matches the kernel code, and keeping things in sync is a
Good Thing.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
root-tree.c