fs: add i_blocksize()
authorFabian Frederick <fabf@skynet.be>
Mon, 27 Feb 2017 22:28:32 +0000 (14:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 28 Feb 2017 02:43:46 +0000 (18:43 -0800)
commit93407472a21b82f39c955ea7787e5bc7da100642
tree217e8f21de0bd132d39d81c555e6cffa51ff348b
parentd31712009709774506e536a3cc1f7c512f550a0c
fs: add i_blocksize()

Replace all 1 << inode->i_blkbits and (1 << inode->i_blkbits) in fs
branch.

This patch also fixes multiple checkpatch warnings: WARNING: Prefer
'unsigned int' to bare use of 'unsigned'

Thanks to Andrew Morton for suggesting more appropriate function instead
of macro.

[geliangtang@gmail.com: truncate: use i_blocksize()]
Link: http://lkml.kernel.org/r/9c8b2cd83c8f5653805d43debde9fa8817e02fc4.1484895804.git.geliangtang@gmail.com
Link: http://lkml.kernel.org/r/1481319905-10126-1-git-send-email-fabf@skynet.be
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
27 files changed:
fs/block_dev.c
fs/btrfs/file.c
fs/buffer.c
fs/ceph/addr.c
fs/direct-io.c
fs/ext4/inode.c
fs/ext4/mballoc.c
fs/ext4/move_extent.c
fs/iomap.c
fs/jfs/super.c
fs/mpage.c
fs/nfsd/blocklayout.c
fs/nilfs2/btnode.c
fs/nilfs2/inode.c
fs/nilfs2/mdt.c
fs/nilfs2/segment.c
fs/ocfs2/aops.c
fs/ocfs2/file.c
fs/orangefs/orangefs-utils.c
fs/reiserfs/file.c
fs/reiserfs/inode.c
fs/stat.c
fs/udf/inode.c
fs/xfs/xfs_aops.c
fs/xfs/xfs_file.c
include/linux/fs.h
mm/truncate.c