summaryrefslogtreecommitdiff
path: root/fs/internal.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2025-03-07 15:43:19 +0100
committerChristian Brauner <brauner@kernel.org>2025-03-08 12:19:22 +0100
commit93fd0d46cbf7bc35a3a912c913b4f074955119c7 (patch)
tree82d9b3ed3cb40d8d7388e9aa0c2b44311ee89866 /fs/internal.h
parent66447acc09dc77addb06875c987dbe22844635f3 (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 'fs/internal.h')
-rw-r--r--fs/internal.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/internal.h b/fs/internal.h
index 1cb85a62c07f..82127c69e641 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -207,7 +207,6 @@ bool in_group_or_capable(struct mnt_idmap *idmap,
* fs-writeback.c
*/
extern long get_nr_dirty_inodes(void);
-void invalidate_inodes(struct super_block *sb);
/*
* dcache.c