BFS: Don't try to acquire/put the indices node.

It's not published, so we will just get errors, or
(starting with the next commit) assertions.
This commit is contained in:
Augustin Cavalier
2025-08-28 13:55:24 -04:00
parent 0bb8848f51
commit 4390b6b5c2
@@ -481,7 +481,7 @@ Inode::WriteLockInTransaction(Transaction& transaction)
if ((Flags() & INODE_DELETED) != 0)
fVolume->RemovedInodes().Remove(this);
if (!fVolume->IsInitializing())
if (!fVolume->IsInitializing() && this != fVolume->IndicesNode())
acquire_vnode(fVolume->FSVolume(), ID());
rw_lock_write_lock(&Lock());
@@ -2509,7 +2509,7 @@ Inode::RemovedFromTransaction()
rw_lock_write_unlock(&Lock());
if (!fVolume->IsInitializing())
if (!fVolume->IsInitializing() && this != fVolume->IndicesNode())
put_vnode(fVolume->FSVolume(), ID());
}