[PATCH] fs/buffer: use i_blocksize()
From: Geliang Tang
Date: Fri Jan 20 2017 - 09:32:05 EST
Since i_blocksize() helper has been defined in fs.h, use it instead
of open-coding.
Signed-off-by: Geliang Tang <geliangtang@xxxxxxxxx>
---
fs/buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.9.3