summaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorAndré Almeida <andrealmeid@igalia.com>2025-08-22 11:17:07 -0300
committerAmir Goldstein <amir73il@gmail.com>2025-09-23 12:29:35 +0200
commitee95c5fc86ddd10c354da554442582a2d12a1b90 (patch)
tree301c8acfb0404d1f3769c2f824089f96b222a25a /include/linux/overflow.h
parent5fbf73c7f13ddd5d30dde6760955e644ceffe2ee (diff)
ovl: Create ovl_casefold() to support casefolded strncmp()
To add overlayfs support casefold layers, create a new function ovl_casefold(), to be able to do case-insensitive strncmp(). ovl_casefold() allocates a new buffer and stores the casefolded version of the string on it. If the allocation or the casefold operation fails, fallback to use the original string. The case-insentive name is then used in the rb-tree search/insertion operation. If the name is found in the rb-tree, the name can be discarded and the buffer is freed. If the name isn't found, it's then stored at struct ovl_cache_entry to be used later. Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: André Almeida <andrealmeid@igalia.com> Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions