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.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/fs/logfs/logfs.h b/fs/logfs/logfs.h
index bdd56fa4b084..5d2e66b48290 100644
--- a/fs/logfs/logfs.h
+++ b/fs/logfs/logfs.h
@@ -472,29 +472,23 @@ void logfs_compr_exit(void);
472/* dev_bdev.c */ 472/* dev_bdev.c */
473#ifdef CONFIG_BLOCK 473#ifdef CONFIG_BLOCK
474int logfs_get_sb_bdev(struct logfs_super *s, 474int logfs_get_sb_bdev(struct logfs_super *s,
475 struct file_system_type *type, int flags, 475 struct file_system_type *type,
476 const char *devname, struct vfsmount *mnt); 476 const char *devname);
477#else 477#else
478static inline int logfs_get_sb_bdev(struct logfs_super *s, 478static inline int logfs_get_sb_bdev(struct logfs_super *s,
479 struct file_system_type *type, int flags, 479 struct file_system_type *type,
480 const char *devname, struct vfsmount *mnt) 480 const char *devname)
481{ 481{
482 kfree(s);
483 return -ENODEV; 482 return -ENODEV;
484} 483}
485#endif 484#endif
486 485
487/* dev_mtd.c */ 486/* dev_mtd.c */
488#ifdef CONFIG_MTD 487#ifdef CONFIG_MTD
489int logfs_get_sb_mtd(struct logfs_super *s, 488int logfs_get_sb_mtd(struct logfs_super *s, int mtdnr)
490 struct file_system_type *type, int flags,
491 int mtdnr, struct vfsmount *mnt);
492#else 489#else
493static inline int logfs_get_sb_mtd(struct logfs_super *s, 490static inline int logfs_get_sb_mtd(struct logfs_super *s, int mtdnr)
494 struct file_system_type *type, int flags,
495 int mtdnr, struct vfsmount *mnt)
496{ 491{
497 kfree(s);
498 return -ENODEV; 492 return -ENODEV;
499} 493}
500#endif 494#endif