fuse: share lookup state between submount and its parent
[linux-2.6-microblaze.git] / fs / fuse / fuse_i.h
index 69bcffa..1df83ee 100644 (file)
@@ -63,6 +63,19 @@ struct fuse_forget_link {
        struct fuse_forget_link *next;
 };
 
+/* Submount lookup tracking */
+struct fuse_submount_lookup {
+       /** Refcount */
+       refcount_t count;
+
+       /** Unique ID, which identifies the inode between userspace
+        * and kernel */
+       u64 nodeid;
+
+       /** The request used for sending the FORGET message */
+       struct fuse_forget_link *forget;
+};
+
 /** FUSE inode */
 struct fuse_inode {
        /** Inode data */
@@ -158,6 +171,8 @@ struct fuse_inode {
         */
        struct fuse_inode_dax *dax;
 #endif
+       /** Submount specific lookup tracking */
+       struct fuse_submount_lookup *submount_lookup;
 };
 
 /** FUSE inode state bits */