aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs/dev_bdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/logfs/dev_bdev.c')
-rw-r--r--fs/logfs/dev_bdev.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/logfs/dev_bdev.c b/fs/logfs/dev_bdev.c
index bca8e2a8e55b..a322fec10173 100644
--- a/fs/logfs/dev_bdev.c
+++ b/fs/logfs/dev_bdev.c
@@ -339,5 +339,9 @@ int logfs_get_sb_bdev(struct logfs_super *p,
339 return logfs_get_sb_mtd(p, type, flags, mtdnr, mnt); 339 return logfs_get_sb_mtd(p, type, flags, mtdnr, mnt);
340 } 340 }
341 341
342 return logfs_get_sb_device(p, type, flags, NULL, bdev, &bd_devops, mnt); 342 p->s_bdev = bdev;
343 p->s_mtd = NULL;
344 p->s_devops = &bd_devops;
345
346 return logfs_get_sb_device(p, type, flags, mnt);
343} 347}