提交 6af5ac3c 编写于 作者: C Chris Mason

Btrfs: Handle transid == 0 while opening devices

Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 1c8cfcc1
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册