diff options
author | Joern Engel <joern@logfs.org> | 2010-05-05 22:32:52 +0200 |
---|---|---|
committer | Joern Engel <joern@logfs.org> | 2010-05-05 22:32:52 +0200 |
commit | bba0b5c2c27e6dadc93c476f8a4b49d108b66292 (patch) | |
tree | 4e956d60dceb83f12e03bcde335823239b101843 /fs/logfs/super.c | |
parent | 24797535e18ae219be1fc2632959327075bef5da (diff) | |
download | kernel_goldelico_gta04-bba0b5c2c27e6dadc93c476f8a4b49d108b66292.zip kernel_goldelico_gta04-bba0b5c2c27e6dadc93c476f8a4b49d108b66292.tar.gz kernel_goldelico_gta04-bba0b5c2c27e6dadc93c476f8a4b49d108b66292.tar.bz2 |
logfs: fix compile failure
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 <randy.dunlap@oracle.com>
Signed-off-by: Joern Engel <joern@logfs.org>
Diffstat (limited to 'fs/logfs/super.c')
-rw-r--r-- | fs/logfs/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/logfs/super.c b/fs/logfs/super.c index edd9948..2b26938 100644 --- a/fs/logfs/super.c +++ b/fs/logfs/super.c @@ -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; } |