]> err.no Git - linux-2.6/blobdiff - fs/fuse/fuse_i.h
[PATCH] fuse: add O_ASYNC support to FUSE device
[linux-2.6] / fs / fuse / fuse_i.h
index 46cf933aa3bf2dc22129c74a866628d9313984c6..e5cb46b784376faa3fce884491c4a28400ec7c9f 100644 (file)
@@ -272,6 +272,9 @@ struct fuse_conn {
            reply, before any other request, and never cleared */
        unsigned conn_error : 1;
 
+       /** Do readpages asynchronously?  Only set in INIT */
+       unsigned async_read : 1;
+
        /*
         * The following bitfields are only for optimization purposes
         * and hence races in setting them will not cause malfunction
@@ -315,6 +318,9 @@ struct fuse_conn {
 
        /** kobject */
        struct kobject kobj;
+
+       /** O_ASYNC requests */
+       struct fasync_struct *fasync;
 };
 
 static inline struct fuse_conn *get_fuse_conn_super(struct super_block *sb)
@@ -343,7 +349,7 @@ static inline u64 get_node_id(struct inode *inode)
 }
 
 /** Device operations */
-extern struct file_operations fuse_dev_operations;
+extern const struct file_operations fuse_dev_operations;
 
 /**
  * This is the single global spinlock which protects FUSE's structures