Skip to content

Commit fa79401

Browse files
Miklos Szeredibrauner
authored andcommitted
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>
1 parent 3926746 commit fa79401

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/fuse/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ static void fuse_dentry_tree_work(struct work_struct *work)
187187
node = rb_first(&dentry_hash[i].tree);
188188
}
189189
spin_unlock(&dentry_hash[i].lock);
190-
shrink_dentry_list(&dispose);
191190
}
191+
shrink_dentry_list(&dispose);
192192

193193
if (inval_wq)
194194
schedule_delayed_work(&dentry_tree_work,

0 commit comments

Comments
 (0)