summaryrefslogtreecommitdiffstatsabout
path: root/SylixOS
diff options
context:
space:
mode:
authorHanhui <hanhui@acoinfo.com>2020-07-29 03:35:46 (GMT)
committer Hanhui <hanhui@acoinfo.com>2020-07-29 03:35:46 (GMT)
commit1a032f67f88c35f00084a82f6cc50a062dec9b18 (patch)
treea2a4020a4b424836857530ef9a13491aebd04313 /SylixOS
parent9539d97b3ccd7e52c41cc47f3baae898f86b51a0 (diff)
downloadlibsylixos-1a032f67f88c35f00084a82f6cc50a062dec9b18.zip
libsylixos-1a032f67f88c35f00084a82f6cc50a062dec9b18.tar.gz
libsylixos-1a032f67f88c35f00084a82f6cc50a062dec9b18.tar.bz2
Fixed tpsfs inode allocate error.STABLE-1.12.6
Diffstat (limited to 'SylixOS')
-rw-r--r--SylixOS/fs/tpsFs/tpsfs_btree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/SylixOS/fs/tpsFs/tpsfs_btree.c b/SylixOS/fs/tpsFs/tpsfs_btree.c
index 0daafd4..dd69733 100644
--- a/SylixOS/fs/tpsFs/tpsfs_btree.c
+++ b/SylixOS/fs/tpsFs/tpsfs_btree.c
@@ -305,7 +305,7 @@ static TPS_IBLK __tpsFsBtrAllocNodeBlk (PTPS_TRANS ptrans,
TPS_IBLK blkCnt = 0;
if (pinode != psb->SB_pinodeSpaceMng) { /* 非空间b+tree用空间b+tree分配 */
- if (tpsFsBtreeAllocBlk(ptrans, psb->SB_pinodeSpaceMng,
+ if (tpsFsInodeAllocBlk(ptrans, psb,
MAX_BLK_NUM, 1, &blkStart, &blkCnt) != TPS_ERR_NONE) {
return (0);
}
@@ -2117,7 +2117,7 @@ TPS_RESULT tpsFsBtreeAdjustBP (PTPS_TRANS ptrans, PTPS_SUPER_BLOCK psb)
}
if (pbp->BP_uiBlkCnt <= TPS_MIN_BP_BLK) { /* 空闲块太少 */
- if (tpsFsBtreeAllocBlk(ptrans, psb->SB_pinodeSpaceMng,
+ if (tpsFsInodeAllocBlk(ptrans, psb,
MAX_BLK_NUM, 1, &blkStart,
&blkCnt) != TPS_ERR_NONE) { /* 从空间管理b+tree分配块 */
return (TPS_ERR_BTREE_ALLOC);