From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Guy Briggs Subject: [PATCH V4 (was V6) 0/2] audit: rebalance and remove extra layers of watch references Date: Sat, 1 Aug 2015 15:41:11 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com, linux-kernel@vger.kernel.org Cc: Richard Guy Briggs List-Id: linux-audit@redhat.com While working on the audit by executable path feature, it was discovered that watches and parent references were slightly imbalanced and deeper than necessary. Only bump up references when they are actually used and decrease when removed. v4: Eliminate unnecessary gotos and call return directly. Expand patch description with answer to mailing list query. Richard Guy Briggs (2): audit: eliminate unnecessary extra layer of watch references audit: eliminate unnecessary extra layer of watch parent references kernel/audit_watch.c | 11 ++++------- kernel/auditfilter.c | 16 +++------------- 2 files changed, 7 insertions(+), 20 deletions(-)