summaryrefslogtreecommitdiffstats
path: root/fs/internal.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2006-08-29 19:06:07 +0100
committerJens Axboe <axboe@nelson.home.kernel.dk>2006-09-30 20:52:26 +0200
commit7b0de42d7c5a471741ede4e71727d88000e6ea59 (patch)
tree808b27ad3b2f4a83a97bcc4c001970fab96ff7b6 /fs/internal.h
parent07f3f05c1e3052b8656129b2a5aca9f888241a34 (diff)
downloadlinux-7b0de42d7c5a471741ede4e71727d88000e6ea59.tar.bz2
[PATCH] BLOCK: Remove dependence on existence of blockdev_superblock [try #6]
Move blockdev_superblock extern declaration from fs/fs-writeback.c to a headerfile and remove the dependence on it by wrapping it in a macro. Signed-Off-By: David Howells <dhowells@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/internal.h b/fs/internal.h
index c21ecd37b1e7..f662b703bb97 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -17,6 +17,8 @@
extern struct super_block *blockdev_superblock;
extern void __init bdev_cache_init(void);
+#define sb_is_blkdev_sb(sb) ((sb) == blockdev_superblock)
+
/*
* char_dev.c
*/