aboutsummaryrefslogtreecommitdiffstats
path: root/example/notify_inval_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/notify_inval_entry.c')
-rw-r--r--example/notify_inval_entry.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/example/notify_inval_entry.c b/example/notify_inval_entry.c
index fc8bc1e..6b1b527 100644
--- a/example/notify_inval_entry.c
+++ b/example/notify_inval_entry.c
@@ -168,12 +168,13 @@ err_out:
static void tfs_forget (fuse_req_t req, fuse_ino_t ino,
uint64_t nlookup) {
(void) req;
- assert(ino == file_ino || ino == FUSE_ROOT_ID);
- lookup_cnt -= nlookup;
+ if(ino == file_ino)
+ lookup_cnt -= nlookup;
+ else
+ assert(ino == FUSE_ROOT_ID);
fuse_reply_none(req);
}
-
static void tfs_getattr(fuse_req_t req, fuse_ino_t ino,
struct fuse_file_info *fi) {
struct stat stbuf;