aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-06-20 09:16:42 +0200
committerJens Axboe <axboe@kernel.dk>2020-06-24 09:16:02 -0600
commitd2de7ea48d83195ef1310555f1fdd9e8e1bab0d3 (patch)
tree3ffbcefb9ae1907b8e55579d3dc84149fa39fd3d
parentblock: move block-related definitions out of fs.h (diff)
downloadwireguard-linux-d2de7ea48d83195ef1310555f1fdd9e8e1bab0d3.tar.xz
wireguard-linux-d2de7ea48d83195ef1310555f1fdd9e8e1bab0d3.zip
fs: move the buffer_heads_over_limit stub to buffer_head.h
Move the !CONFIG_BLOCK stub to the same place as the non-stub declaration. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--include/linux/blkdev.h1
-rw-r--r--include/linux/buffer_head.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index cf8f692f62a9..c824c6fee35d 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1838,7 +1838,6 @@ struct block_device;
/*
* stubs for when the block layer is configured out
*/
-#define buffer_heads_over_limit 0
static inline long nr_blockdev_pages(void)
{
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h
index 22fb11e2d2e0..6b47f94378c5 100644
--- a/include/linux/buffer_head.h
+++ b/include/linux/buffer_head.h
@@ -406,6 +406,7 @@ static inline int inode_has_buffers(struct inode *inode) { return 0; }
static inline void invalidate_inode_buffers(struct inode *inode) {}
static inline int remove_inode_buffers(struct inode *inode) { return 1; }
static inline int sync_mapping_buffers(struct address_space *mapping) { return 0; }
+#define buffer_heads_over_limit 0
#endif /* CONFIG_BLOCK */
#endif /* _LINUX_BUFFER_HEAD_H */