Skip to content
Snippets Groups Projects
Commit 51253788 authored by Mikhail Pershin's avatar Mikhail Pershin
Browse files

b=8654

- delay notification for audit_transfer in case of create
- remove unneeded list_head declaration
parent e716fa02
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment