diff mbox series

[2/4] fs/9p: drop inodes immediately on non-.L too

Message ID 20240315155732.77dabf51@eclair (mailing list archive)
State New, archived
Headers show
Series [1/4] fs/9p: only translate RWX permissions for plain 9P2000 | expand

Commit Message

Joakim Sindholt March 15, 2024, 2:57 p.m. UTC
I assume this was an oversight but non-.L v9fs doesn't currently have
the drop_inode callback declared. This causes effectively unbounded
growth of the inode table and after a good while it becomes enormously
expensive to look through all the qid matches.

From e47d28e0fdc42819e7d7ce9d5e7f5bc8f189aee1 Mon Sep 17 00:00:00 2001
From: Joakim Sindholt <opensource@zhasha.com>
Date: Fri, 15 Mar 2024 15:13:48 +0100
Subject: [PATCH 2/4] fs/9p: drop inodes immediately on non-.L too

---
 fs/9p/vfs_super.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c
index 941f7d0e0bfa..23cc67f29af2 100644
--- a/fs/9p/vfs_super.c
+++ b/fs/9p/vfs_super.c
@@ -310,6 +310,7 @@  static const struct super_operations v9fs_super_ops = {
 	.alloc_inode = v9fs_alloc_inode,
 	.free_inode = v9fs_free_inode,
 	.statfs = simple_statfs,
+	.drop_inode = v9fs_drop_inode,
 	.evict_inode = v9fs_evict_inode,
 	.show_options = v9fs_show_options,
 	.umount_begin = v9fs_umount_begin,