aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-01-17 01:14:31 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-17 02:15:30 -0500
commit83cfd4935124b165e942c317dc3e9ebb0a3e6a63 (patch)
tree6b6276dde7fbe07dd9e5d44332eef5f2b9451d4c /fs/fuse/fuse_i.h
parent6383bdaa2ed2d461d9f4d369dfaa9d610fc972e3 (diff)
[PATCH] fuse: introduce unified request state
The state of request was made up of 2 bitfields (->sent and ->finished) and of the fact that the request was on a list or not. Unify this into a single state field. Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index 27937e8018eb..8cc87ebeed2e 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -111,6 +111,15 @@ struct fuse_out {
111 struct fuse_arg args[3]; 111 struct fuse_arg args[3];
112}; 112};
113 113
114/** The request state */
115enum fuse_req_state {
116 FUSE_REQ_INIT = 0,
117 FUSE_REQ_PENDING,
118 FUSE_REQ_READING,
119 FUSE_REQ_SENT,
120 FUSE_REQ_FINISHED
121};
122
114/** 123/**
115 * A request to the client 124 * A request to the client
116 */ 125 */
@@ -140,11 +149,8 @@ struct fuse_req {
140 /** Data is being copied to/from the request */ 149 /** Data is being copied to/from the request */
141 unsigned locked:1; 150 unsigned locked:1;
142 151
143 /** Request has been sent to userspace */ 152 /** State of the request */
144 unsigned sent:1; 153 enum fuse_req_state state;
145
146 /** The request is finished */
147 unsigned finished:1;
148 154
149 /** The request input */ 155 /** The request input */
150 struct fuse_in in; 156 struct fuse_in in;