[f2fs-dev] [PATCH 7/9] f2fs: defer readonly check vs norecovery

2025-03-03 Thread Eric Sandeen
Defer the readonly-vs-norecovery check until after option parsing is done so that option parsing does not require an active superblock for the test. Add a helpful message, while we're at it. (I think could be moved back into parsing after we switch to the new mount API if desired, as the fs contex

[f2fs-dev] [PATCH 0/9] f2fs: first steps towards mount API conversion

2025-03-03 Thread Eric Sandeen
I have been struggling to get to a good series to convert f2fs to the new mount API. f2fs is more complex, because much of the option parsing assumes that the superblock has already been read from disk, and uses that to test various on-disk features, etc. All of those tests will need to be moved to

[f2fs-dev] [PATCH 6/9] f2fs: Pass sbi rather than sb to f2fs_set_test_dummy_encryption

2025-03-03 Thread Eric Sandeen
This removes another sb instance from parse_options() Signed-off-by: Eric Sandeen --- fs/f2fs/super.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index e63b3bd75f85..8866a74ce6aa 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@

[f2fs-dev] [PATCH] f2fs_io: add fragread command to evaluate fragmented buffer for reads

2025-03-03 Thread Jaegeuk Kim via Linux-f2fs-devel
From: Jaegeuk Kim This adds a fragread command in f2fs_io, which is able to measure the read performance on fragmented data buffer. Signed-off-by: Jaegeuk Kim --- tools/f2fs_io/f2fs_io.c | 110 1 file changed, 110 insertions(+) diff --git a/tools/f2fs_

[f2fs-dev] [PATCH] f2fs: set highest IO priority for checkpoint thread

2025-03-03 Thread Jaegeuk Kim via Linux-f2fs-devel
The checkpoint is the top priority thread which can stop all the filesystem operations. Let's make it RT priority. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index bd890738b94

[f2fs-dev] [PATCH 3/9] f2fs: factor out an f2fs_default_check function

2025-03-03 Thread Eric Sandeen
From: Eric Sandeen The current options parsing function both parses options and validates them - factor the validation out to reduce the size of the function and make transition to the new mount API possible, because under the new mount API, options are parsed one at a time, and cannot all be tes

[f2fs-dev] [PATCH 9/9] f2fs: pass sbi rather than sb to parse_options()

2025-03-03 Thread Eric Sandeen
With the new mount API the sb will not be available during initial option parsing, which will happen before fill_super reads sb from disk. Now that the sb is no longer directly referenced in parse_options, switch it to use sbi. (Note that all calls to f2fs_sb_has_* originating from parse_options

[f2fs-dev] [PATCH 5/9] f2fs: make LAZYTIME a mount option flag

2025-03-03 Thread Eric Sandeen
Set LAZYTIME into sbi during parsing, and transfer it to the sb in fill_super, so that an sb is not required during option parsing. (Note: While lazytime is normally handled via mount flag in the vfs, some f2fs users do expect to be able to use it as an explicit mount option string via the mount s

Re: [f2fs-dev] [PATCH] f2fs: support F2FS_NOLINEAR_LOOKUP_FL

2025-03-03 Thread Eric Biggers via Linux-f2fs-devel
On Mon, Mar 03, 2025 at 11:46:06AM +0800, Chao Yu via Linux-f2fs-devel wrote: > This patch introduces a new flag F2FS_NOLINEAR_LOOKUP_FL, so that we can > tag casefolded directory w/ it to disable linear lookup functionality, > it can be used for QA. > > Signed-off-by: Chao Yu > --- > fs/f2fs/di

[f2fs-dev] [PATCH 4/9] f2fs: make INLINECRYPT a mount option flag

2025-03-03 Thread Eric Sandeen
From: Eric Sandeen Set INLINECRYPT into sbi during parsing, and transfer it to the sb in fill_super, so that an sb is not required during option parsing. Signed-off-by: Eric Sandeen --- fs/f2fs/f2fs.h | 1 + fs/f2fs/super.c | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --gi

[f2fs-dev] [PATCH 8/9] f2fs: pass sbi rather than sb to quota qf_name helpers

2025-03-03 Thread Eric Sandeen
With the new mount api we will not have the superblock available during option parsing. Prepare for this by passing *sbi rather than *sb. For now, we are parsing after fill_super has been done, so sbi->sb will exist. Under the new mount API this will require more care, but do the simple change for

[f2fs-dev] [PATCH 1/9] f2fs: use f2fs_sb_has_device_alias during option parsing

2025-03-03 Thread Eric Sandeen
Rather than using F2FS_HAS_FEATURE directly, use f2fs_sb_has_device_alias macro during option parsing for consistency. Signed-off-by: Eric Sandeen --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 19b67828ae32..dd35d19

[f2fs-dev] [PATCH 2/9] f2fs: consolidate unsupported option handling errors

2025-03-03 Thread Eric Sandeen
When certain build-time options are disabled, some mount options are not accepted. For quota and compression, all related options are dismissed with a single error message. For xattr, acl, and fault injection, each option is handled individually. In addition, inline_xattr_size was missed when CONFI