Message ID | c049bd6bfe984b617e0503cfc6c56ec4bb2aea7b.1484895183.git.geliangtang@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/buffer.c b/fs/buffer.c index 28484b3..53612c4 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -243,7 +243,7 @@ __find_get_block_slow(struct block_device *bdev, sector_t block) printk("b_state=0x%08lx, b_size=%zu\n", bh->b_state, bh->b_size); printk("device %pg blocksize: %d\n", bdev, - 1 << bd_inode->i_blkbits); + i_blocksize(bd_inode)); } out_unlock: spin_unlock(&bd_mapping->private_lock);
Since i_blocksize() helper has been defined in fs.h, use it instead of open-coding. Signed-off-by: Geliang Tang <geliangtang@gmail.com> --- fs/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)