mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
logfs get_sb, part 2
take setting s_bdev/s_mtd/s_devops to callers of logfs_get_sb_device(), don't bother passing them separately Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
71a1c0125f
commit
0d85c79962
4 changed files with 13 additions and 14 deletions
|
@ -339,5 +339,9 @@ int logfs_get_sb_bdev(struct logfs_super *p,
|
|||
return logfs_get_sb_mtd(p, type, flags, mtdnr, mnt);
|
||||
}
|
||||
|
||||
return logfs_get_sb_device(p, type, flags, NULL, bdev, &bd_devops, mnt);
|
||||
p->s_bdev = bdev;
|
||||
p->s_mtd = NULL;
|
||||
p->s_devops = &bd_devops;
|
||||
|
||||
return logfs_get_sb_device(p, type, flags, mnt);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue