aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs/logfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/logfs/logfs.h')
-rw-r--r--fs/logfs/logfs.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/fs/logfs/logfs.h b/fs/logfs/logfs.h
index b8786264d243..a3f0aba9e526 100644
--- a/fs/logfs/logfs.h
+++ b/fs/logfs/logfs.h
@@ -471,24 +471,30 @@ void logfs_compr_exit(void);
471 471
472/* dev_bdev.c */ 472/* dev_bdev.c */
473#ifdef CONFIG_BLOCK 473#ifdef CONFIG_BLOCK
474int logfs_get_sb_bdev(struct file_system_type *type, int flags, 474int logfs_get_sb_bdev(struct logfs_super *s,
475 struct file_system_type *type, int flags,
475 const char *devname, struct vfsmount *mnt); 476 const char *devname, struct vfsmount *mnt);
476#else 477#else
477static inline int logfs_get_sb_bdev(struct file_system_type *type, int flags, 478static inline int logfs_get_sb_bdev(struct logfs_super *s,
479 struct file_system_type *type, int flags,
478 const char *devname, struct vfsmount *mnt) 480 const char *devname, struct vfsmount *mnt)
479{ 481{
482 kfree(s);
480 return -ENODEV; 483 return -ENODEV;
481} 484}
482#endif 485#endif
483 486
484/* dev_mtd.c */ 487/* dev_mtd.c */
485#ifdef CONFIG_MTD 488#ifdef CONFIG_MTD
486int logfs_get_sb_mtd(struct file_system_type *type, int flags, 489int logfs_get_sb_mtd(struct logfs_super *s,
490 struct file_system_type *type, int flags,
487 int mtdnr, struct vfsmount *mnt); 491 int mtdnr, struct vfsmount *mnt);
488#else 492#else
489static inline int logfs_get_sb_mtd(struct file_system_type *type, int flags, 493static inline int logfs_get_sb_mtd(struct logfs_super *s,
494 struct file_system_type *type, int flags,
490 int mtdnr, struct vfsmount *mnt) 495 int mtdnr, struct vfsmount *mnt)
491{ 496{
497 kfree(s);
492 return -ENODEV; 498 return -ENODEV;
493} 499}
494#endif 500#endif
@@ -619,7 +625,8 @@ void emergency_read_end(struct page *page);
619void logfs_crash_dump(struct super_block *sb); 625void logfs_crash_dump(struct super_block *sb);
620void *memchr_inv(const void *s, int c, size_t n); 626void *memchr_inv(const void *s, int c, size_t n);
621int logfs_statfs(struct dentry *dentry, struct kstatfs *stats); 627int logfs_statfs(struct dentry *dentry, struct kstatfs *stats);
622int logfs_get_sb_device(struct file_system_type *type, int flags, 628int logfs_get_sb_device(struct logfs_super *s,
629 struct file_system_type *type, int flags,
623 struct mtd_info *mtd, struct block_device *bdev, 630 struct mtd_info *mtd, struct block_device *bdev,
624 const struct logfs_device_ops *devops, struct vfsmount *mnt); 631 const struct logfs_device_ops *devops, struct vfsmount *mnt);
625int logfs_check_ds(struct logfs_disk_super *ds); 632int logfs_check_ds(struct logfs_disk_super *ds);