Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37588
b: refs/heads/master
c: 5e6d12b
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Jens Axboe committed Sep 30, 2006
1 parent 2060203 commit 1de44e7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 65934a9a028b88e83e2b0f8b36618fe503349f8e
refs/heads/master: 5e6d12b2c8be2cac099df6dcb8b26884f24d2621
17 changes: 14 additions & 3 deletions trunk/fs/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,29 @@

#include <linux/ioctl32.h>

struct super_block;

/*
* block_dev.c
*/
#ifdef CONFIG_BLOCK
extern struct super_block *blockdev_superblock;
extern void __init bdev_cache_init(void);

#define sb_is_blkdev_sb(sb) ((sb) == blockdev_superblock)
static inline int sb_is_blkdev_sb(struct super_block *sb)
{
return sb == blockdev_superblock;
}

#else
static inline void bdev_cache_init(void) {}
static inline void bdev_cache_init(void)
{
}

#define sb_is_blkdev_sb(sb) 0
static inline int sb_is_blkdev_sb(struct super_block *sb)
{
return 0;
}
#endif

/*
Expand Down

0 comments on commit 1de44e7

Please sign in to comment.