summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index e84a50998d..c93b17df97 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -586,8 +586,11 @@ fuse_batch_forget(xlator_t *this, fuse_in_header_t *finh, void *msg)
"%"PRIu64": BATCH_FORGET %"PRIu64"/%"PRIu32,
finh->unique, finh->nodeid, fbfi->count);
- for (i = 0; i < fbfi->count; i++)
+ for (i = 0; i < fbfi->count; i++) {
+ if (ffo[i].nodeid == 1)
+ continue;
do_forget(this, finh->unique, ffo[i].nodeid, ffo[i].nlookup);
+ }
GF_FREE(finh);
}