Since we're checking for a dummy audit context here already, we can call __audit_inode directly and skip the check that audit_inode does. Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx> --- fs/namei.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index f9e883c..fe51935 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1785,7 +1785,7 @@ static int do_path_lookup(int dfd, const char *name, if (likely(!retval)) { if (unlikely(!audit_dummy_context())) { if (nd->path.dentry && nd->inode) - audit_inode(name, nd->path.dentry); + __audit_inode(name, nd->path.dentry); } } return retval; -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html