fix: 修复告警
Signed-off-by: zhangdengyu <zhangdengyu2@huawei.com>
This commit is contained in:
parent
f34762c105
commit
8dbfd3846e
|
@ -581,8 +581,11 @@ static OsBcacheBlock *AllocNewBlock(OsBcache *bc, BOOL read, UINT64 num)
|
||||||
DelBlock(bc, prefer);
|
DelBlock(bc, prefer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (prefer->used) { /* do not combine with next check */
|
||||||
|
MergeSyncBlocks(bc, prefer); /* prefer->used may be changed here */
|
||||||
|
}
|
||||||
|
|
||||||
if (prefer->used) {
|
if (prefer->used) {
|
||||||
MergeSyncBlocks(bc, prefer);
|
|
||||||
BcacheSyncBlock(bc, prefer);
|
BcacheSyncBlock(bc, prefer);
|
||||||
DelBlock(bc, prefer);
|
DelBlock(bc, prefer);
|
||||||
}
|
}
|
||||||
|
|
|
@ -260,7 +260,7 @@ int VnodeDrop(void)
|
||||||
static char *NextName(char *pos, uint8_t *len)
|
static char *NextName(char *pos, uint8_t *len)
|
||||||
{
|
{
|
||||||
char *name = NULL;
|
char *name = NULL;
|
||||||
while (*pos == '/') {
|
while (*pos != 0 && *pos == '/') {
|
||||||
pos++;
|
pos++;
|
||||||
}
|
}
|
||||||
if (*pos == '\0') {
|
if (*pos == '\0') {
|
||||||
|
|
Loading…
Reference in New Issue