aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs/super.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/super.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/super.c')
-rw-r--r--fs/logfs/super.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/logfs/super.c b/fs/logfs/super.c
index 5e43178add98..c80837e54bb3 100644
--- a/fs/logfs/super.c
+++ b/fs/logfs/super.c
@@ -538,8 +538,7 @@ static void logfs_kill_sb(struct super_block *sb)
538 538
539int logfs_get_sb_device(struct logfs_super *super, 539int logfs_get_sb_device(struct logfs_super *super,
540 struct file_system_type *type, int flags, 540 struct file_system_type *type, int flags,
541 struct mtd_info *mtd, struct block_device *bdev, 541 struct vfsmount *mnt)
542 const struct logfs_device_ops *devops, struct vfsmount *mnt)
543{ 542{
544 struct super_block *sb; 543 struct super_block *sb;
545 int err = -ENOMEM; 544 int err = -ENOMEM;
@@ -547,8 +546,6 @@ int logfs_get_sb_device(struct logfs_super *super,
547 546
548 log_super("LogFS: Start mount %x\n", mount_count++); 547 log_super("LogFS: Start mount %x\n", mount_count++);
549 548
550 super->s_mtd = mtd;
551 super->s_bdev = bdev;
552 err = -EINVAL; 549 err = -EINVAL;
553 sb = sget(type, logfs_sb_test, logfs_sb_set, super); 550 sb = sget(type, logfs_sb_test, logfs_sb_set, super);
554 if (IS_ERR(sb)) 551 if (IS_ERR(sb))
@@ -561,8 +558,6 @@ int logfs_get_sb_device(struct logfs_super *super,
561 goto err0; 558 goto err0;
562 } 559 }
563 560
564 super->s_devops = devops;
565
566 /* 561 /*
567 * sb->s_maxbytes is limited to 8TB. On 32bit systems, the page cache 562 * sb->s_maxbytes is limited to 8TB. On 32bit systems, the page cache
568 * only covers 16TB and the upper 8TB are used for indirect blocks. 563 * only covers 16TB and the upper 8TB are used for indirect blocks.