diff options
Diffstat (limited to 'fs/f2fs/segment.h')
-rw-r--r-- | fs/f2fs/segment.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index b84dd2396665..07887e1cc704 100644 --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.h | |||
@@ -86,9 +86,9 @@ | |||
86 | #define TOTAL_SECS(sbi) (sbi->total_sections) | 86 | #define TOTAL_SECS(sbi) (sbi->total_sections) |
87 | 87 | ||
88 | #define SECTOR_FROM_BLOCK(sbi, blk_addr) \ | 88 | #define SECTOR_FROM_BLOCK(sbi, blk_addr) \ |
89 | (blk_addr << ((sbi)->log_blocksize - F2FS_LOG_SECTOR_SIZE)) | 89 | (((sector_t)blk_addr) << (sbi)->log_sectors_per_block) |
90 | #define SECTOR_TO_BLOCK(sbi, sectors) \ | 90 | #define SECTOR_TO_BLOCK(sbi, sectors) \ |
91 | (sectors >> ((sbi)->log_blocksize - F2FS_LOG_SECTOR_SIZE)) | 91 | (sectors >> (sbi)->log_sectors_per_block) |
92 | #define MAX_BIO_BLOCKS(max_hw_blocks) \ | 92 | #define MAX_BIO_BLOCKS(max_hw_blocks) \ |
93 | (min((int)max_hw_blocks, BIO_MAX_PAGES)) | 93 | (min((int)max_hw_blocks, BIO_MAX_PAGES)) |
94 | 94 | ||