diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-07-26 11:33:39 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-29 12:16:43 +0400 |
commit | 0d85c799623cb6022adb1317ed2987ab9c097c2e (patch) | |
tree | a33fe3c19c33ff9b5944002c193e3a5da4d942a3 /fs/logfs/dev_bdev.c | |
parent | 71a1c0125f132b2a4656689ca585c5d8931e539c (diff) | |
download | linux-0d85c799623cb6022adb1317ed2987ab9c097c2e.tar.xz |
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, 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); } |