Whamcloud - gitweb
- async commit/wait API have been changed a bit. it used oti_handler, but
authoralex <alex>
Wed, 29 Oct 2003 22:38:27 +0000 (22:38 +0000)
committeralex <alex>
Wed, 29 Oct 2003 22:38:27 +0000 (22:38 +0000)
  it must not

lustre/include/linux/lustre_fsfilt.h

index 4c27fb5..1c07170 100644 (file)
@@ -46,7 +46,8 @@ struct fsfilt_operations {
         void   *(* fs_brw_start)(int objcount, struct fsfilt_objinfo *fso,
                                  int niocount, void *desc_private);
         int     (* fs_commit)(struct inode *inode, void *handle,int force_sync);
-        int     (* fs_commit_async)(struct inode *inode, void **handle);
+        int     (* fs_commit_async)(struct inode *inode, void *handle,
+                                        void **wait_handle);
         int     (* fs_commit_wait)(struct inode *inode, void *handle);
         int     (* fs_setattr)(struct dentry *dentry, void *handle,
                                struct iattr *iattr, int do_trunc);
@@ -148,11 +149,12 @@ static inline int fsfilt_commit(struct obd_device *obd, struct inode *inode,
 
 static inline int fsfilt_commit_async(struct obd_device *obd,
                                          struct inode *inode,
-                                         void **handle)
+                                         void *handle,
+                                         void **wait_handle)
 {
         unsigned long now = jiffies;
-        int rc = obd->obd_fsops->fs_commit_async(inode, handle);
-        CDEBUG(D_HA, "committing handle %p (async)\n", *handle);
+        int rc = obd->obd_fsops->fs_commit_async(inode, handle, wait_handle);
+        CDEBUG(D_HA, "committing handle %p (async)\n", *wait_handle);
         if (time_after(jiffies, now + 15 * HZ))
                 CERROR("long journal start time %lus\n", (jiffies - now) / HZ);
         return rc;