]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/block_dev.c
Added flush_disk to factor out common buffer cache flushing code.
authorAndrew Patterson <andrew.patterson@hp.com>
Thu, 4 Sep 2008 20:27:40 +0000 (14:27 -0600)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:13 +0000 (08:56 +0200)
commit56ade44b46780fa291fa68b824f1dafdcb11b0ca
tree2232dc9a9e6b080428e4e6e0a32bcc7c83cc1731
parentf98a8cae12f2b2a8f9bfd7a53c990a1a405e880e
Added flush_disk to factor out common buffer cache flushing code.

We need to be able to flush the buffer cache for for more than
just when a disk is changed, so we factor out common cache flush code
in check_disk_change() to an internal flush_disk() routine.  This
routine will then be used for both disk changes and disk resizes (in a
later patch).

Include the disk name in the text indicating that there are busy
inodes on the device and increase the KERN severity of the message.

Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/block_dev.c