Messages in this thread Patch in this message | | | From | Geliang Tang <> | Subject | [PATCH] fs/buffer: use i_blocksize() | Date | Fri, 20 Jan 2017 22:29:50 +0800 |
| |
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(-)
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
| |