From 377f154bf0fa17f893f66baebe38fe4cd1218b5c Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 29 Jan 2026 18:01:37 -0500 Subject: [PATCH] BFS: Implement the trivial case of Volume::CheckForLiveQuery. Saves a bit of work when there are no live queries running (as will often be the case on an idle system.) --- src/add-ons/kernel/file_systems/bfs/Volume.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add-ons/kernel/file_systems/bfs/Volume.cpp b/src/add-ons/kernel/file_systems/bfs/Volume.cpp index bf5561d5ae..82087f67fe 100644 --- a/src/add-ons/kernel/file_systems/bfs/Volume.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Volume.cpp @@ -456,8 +456,9 @@ Volume::UpdateLiveQueriesRenameMove(Inode* inode, ino_t oldDirectoryID, bool Volume::CheckForLiveQuery(const char* attribute) { + MutexLocker _(fQueryLock); // TODO: check for a live query that depends on the specified attribute - return true; + return !fQueries.IsEmpty(); }