diff options
| author | Miklos Szeredi <mszeredi@redhat.com> | 2026-01-14 15:53:42 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-01-16 19:15:14 +0100 |
| commit | fa79401a9c35fe2ba590599d7617789761f574a9 (patch) | |
| tree | c68a3b7f8a7452f81671755d6eb00553d946a85b /fs | |
| parent | 3926746b553455faaff2387b9a617c98d936980d (diff) | |
| download | linux-next-fa79401a9c35fe2ba590599d7617789761f574a9.tar.gz linux-next-fa79401a9c35fe2ba590599d7617789761f574a9.zip | |
fuse: shrink once after all buckets have been scanned
In fuse_dentry_tree_work() move the shrink_dentry_list() out from the loop.
Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Link: https://patch.msgid.link/20260114145344.468856-6-mszeredi@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/fuse/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index def2b2e1f96b..3927cb069236 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -187,8 +187,8 @@ static void fuse_dentry_tree_work(struct work_struct *work) node = rb_first(&dentry_hash[i].tree); } spin_unlock(&dentry_hash[i].lock); - shrink_dentry_list(&dispose); } + shrink_dentry_list(&dispose); if (inval_wq) schedule_delayed_work(&dentry_tree_work, |
