diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-07-26 03:33:39 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-29 04:16:43 -0400 |
commit | 0d85c799623cb6022adb1317ed2987ab9c097c2e (patch) | |
tree | a33fe3c19c33ff9b5944002c193e3a5da4d942a3 /fs/logfs/dev_bdev.c | |
parent | 71a1c0125f132b2a4656689ca585c5d8931e539c (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_bdev.c')
-rw-r--r-- | fs/logfs/dev_bdev.c | 6 |
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 | } |