From 679a138dd78ca834e3da00c54273f08934b2ba18 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Mon, 2 Jan 2023 00:58:36 +0000 Subject: [PATCH] [xfs] Fix a file lookup bug in btree dirs Literally, an off-by-one error. git-svn-id: svn://kolibrios.org@9890 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/fs/xfs.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trunk/fs/xfs.asm b/kernel/trunk/fs/xfs.asm index 2d71910550..799e131430 100644 --- a/kernel/trunk/fs/xfs.asm +++ b/kernel/trunk/fs/xfs.asm @@ -1896,7 +1896,7 @@ proc xfs._.get_before_by_hashval uses ebx edx esi edi, _base, _count, _hash movbe eax, [ebx+xfs_da3_intnode.btree+ecx*sizeof.xfs_da_node_entry+xfs_da_node_entry.hashval] @@: cmp eax, edi - ja .node.leaf_found + jae .node.leaf_found inc ecx cmp ecx, edx jnz .node.next