]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
blkdev_max_block: make private to fs/buffer.c
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Nov 2012 20:31:52 +0000 (12:31 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Nov 2012 01:48:12 +0000 (17:48 -0800)
commitbbec0270bdd887f96377065ee38b8848b5afa395
tree4a38397643dceb5285afe11c78e27763a2ead5b8
parentab73857e354ab9e317613cba7db714e2c12c6547
blkdev_max_block: make private to fs/buffer.c

We really don't want to look at the block size for the raw block device
accesses in fs/block-dev.c, because it may be changing from under us.
So get rid of the max_block logic entirely, since the caller should
already have done it anyway.

That leaves the only user of this function in fs/buffer.c, so move the
whole function there and make it static.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/block_dev.c
fs/buffer.c
include/linux/fs.h