projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[deliverable/linux.git]
/
fs
/
fuse
/
fuse_i.h
diff --git
a/fs/fuse/fuse_i.h
b/fs/fuse/fuse_i.h
index ce394b5fe6b434d87c6efffdfa20c3086e0d4971..eddbe02c402892cc00970844021fd12512f133b4 100644
(file)
--- a/
fs/fuse/fuse_i.h
+++ b/
fs/fuse/fuse_i.h
@@
-22,6
+22,7
@@
#include <linux/rbtree.h>
#include <linux/poll.h>
#include <linux/workqueue.h>
#include <linux/rbtree.h>
#include <linux/poll.h>
#include <linux/workqueue.h>
+#include <linux/kref.h>
/** Max number of pages that can be used in a single read request */
#define FUSE_MAX_PAGES_PER_REQ 32
/** Max number of pages that can be used in a single read request */
#define FUSE_MAX_PAGES_PER_REQ 32
@@
-243,6
+244,7
@@
struct fuse_args {
/** The request IO state (for asynchronous processing) */
struct fuse_io_priv {
/** The request IO state (for asynchronous processing) */
struct fuse_io_priv {
+ struct kref refcnt;
int async;
spinlock_t lock;
unsigned reqs;
int async;
spinlock_t lock;
unsigned reqs;
@@
-256,6
+258,13
@@
struct fuse_io_priv {
struct completion *done;
};
struct completion *done;
};
+#define FUSE_IO_PRIV_SYNC(f) \
+{ \
+ .refcnt = { ATOMIC_INIT(1) }, \
+ .async = 0, \
+ .file = f, \
+}
+
/**
* Request flags
*
/**
* Request flags
*
This page took
0.026608 seconds
and
5
git commands to generate.