diff options
author | Guo Weikang <guoweikang.kernel@gmail.com> | 2024-12-05 12:45:21 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2025-01-14 09:40:49 +0300 |
commit | a474d84359d1a25feae2aafacf35dcaa196fe5f3 (patch) | |
tree | a089520c293ae53333ec39f7b493ad5711e14e53 /kernel/fork.c | |
parent | 19b65ffae985c16da237edccae324bcbf1a5408e (diff) | |
download | linux-a474d84359d1a25feae2aafacf35dcaa196fe5f3.tar.xz |
mm/shmem: refactor to reuse vfs_parse_monolithic_sep for option parsing
shmem_parse_options() is refactored to use vfs_parse_monolithic_sep() with
a custom separator function, shmem_next_opt(). This eliminates redundant
logic for parsing comma-separated options and ensures consistency with
other kernel code that uses the same interface.
The vfs_parse_monolithic_sep() helper was introduced in commit
e001d1447cd4 ("fs: factor out vfs_parse_monolithic_sep() helper").
Link: https://lkml.kernel.org/r/20241205094521.1244678-1-guoweikang.kernel@gmail.com
Signed-off-by: Guo Weikang <guoweikang.kernel@gmail.com>
Cc: Amir Goldstein <amir73il@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions