zram: move backing_dev under macro CONFIG_ZRAM_WRITEBACK
Subsystems (2)
PATCH 1/1 zram: move backing_dev under macro CONFIG_ZRAM_WRITEBACK
From: Yue Hu <[email protected]>
backing_dev is never used when not enable CONFIG_ZRAM_WRITEBACK and it's introduced from writeback feature. So it's needless also affect readability in that case.
Signed-off-by Yue Hu <[email protected]>
--- drivers/block/zram/zram_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/zram/zram_drv.h +1 -1
@@ -112,8 +112,8 @@ struct zram {* zram is claimed so open request will be failed */ bool claim;/* Protected by bdev->bd_mutex */ -struct file *backing_dev;#ifdef CONFIG_ZRAM_WRITEBACK +struct file *backing_dev;spinlock_t wb_limit_lock;bool wb_limit_enable;u64 bd_wb_limit;
Signature · 1 line
1.9.1
Quoted 5 lines · Yue Hu
backing_devis never used when not enableCONFIG_ZRAM_WRITEBACKand it's introduced from writeback feature. So it's needless also affect readability in that case.Signed-off-by Yue Hu <[email protected]>
Looks good to me
Reviewed-by Sergey Senozhatsky <[email protected]>
-ss
Quoted 7 lines · Yue Hu
From: Yue Hu <[email protected]>
backing_devis never used when not enableCONFIG_ZRAM_WRITEBACKand it's introduced from writeback feature. So it's needless also affect readability in that case.Signed-off-by Yue Hu <[email protected]>
Acked-by Minchan Kim <[email protected]>