]> Gentwo Git Trees - linux/.git/commit
jfs: replace hardcoded magic number with DTPAGEMAXSLOT constant
authorZheng Yu <zheng.yu@northwestern.edu>
Tue, 29 Jul 2025 18:28:56 +0000 (18:28 +0000)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Thu, 18 Sep 2025 14:09:21 +0000 (09:09 -0500)
commitcafc6679824a026998d93e7435f6005f64e515d2
tree2e43c58fb9282e9c3726fa5d5938cbb8f3324044
parente551cc21bb0bb3f0a776a012c6033ccd4cbe419e
jfs: replace hardcoded magic number with DTPAGEMAXSLOT constant

Replace hardcoded value 127 with DTPAGEMAXSLOT constant in boundary
checks within jfs_readdir() and dtReadFirst(). This improves code
maintainability and ensures consistency with the defined maximum
slot value.

Signed-off-by: Zheng Yu <zheng.yu@northwestern.edu>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/jfs_dtree.c