Whamcloud - gitweb
Pass inline data from filesystem through obdo to VFS.
[fs/lustre-release.git] / lustre / include / linux / obdfs.h
index d15844f..7ff6874 100644 (file)
 /* super.c */
 void obdfs_read_inode(struct inode *inode);
 
+/* flush.c */
+int flushd_init(void);
+
 
 /* rw.c */
+int obdfs_do_writepage(struct inode *, struct page *, int sync);
 int obdfs_init_wreqcache(void);
+void obdfs_cleanup_wreqcache(void);
 int obdfs_readpage(struct dentry *dentry, struct page *page);
 int obdfs_writepage(struct dentry *dentry, struct page *page);
 struct page *obdfs_getpage(struct inode *inode, unsigned long offset, int create, int locked);
@@ -44,6 +49,11 @@ int obdfs_check_dir_entry (const char * function, struct inode * dir,
 int obdfs_readlink (struct dentry *, char *, int);
 struct dentry *obdfs_follow_link(struct dentry *, struct dentry *, unsigned int); 
 
+struct obdfs_super_entry {
+       struct list_head sl_chain;
+       struct obdfs_sb_info *sbi;
+};
+
 struct obdfs_wreq {
        struct list_head         wb_list;       /* linked list of req's */
        struct inode            *wb_inode;      /* dentry referenced */
@@ -57,7 +67,13 @@ struct obdfs_sb_info {
        struct obd_ops *osi_ops;     
        ino_t           osi_rootino; /* which root inode */
        int             osi_minor;   /* minor of /dev/obdX */
-       struct list_head osi_list;  /* linked list of pages to write */
+       struct list_head osi_list;  /* linked list of inodes to write */
+};
+
+struct obdfs_inode_info {
+       int              oi_flags;
+       struct list_head oi_list;
+       char            *oi_inline;
 };
 
 #define WB_NEXT(req)   ((struct obdfs_wreq *) ((req)->wb_list.next))
@@ -68,8 +84,6 @@ struct obdfs_sb_info {
 void obdfs_sysctl_init(void);
 void obdfs_sysctl_clean(void);
 
-struct obdfs_inode_info;
-
 extern struct file_operations obdfs_file_operations;
 extern struct inode_operations obdfs_file_inode_operations;
 extern struct inode_operations obdfs_dir_inode_operations;