Whamcloud - gitweb
LU-14139 llite: simplify callback handling for async getattr
[fs/lustre-release.git] / lustre / llite / llite_internal.h
index b3188d0..c585a68 100644 (file)
@@ -1526,15 +1526,11 @@ struct ll_statahead_info {
                                                 * is not a hidden one */
        unsigned int            sai_skip_hidden;/* skipped hidden dentry count
                                                 */
-       unsigned int            sai_ls_all:1,   /* "ls -al", do stat-ahead for
+       unsigned int            sai_ls_all:1;   /* "ls -al", do stat-ahead for
                                                 * hidden entries */
-                               sai_in_readpage:1;/* statahead is in readdir()*/
        wait_queue_head_t       sai_waitq;      /* stat-ahead wait queue */
        struct task_struct      *sai_task;      /* stat-ahead thread */
        struct task_struct      *sai_agl_task;  /* AGL thread */
-       struct list_head        sai_interim_entries; /* entries which got async
-                                                     * stat reply, but not
-                                                     * instantiated */
        struct list_head        sai_entries;    /* completed entries */
        struct list_head        sai_agls;       /* AGLs to be sent */
        struct list_head        sai_cache[LL_SA_CACHE_SIZE];
@@ -1542,6 +1538,12 @@ struct ll_statahead_info {
        atomic_t                sai_cache_count; /* entry count in cache */
 };
 
+struct ll_interpret_work {
+       struct work_struct       lpw_work;
+       struct md_op_item       *lpw_item;
+       struct req_capsule      *lpw_pill;
+};
+
 int ll_revalidate_statahead(struct inode *dir, struct dentry **dentry,
                            bool unplug);
 int ll_start_statahead(struct inode *dir, struct dentry *dentry, bool agl);