diff options
author | Jan Kara <jack@suse.cz> | 2025-03-07 15:43:19 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-03-08 12:19:22 +0100 |
commit | 93fd0d46cbf7bc35a3a912c913b4f074955119c7 (patch) | |
tree | 82d9b3ed3cb40d8d7388e9aa0c2b44311ee89866 /security | |
parent | 66447acc09dc77addb06875c987dbe22844635f3 (diff) |
vfs: Remove invalidate_inodes()
The function can be replaced by evict_inodes. The only difference is
that evict_inodes() skips the inodes with positive refcount without
touching ->i_lock, but they are equivalent as evict_inodes() repeats the
refcount check after having grabbed ->i_lock.
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20250307144318.28120-2-jack@suse.cz
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'security')
-rw-r--r-- | security/landlock/fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/landlock/fs.c b/security/landlock/fs.c index 71b9dc331aae..582769ae830e 100644 --- a/security/landlock/fs.c +++ b/security/landlock/fs.c @@ -1216,7 +1216,7 @@ static void hook_inode_free_security_rcu(void *inode_security) /* * Release the inodes used in a security policy. * - * Cf. fsnotify_unmount_inodes() and invalidate_inodes() + * Cf. fsnotify_unmount_inodes() and evict_inodes() */ static void hook_sb_delete(struct super_block *const sb) { |