projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c8cfcc
)
Btrfs: Handle transid == 0 while opening devices
author
Chris Mason
<chris.mason@oracle.com>
Fri, 16 May 2008 17:14:57 +0000
(13:14 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:03 +0000
(11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/volumes.c
b/fs/btrfs/volumes.c
index 501d23d3ebfd2f0c0a23ad4672af2d445a9391a7..3fbf0834e88474d168e59fce51bb3076b55674ab 100644
(file)
--- 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;