struct fuse_session *se = req->se;
if (se->conn.no_interrupt) {
- ctr = --req->ctr;
+ ctr = --req->ref_cnt;
fuse_chan_put(req->ch);
req->ch = NULL;
} else {
req->u.ni.func = NULL;
req->u.ni.data = NULL;
list_del_req(req);
- ctr = --req->ctr;
+ ctr = --req->ref_cnt;
fuse_chan_put(req->ch);
req->ch = NULL;
pthread_mutex_unlock(&se->lock);
fuse_log(FUSE_LOG_ERR, "fuse: failed to allocate request\n");
} else {
req->se = se;
- req->ctr = 1;
+ req->ref_cnt = 1;
list_init_req(req);
pthread_mutex_init(&req->lock, NULL);
}
fuse_interrupt_func_t func;
void *data;
- curr->ctr++;
+ curr->ref_cnt++;
pthread_mutex_unlock(&se->lock);
/* Ugh, ugly locking */
pthread_mutex_unlock(&curr->lock);
pthread_mutex_lock(&se->lock);
- curr->ctr--;
- if (!curr->ctr) {
+ curr->ref_cnt--;
+ if (!curr->ref_cnt) {
destroy_req(curr);
}
*/
se->conn.time_gran = 1;
-
+
if (bufsize < FUSE_MIN_READ_BUFFER) {
fuse_log(FUSE_LOG_ERR, "fuse: warning: buffer size too small: %zu\n",
bufsize);
if (se->conn.proto_minor < 12)
return -ENOSYS;
-
+
outarg.ino = ino;
outarg.off = off;
outarg.len = len;
/**
* Notify parent attributes and the dentry matching parent/name
- *
+ *
* Underlying base function for fuse_lowlevel_notify_inval_entry() and
* fuse_lowlevel_notify_expire_entry().
- *
+ *
* @warning
* Only checks if fuse_lowlevel_notify_inval_entry() is supported by
- * the kernel. All other flags will fall back to
+ * the kernel. All other flags will fall back to
* fuse_lowlevel_notify_inval_entry() if not supported!
* DO THE PROPER CHECKS IN THE DERIVED FUNCTION!
*