projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b72c409
)
Open segment file before using it
author
Joern Engel
<joern@logfs.org>
Tue, 16 Mar 2010 20:46:15 +0000
(21:46 +0100)
committer
Joern Engel
<joern@logfs.org>
Sat, 27 Mar 2010 10:19:13 +0000
(11:19 +0100)
logfs_recover_sb() needs it open.
Signed-off-by: Joern Engel <joern@logfs.org>
fs/logfs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/logfs/super.c
b/fs/logfs/super.c
index c66beab78deedb5efd8fa5d7dfb27a7f4d78b95b..018728120bb37e4afae99faed222c638b80e6399 100644
(file)
--- a/
fs/logfs/super.c
+++ b/
fs/logfs/super.c
@@
-289,6
+289,10
@@
static int logfs_make_writeable(struct super_block *sb)
{
int err;
+ err = logfs_open_segfile(sb);
+ if (err)
+ return err;
+
/* Repair any broken superblock copies */
err = logfs_recover_sb(sb);
if (err)
@@
-299,10
+303,6
@@
static int logfs_make_writeable(struct super_block *sb)
if (err)
return err;
- err = logfs_open_segfile(sb);
- if (err)
- return err;
-
/* Do one GC pass before any data gets dirtied */
logfs_gc_pass(sb);