mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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. [[email protected]: truncate: use i_blocksize()] Link: http://lkml.kernel.org/r/9c8b2cd83c8f5653805d43debde9fa8817e02fc4.1484895804.git.geliangtang@gmail.com Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Fabian Frederick <[email protected]> Signed-off-by: Geliang Tang <[email protected]> Cc: Alexander Viro <[email protected]> Cc: Ross Zwisler <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
d317120097
commit
93407472a2
27 changed files with 56 additions and 51 deletions
|
|
@ -587,7 +587,7 @@ static int dio_set_defer_completion(struct dio *dio)
|
|||
/*
|
||||
* Call into the fs to map some more disk blocks. We record the current number
|
||||
* of available blocks at sdio->blocks_available. These are in units of the
|
||||
* fs blocksize, (1 << inode->i_blkbits).
|
||||
* fs blocksize, i_blocksize(inode).
|
||||
*
|
||||
* The fs is allowed to map lots of blocks at once. If it wants to do that,
|
||||
* it uses the passed inode-relative block number as the file offset, as usual.
|
||||
|
|
|
|||
Loading…
Reference in a new issue