aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs/logfs.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-07-26 03:53:30 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2010-10-29 04:16:46 -0400
commit7d945a3aa7608f68dba04083d3421e0b43052660 (patch)
tree6d236bc977372f3c93cfde81e68ef46e55159eff /fs/logfs/logfs.h
parent0d85c799623cb6022adb1317ed2987ab9c097c2e (diff)
logfs get_sb, part 3
take logfs_get_sb_device() calls to logfs_get_sb() itself Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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