bdi: make inode_to_bdi() inline
authorTejun Heo <tj@kernel.org>
Fri, 22 May 2015 21:13:33 +0000 (17:13 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:33:34 +0000 (08:33 -0600)
commita212b105b07d75b48b1a166378282e8a77fbf53d
treea4c44f26ec1986ee4aefdd9c99a7cb99a8d527ca
parent66114cad64bf76a155fec1f0fff0de771cf909d5
bdi: make inode_to_bdi() inline

Now that bdi definitions are moved to backing-dev-defs.h,
backing-dev.h can include blkdev.h and inline inode_to_bdi() without
worrying about introducing circular include dependency.  The function
gets called from hot paths and fairly trivial.

This patch makes inode_to_bdi() and sb_is_blkdev_sb() that the
function calls inline.  blockdev_superblock and noop_backing_dev_info
are EXPORT_GPL'd to allow the inline functions to be used from
modules.

While at it, make sb_is_blkdev_sb() return bool instead of int.

v2: Fixed typo in description as suggested by Jan.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/block_dev.c
fs/fs-writeback.c
include/linux/backing-dev.h
include/linux/fs.h
mm/backing-dev.c