Commit 49137f2e authored by Joern Engel's avatar Joern Engel

Open segment file before using it

logfs_recover_sb() needs it open.
Signed-off-by: default avatarJoern Engel <joern@logfs.org>
parent b72c4094
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment