Whamcloud - gitweb
b=8654
authortappro <tappro>
Thu, 15 Sep 2005 10:26:45 +0000 (10:26 +0000)
committertappro <tappro>
Thu, 15 Sep 2005 10:26:45 +0000 (10:26 +0000)
- delay notification for audit_transfer in case of create
- remove unneeded list_head declaration

lustre/smfs/audit.c
lustre/smfs/audit_transfer.c

index 73a6c35..ed70b73 100644 (file)
@@ -367,7 +367,8 @@ static int smfs_audit_post_op(hook_op code, struct inode * inode, void * msg,
         if (rc != 0) {
                 CERROR("Error adding audit record: %d\n", rc);
                 rc= -EINVAL;
-        } else {
+        /* delay notify for create op */
+        } else if (!(code == HOOK_CREATE && ret == 0)) { 
                 audit_notify(priv->audit_ctxt->loc_handle, priv->au_id2name);
         }
         
index d971430..9e6b7b1 100644 (file)
@@ -78,7 +78,6 @@ static int transferd_check(struct transferd_ctl *tc)
 int audit_notify(struct llog_handle *llh, void * arg)
 {
         struct transfer_item *ti;
-        struct list_head tmp_list;
         ENTRY;
 
         down(&transferd_sem);