]> git.hungrycats.org Git - linux/commit
[PATCH] bdev: add I_BDEV()
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 02:07:17 +0000 (18:07 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 02:07:17 +0000 (18:07 -0800)
commit8fbd544cbca5c62947daa5b270a4d083b9c93289
tree524518743b4362ed6f116248df210a437c15b692
parent980f718652f064f33a139a2b69d15df510d53e4a
[PATCH] bdev: add I_BDEV()

From: viro@parcelfarce.linux.theplanet.co.uk <viro@parcelfarce.linux.theplanet.co.uk>

For bdevfs inodes (ones created along with struct block_device by
fs/block_dev.c) we have inode->i_bdev equal to &BDEV_I(inode)->bdev (i.e.
it's at the constant offset from inode).  New helper added for such inodes
(I_BDEV(inode)).  A bunch of places (mostly in block_dev.c) switched to use
of that helper.  A bunch of places that used

file->f_dentry->d_inode->i_bdev->bd_inode

switched to

file->f_mapping->host

- those expressions are equal whenever the former is valid.
drivers/block/loop.c
fs/block_dev.c
fs/reiserfs/journal.c
include/linux/fs.h
mm/filemap.c
mm/swapfile.c