diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-09 20:38:24 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-09 22:03:07 -0700 |
commit | 7e562d59d4a64a14ff070bfd649de828534532e8 (patch) | |
tree | 7b2ab10f7d7194e1a876e6df1a04764f4d50ed1c /example/notify_inval_inode.c | |
parent | 64c97de5be7f899e1d36e620b3a5959d122909c7 (diff) |
Don't confuse lookup count for mountpoint and file
I think this is the reason for a sporadic test failure, where
fuse_lowlevel_notify_store() fails.
Diffstat (limited to 'example/notify_inval_inode.c')
-rw-r--r-- | example/notify_inval_inode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/example/notify_inval_inode.c b/example/notify_inval_inode.c index 5dfc225..4cd5be9 100644 --- a/example/notify_inval_inode.c +++ b/example/notify_inval_inode.c @@ -161,8 +161,10 @@ 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); } |