audit: Drop all unused chunk nodes during deletion
authorJan Kara <jack@suse.cz>
Mon, 12 Nov 2018 14:54:49 +0000 (09:54 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 12 Nov 2018 14:54:49 +0000 (09:54 -0500)
commitc22fcde775dcc9f46d73d694061441efdc7bdaad
treeb95b570ed053de37ac4e0aaa353749e317a8bea7
parent49a4ee7d98dbe34cfed90b930664c8a9fa73b24c
audit: Drop all unused chunk nodes during deletion

When deleting chunk from a tree, drop all unused nodes in a chunk
instead of just the one used by the tree. This gets rid of possibly
lingering unused nodes (created due to fallback path in untag_chunk())
and also removes some special cases and will allow us to simplify
locking in untag_chunk().

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/audit_tree.c