aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/segment.h')
-rw-r--r--fs/f2fs/segment.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
index 848ac519958f..032c0905a12b 100644
--- a/fs/f2fs/segment.h
+++ b/fs/f2fs/segment.h
@@ -89,10 +89,10 @@
89#define TOTAL_SECS(sbi) (sbi->total_sections) 89#define TOTAL_SECS(sbi) (sbi->total_sections)
90#define TOTAL_BLKS(sbi) (SM_I(sbi)->segment_count << sbi->log_blocks_per_seg) 90#define TOTAL_BLKS(sbi) (SM_I(sbi)->segment_count << sbi->log_blocks_per_seg)
91 91
92#define SECTOR_FROM_BLOCK(sbi, blk_addr) \ 92#define SECTOR_FROM_BLOCK(blk_addr) \
93 (((sector_t)blk_addr) << (sbi)->log_sectors_per_block) 93 (((sector_t)blk_addr) << F2FS_LOG_SECTORS_PER_BLOCK)
94#define SECTOR_TO_BLOCK(sbi, sectors) \ 94#define SECTOR_TO_BLOCK(sectors) \
95 (sectors >> (sbi)->log_sectors_per_block) 95 (sectors >> F2FS_LOG_SECTORS_PER_BLOCK)
96#define MAX_BIO_BLOCKS(sbi) \ 96#define MAX_BIO_BLOCKS(sbi) \
97 ((int)min((int)max_hw_blocks(sbi), BIO_MAX_PAGES)) 97 ((int)min((int)max_hw_blocks(sbi), BIO_MAX_PAGES))
98 98
@@ -711,7 +711,7 @@ static inline unsigned int max_hw_blocks(struct f2fs_sb_info *sbi)
711{ 711{
712 struct block_device *bdev = sbi->sb->s_bdev; 712 struct block_device *bdev = sbi->sb->s_bdev;
713 struct request_queue *q = bdev_get_queue(bdev); 713 struct request_queue *q = bdev_get_queue(bdev);
714 return SECTOR_TO_BLOCK(sbi, queue_max_sectors(q)); 714 return SECTOR_TO_BLOCK(queue_max_sectors(q));
715} 715}
716 716
717/* 717/*