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

2022-02-09 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-09 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-09 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-09 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-09 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-09 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-09 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-09 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 02/11] MM: document and polish read-ahead code.

2022-02-09 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 03/11] MM: improve cleanup when ->readpages doesn't process all pages.

2022-02-09 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 01/11] DOC: convert 'subsection' to 'section' in gfp.h

2022-02-09 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

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

2022-02-09 Thread NeilBrown
Here is a refresh of my "remove congestion tracking" series. It makes some small changes to readahead so that the effect of the inode_read_congested() test in readahead can be duplicated in the filesystem. fuse uses this. It add some documentation for readahead, and for that to work, it cleans up

Re: [f2fs-dev] [PATCH v10 0/5] add support for direct I/O with fscrypt using blk-crypto

2022-02-09 Thread Dave Chinner
On Tue, Feb 08, 2022 at 05:10:03PM -0800, Eric Biggers wrote: > On Mon, Jan 24, 2022 at 10:03:32AM +1100, Dave Chinner wrote: > > > > > > /* 0xa0 */ > > > > > > /* File range alignment needed for best performance, in bytes. */ > > > __u32 stx_dio_fpos_align_opt; > > > > This is a common

Re: [f2fs-dev] [PATCH v3] mkfs.f2fs: set project quota by default for -g android

2022-02-09 Thread Jaegeuk Kim
With this patch, "-g android" enables project quota only by default, if the kernel is over v4.14. Otherwise, it enables usr/grp/proj all together. 1) -O quota : enables usr/grp 2) -O project_quota -O extra_attr : enabled prj 3) -O quota -O project_quota -O extra_attr : enables usr/grp/proj 4) -g a

[f2fs-dev] [PATCH] mkfs.f2fs: fix wrong indentation and clean up

2022-02-09 Thread Jaegeuk Kim
Signed-off-by: Jaegeuk Kim --- lib/libf2fs.c | 2 +- mkfs/f2fs_format.c | 2 +- mkfs/f2fs_format_main.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libf2fs.c b/lib/libf2fs.c index 420dfdae56da..94fb91d46d28 100644 --- a/lib/libf2fs.c +++ b/lib/libf2