fs/block_dev.c: __read_mostly improvement and sb_is_blkdev_sb utilization
authorDenis ChengRq <crquan@gmail.com>
Mon, 1 Dec 2008 22:34:56 +0000 (14:34 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 31 Dec 2008 23:07:43 +0000 (18:07 -0500)
commitc2acf7b90821785fe812cc0aa05148e5a1f84204
treeb1fd2a481778c5432237125580b6fc2d2e5d9510
parent6badd79bd002788aaec27b50a74ab69ef65ab8ee
fs/block_dev.c: __read_mostly improvement and sb_is_blkdev_sb utilization

- iget5_locked in bdget really needs blockdev_superblock, instead of
  bd_mnt, so bd_mnt could be just a local variable;

- blockdev_superblock really needs __read_mostly, while local var bd_mnt
  not;

- make use of sb_is_blkdev_sb in bd_forget, instead of direct reference
  to blockdev_superblock.

Signed-off-by: Denis ChengRq <crquan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/block_dev.c