- delay notification for audit_transfer in case of create
- remove unneeded list_head declaration
if (rc != 0) {
CERROR("Error adding audit record: %d\n", rc);
rc= -EINVAL;
if (rc != 0) {
CERROR("Error adding audit record: %d\n", rc);
rc= -EINVAL;
+ /* delay notify for create op */
+ } else if (!(code == HOOK_CREATE && ret == 0)) {
audit_notify(priv->audit_ctxt->loc_handle, priv->au_id2name);
}
audit_notify(priv->audit_ctxt->loc_handle, priv->au_id2name);
}
int audit_notify(struct llog_handle *llh, void * arg)
{
struct transfer_item *ti;
int audit_notify(struct llog_handle *llh, void * arg)
{
struct transfer_item *ti;
- struct list_head tmp_list;
ENTRY;
down(&transferd_sem);
ENTRY;
down(&transferd_sem);