userns: Simplify insert_extent
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 31 Oct 2017 22:15:30 +0000 (17:15 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 31 Oct 2017 22:23:13 +0000 (17:23 -0500)
commit3fda0e737e906ce73220b20c27e7f792d0aac6a8
treeb6fb2ec20b3028ad70578aa3b73a1a52d3e3daf5
parentece66133979b211324cc6aff9285889b425243d2
userns: Simplify insert_extent

Consolidate the code to write to the new mapping at the end of the
function to remove the duplication.  Move the increase in the number
of mappings into insert_extent, keeping the logic together.

Just a small increase in readability and maintainability.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/user_namespace.c