diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-07-26 09:33:39 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-29 10:16:43 +0200 |
commit | 0d85c799623cb6022adb1317ed2987ab9c097c2e (patch) | |
tree | a33fe3c19c33ff9b5944002c193e3a5da4d942a3 /fs/logfs/dev_mtd.c | |
parent | logfs get_sb massage, part 1 (diff) | |
download | linux-0d85c799623cb6022adb1317ed2987ab9c097c2e.tar.xz linux-0d85c799623cb6022adb1317ed2987ab9c097c2e.zip |
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>
Diffstat (limited to 'fs/logfs/dev_mtd.c')
-rw-r--r-- | fs/logfs/dev_mtd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/logfs/dev_mtd.c b/fs/logfs/dev_mtd.c index e886cdcf9d7e..7b22d57d1469 100644 --- a/fs/logfs/dev_mtd.c +++ b/fs/logfs/dev_mtd.c @@ -269,13 +269,14 @@ 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); + struct mtd_info *mtd = get_mtd_device(NULL, mtdnr); if (IS_ERR(mtd)) { kfree(s); return PTR_ERR(mtd); } - return logfs_get_sb_device(s, type, flags, mtd, NULL, devops, mnt); + + s->s_bdev = NULL; + s->s_mtd = mtd; + s->s_devops = &mtd_devops; + return logfs_get_sb_device(s, type, flags, mnt); } |