Skip to content

Commit c4b4c2a

Browse files
ZhiqiangLiu26axboe
authored andcommitted
buffer: remove useless comment and WB_REASON_FREE_MORE_MEM, reason.
free_more_memory func has been completely removed in commit bc48f00 ("buffer: eliminate the need to call free_more_memory() in __getblk_slow()") So comment and `WB_REASON_FREE_MORE_MEM` reason about free_more_memory are no longer needed. Fixes: bc48f00 ("buffer: eliminate the need to call free_more_memory() in __getblk_slow()") Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Zhiqiang Liu <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 90280ea commit c4b4c2a

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

fs/buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ grow_dev_page(struct block_device *bdev, sector_t block,
967967
struct page *page;
968968
struct buffer_head *bh;
969969
sector_t end_block;
970-
int ret = 0; /* Will call free_more_memory() */
970+
int ret = 0;
971971
gfp_t gfp_mask;
972972

973973
gfp_mask = mapping_gfp_constraint(inode->i_mapping, ~__GFP_FS) | gfp;

include/linux/backing-dev-defs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ enum wb_reason {
5454
WB_REASON_SYNC,
5555
WB_REASON_PERIODIC,
5656
WB_REASON_LAPTOP_TIMER,
57-
WB_REASON_FREE_MORE_MEM,
5857
WB_REASON_FS_FREE_SPACE,
5958
/*
6059
* There is no bdi forker thread any more and works are done

include/trace/events/writeback.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
EM( WB_REASON_SYNC, "sync") \
3737
EM( WB_REASON_PERIODIC, "periodic") \
3838
EM( WB_REASON_LAPTOP_TIMER, "laptop_timer") \
39-
EM( WB_REASON_FREE_MORE_MEM, "free_more_memory") \
4039
EM( WB_REASON_FS_FREE_SPACE, "fs_free_space") \
4140
EMe(WB_REASON_FORKER_THREAD, "forker_thread")
4241

0 commit comments

Comments
 (0)