diff options
author | 2024-12-05 17:45:21 +0800 | |
---|---|---|
committer | 2025-01-13 22:40:49 -0800 | |
commit | a474d84359d1a25feae2aafacf35dcaa196fe5f3 (patch) | |
tree | a089520c293ae53333ec39f7b493ad5711e14e53 /include/linux/mm.h | |
parent | selftests/mm: add fork CoW guard page test (diff) | |
download | wireguard-linux-a474d84359d1a25feae2aafacf35dcaa196fe5f3.tar.xz wireguard-linux-a474d84359d1a25feae2aafacf35dcaa196fe5f3.zip |
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 'include/linux/mm.h')
0 files changed, 0 insertions, 0 deletions