From: Eric W. Biederman Date: Mon, 29 Dec 2014 19:03:41 +0000 (-0600) Subject: mnt: Factor out unhash_mnt from detach_mnt and umount_tree X-Git-Tag: omap-for-v4.1/fixes-rc1~99^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bdb11de8ee4f4ae195e2fa19efd304e0b36c63b;p=pandora-kernel.git mnt: Factor out unhash_mnt from detach_mnt and umount_tree Create a function unhash_mnt that contains the common code between detach_mnt and umount_tree, and use unhash_mnt in place of the common code. This add a unncessary list_del_init(mnt->mnt_child) into umount_tree but given that mnt_child is already empty this extra line is a noop. Cc: stable@vger.kernel.org Signed-off-by: "Eric W. Biederman" --- Reading git-diff-tree failed