[f2fs-dev] [PATCH 11/11] Remove congestion tracking framework.

2022-02-21 Thread NeilBrown
This framework is no longer used - so discard it. Signed-off-by: NeilBrown --- include/linux/backing-dev-defs.h |8 - include/linux/backing-dev.h |2 - include/trace/events/writeback.h | 28 --- mm/backing-dev.c | 57 --

[f2fs-dev] [PATCH 10/11] block/bfq-iosched.c: use "false" rather than "BLK_RW_ASYNC"

2022-02-21 Thread NeilBrown
bfq_get_queue() expects a "bool" for the third arg, so pass "false" rather than "BLK_RW_ASYNC" which will soon be removed. Acked-by: Jens Axboe Signed-off-by: NeilBrown --- block/bfq-iosched.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/bfq-iosched.c b/block/bfq

[f2fs-dev] [PATCH 09/11] f2fs: replace congestion_wait() calls with io_schedule_timeout()

2022-02-21 Thread NeilBrown
As congestion is no longer tracked, congestion_wait() is effectively equivalent to io_schedule_timeout(). So introduce f2fs_io_schedule_timeout() which sets TASK_UNINTERRUPTIBLE and call that instead. Signed-off-by: NeilBrown --- fs/f2fs/compress.c |4 +--- fs/f2fs/data.c |3 +-- fs/

[f2fs-dev] [PATCH 08/11] Remove bdi_congested() and wb_congested() and related functions

2022-02-21 Thread NeilBrown
These functions are no longer useful as no BDIs report congestions any more. Removing the test on bdi_write_contested() in current_may_throttle() could cause a small change in behaviour, but only when PF_LOCAL_THROTTLE is set. So replace the calls by 'false' and simplify the code - and remove the

[f2fs-dev] [PATCH 07/11] Remove inode_congested()

2022-02-21 Thread NeilBrown
inode_congested() reports if the backing-device for the inode is congested. No bdi reports congestion any more, so this always returns 'false'. So remove inode_congested() and related functions, and remove the call sites, assuming that inode_congested() always returns 'false'. Signed-off-by: Nei

[f2fs-dev] [PATCH 06/11] ceph: remove reliance on bdi congestion

2022-02-21 Thread NeilBrown
The bdi congestion tracking in not widely used and will be removed. CEPHfs is one of a small number of filesystems that uses it, setting just the async (write) congestion flags at what it determines are appropriate times. The only remaining effect of the async flag is to cause (some) WB_SYNC_NONE

[f2fs-dev] [PATCH 05/11] nfs: remove reliance on bdi congestion

2022-02-21 Thread NeilBrown
The bdi congestion tracking in not widely used and will be removed. NFS is one of a small number of filesystems that uses it, setting just the async (write) congestion flag at what it determines are appropriate times. The only remaining effect of the async flag is to cause (some) WB_SYNC_NONE wri

[f2fs-dev] [PATCH 04/11] fuse: remove reliance on bdi congestion

2022-02-21 Thread NeilBrown
The bdi congestion tracking in not widely used and will be removed. Fuse is one of a small number of filesystems that uses it, setting both the sync (read) and async (write) congestion flags at what it determines are appropriate times. The only remaining effect of the sync flag is to cause read-a

[f2fs-dev] [PATCH 03/11] MM: improve cleanup when ->readpages doesn't process all pages.

2022-02-21 Thread NeilBrown
If ->readpages doesn't process all the pages, then it is best to act as though they weren't requested so that a subsequent readahead can try again. So: - remove any 'ahead' pages from the page cache so they can be loaded with ->readahead() rather then multiple ->read()s - update the file_ra

[f2fs-dev] [PATCH 00/11] Remove remaining parts of congestion tracking code.

2022-02-21 Thread NeilBrown
Here is another refresh of my "remove congestion tracking" series. I removed the small tweaks to read-ahead code because they raised questions and are actually required for this series. Everything else is the same. Andrew: please drop the version of this that is currently in your tree even if yo

[f2fs-dev] [PATCH 02/11] MM: document and polish read-ahead code.

2022-02-21 Thread NeilBrown
Add some "big-picture" documentation for read-ahead and polish the code to make it fit this documentation. The meaning of ->async_size is clarified to match its name. i.e. Any request to ->readahead() has a sync part and an async part. The caller will wait for the sync pages to complete, but will

[f2fs-dev] [PATCH 01/11] DOC: convert 'subsection' to 'section' in gfp.h

2022-02-21 Thread NeilBrown
Various DOC: sections in gfp.h have subsection headers (~~~) but the place where they are included in mm-api.rst does not have section, only chapters. So convert to section headers (---) to avoid confusion. Specifically if section are added later in mm-api.rst, an error results. Signed-off-by: Ne