aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs/dev_mtd.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-07-26 03:33:39 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2010-10-29 04:16:43 -0400
commit0d85c799623cb6022adb1317ed2987ab9c097c2e (patch)
treea33fe3c19c33ff9b5944002c193e3a5da4d942a3 /fs/logfs/dev_mtd.c
parent71a1c0125f132b2a4656689ca585c5d8931e539c (diff)
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.c11
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,
269 struct file_system_type *type, int flags, 269 struct file_system_type *type, int flags,
270 int mtdnr, struct vfsmount *mnt) 270 int mtdnr, struct vfsmount *mnt)
271{ 271{
272 struct mtd_info *mtd; 272 struct mtd_info *mtd = get_mtd_device(NULL, mtdnr);
273 const struct logfs_device_ops *devops = &mtd_devops;
274
275 mtd = get_mtd_device(NULL, mtdnr);
276 if (IS_ERR(mtd)) { 273 if (IS_ERR(mtd)) {
277 kfree(s); 274 kfree(s);
278 return PTR_ERR(mtd); 275 return PTR_ERR(mtd);
279 } 276 }
280 return logfs_get_sb_device(s, type, flags, mtd, NULL, devops, mnt); 277
278 s->s_bdev = NULL;
279 s->s_mtd = mtd;
280 s->s_devops = &mtd_devops;
281 return logfs_get_sb_device(s, type, flags, mnt);
281} 282}