From: Chris Mason Date: Fri, 16 May 2008 17:14:57 +0000 (-0400) Subject: Btrfs: Handle transid == 0 while opening devices X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~168 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6af5ac3c1aede574acde5fc477f1a1c876fb568e;p=linux-2.6-omap-h63xx.git Btrfs: Handle transid == 0 while opening devices Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 501d23d3ebf..3fbf0834e88 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -262,7 +262,7 @@ int btrfs_open_devices(struct btrfs_fs_devices *fs_devices, goto error_brelse; transid = btrfs_super_generation(disk_super); - if (transid > latest_transid) { + if (!latest_transid || transid > latest_transid) { latest_devid = devid; latest_transid = transid; latest_bdev = bdev;