vfs: Remove duplicated d_mountpoint check in __is_local_mountpoint
authorNikolay Borisov <nborisov@suse.com>
Wed, 4 Mar 2020 16:12:45 +0000 (18:12 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 29 May 2020 14:35:24 +0000 (10:35 -0400)
commit5ad05cc8e0463f106be7ef5d1074dd877132d60a
treea636b6dab4fb841d9db73cf2b2a4e7891dd1b798
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
vfs: Remove duplicated d_mountpoint check in __is_local_mountpoint

This function acts as an out-of-line helper for is_local_mountpoint
is only called after the latter verifies the dentry is not a mountpoint.
There's no semantic changes and the resulting object code is smaller:

add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-26 (-26)
Function                                     old     new   delta
__is_local_mountpoint                        147     121     -26
Total: Before=34161, After=34135, chg -0.08%

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c