mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
logfs get_sb massage, part 1
move allocation of logfs_super to logfs_get_sb, pass it to logfs_get_sb_...(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
d2d1ea9306
commit
71a1c0125f
4 changed files with 39 additions and 21 deletions
|
@ -265,14 +265,17 @@ static const struct logfs_device_ops mtd_devops = {
|
|||
.put_device = mtd_put_device,
|
||||
};
|
||||
|
||||
int logfs_get_sb_mtd(struct file_system_type *type, int flags,
|
||||
int logfs_get_sb_mtd(struct logfs_super *s,
|
||||
struct file_system_type *type, int flags,
|
||||
int mtdnr, struct vfsmount *mnt)
|
||||
{
|
||||
struct mtd_info *mtd;
|
||||
const struct logfs_device_ops *devops = &mtd_devops;
|
||||
|
||||
mtd = get_mtd_device(NULL, mtdnr);
|
||||
if (IS_ERR(mtd))
|
||||
if (IS_ERR(mtd)) {
|
||||
kfree(s);
|
||||
return PTR_ERR(mtd);
|
||||
return logfs_get_sb_device(type, flags, mtd, NULL, devops, mnt);
|
||||
}
|
||||
return logfs_get_sb_device(s, type, flags, mtd, NULL, devops, mnt);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue