Skip to content

Commit

Permalink
logfs: fix compile failure
Browse files Browse the repository at this point in the history
When CONFIG_BLOCK is not enabled:

fs/logfs/super.c:142: error: implicit declaration of function 'bdev_get_queue'
fs/logfs/super.c:142: error: invalid type argument of '->' (have 'int')

Found by Randy Dunlap <[email protected]>

Signed-off-by: Joern Engel <[email protected]>
  • Loading branch information
Joern Engel committed May 5, 2010
1 parent 2479753 commit bba0b5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/logfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,14 @@ static int logfs_sb_set(struct super_block *sb, void *_super)
sb->s_fs_info = super;
sb->s_mtd = super->s_mtd;
sb->s_bdev = super->s_bdev;
#ifdef CONFIG_BLOCK
if (sb->s_bdev)
sb->s_bdi = &bdev_get_queue(sb->s_bdev)->backing_dev_info;
#endif
#ifdef CONFIG_MTD
if (sb->s_mtd)
sb->s_bdi = sb->s_mtd->backing_dev_info;
#endif
return 0;
}

Expand Down

0 comments on commit bba0b5c

Please sign in to comment.