summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-04-09 21:32:08 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-04-09 21:32:08 -0700
commit9cdf73b0d64dd4bceaaad5c4ab1ab18a556a9ee0 (patch)
treeb787814acd719d54094435e1173f90149ebee22f
parent9d78e51bbbecd38045bf0d3929bd57249b8659e8 (diff)
[PATCH] cramfs cleanup
All places where we do blkdev_size_in_bytes(sb->s_dev) are bogus - we can get the same information from ->s_bdev without messing with kdev_t, major/minor, etc. There will be more patches of that kind - in the long run I'd expect only one caller of blkdev_size_in_bytes() to survive. One if fs/block_dev.c, that is - called when we open device.
-rw-r--r--fs/cramfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c
index ab96db6b972e..e896adad28ec 100644
--- a/fs/cramfs/inode.c
+++ b/fs/cramfs/inode.c
@@ -134,7 +134,7 @@ static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned i
return read_buffers[i] + blk_offset;
}
- devsize = blkdev_size_in_bytes(sb->s_dev) >> 12;
+ devsize = sb->s_bdev->bd_inode->i_size >> 12;
if (!devsize)
devsize = ~0UL;