mirror of
https://github.com/versity/scoutfs.git
synced 2026-04-30 01:46:54 +00:00
Compare commits
1 Commits
clk/srch-f
...
auke/drop_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf56585559 |
@@ -30,6 +30,7 @@
|
||||
#include "counters.h"
|
||||
#include "scoutfs_trace.h"
|
||||
#include "wkic.h"
|
||||
#include "msg.h"
|
||||
|
||||
/*
|
||||
* This weaker item cache differs from the core item cache in item.c:
|
||||
@@ -746,6 +747,16 @@ static void fill_page_items(struct super_block *sb, struct wkic_page *wpage, str
|
||||
rb_erase(&witem->node, root);
|
||||
kfree(witem);
|
||||
continue;
|
||||
} else if (tval->count == 0) {
|
||||
/*
|
||||
* BUG: there are no contributing items but count != 0,
|
||||
* which shouldn't happen - we've gone off kilt.
|
||||
*/
|
||||
scoutfs_err(sb, "non-zero value for zero count totl "SK_FMT", dropping item",
|
||||
SK_ARG(&witem->key));
|
||||
rb_erase(&witem->node, root);
|
||||
kfree(witem);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user