[rlc-10] dcache: export shrink_dentry_list() and add new helper d_dispose_if_u…#897
Open
roxanan1996 wants to merge 1 commit intorlc-10/6.12.0-124.35.1.el10_1from
Open
Conversation
…nused() jira SECO-468 commit-author Luis Henriques <luis@igalia.com> commit 395b955 Add and export a new helper d_dispose_if_unused() which is simply a wrapper around to_shrink_list(), to add an entry to a dispose list if it's not used anymore. Also export shrink_dentry_list() to kill all dentries in a dispose list. Suggested-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Luis Henriques <luis@igalia.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> (cherry picked from commit 395b955) Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://ciqinc.atlassian.net/browse/SECO-468
Description
Customer request to backport this to rlc-10.
The commit is a clean cherry pick and it has no impact on the current kernel.
The main impact is that it exposes a function that is probably used in an external kernel module by the customer.
Note
It was introduced upstream in preparation for a change to invalidate expired dentries in fuse. https://lore.kernel.org/all/20250916135310.51177-1-luis@igalia.com/
But we are not picking the rest of the changes since that is not of interest.
This commit has barely any impact since the rest of the changes from this submission are not cherry picked.
Build
Kselftests