diff options
author | Zheng Bin <zhengbin13@huawei.com> | 2020-06-18 07:21:38 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-18 18:24:35 +0300 |
commit | 3373a3461aa15b7f9a871fa4cb2c9ef21ac20b47 (patch) | |
tree | 362dedd9d551299df2df8014df7ccae45487b181 /fs/block_dev.c | |
parent | f4bd34b139a3fa2808c4205f12714c65e1548c6c (diff) | |
download | linux-3373a3461aa15b7f9a871fa4cb2c9ef21ac20b47.tar.xz |
block: make function 'kill_bdev' static
kill_bdev does not have any external user, so make it static.
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 08c87db3a92b..0ae656e022fd 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -75,7 +75,7 @@ static void bdev_write_inode(struct block_device *bdev) } /* Kill _all_ buffers and pagecache , dirty or not.. */ -void kill_bdev(struct block_device *bdev) +static void kill_bdev(struct block_device *bdev) { struct address_space *mapping = bdev->bd_inode->i_mapping; @@ -84,8 +84,7 @@ void kill_bdev(struct block_device *bdev) invalidate_bh_lrus(); truncate_inode_pages(mapping, 0); -} -EXPORT_SYMBOL(kill_bdev); +} /* Invalidate clean unused buffers and pagecache. */ void invalidate_bdev(struct block_device *bdev) |