uninline may_mount() and don't opencode it in fspick(2)/fsopen(2)
[sfrench/cifs-2.6.git] / fs / namespace.c
index a0a36bfa3aa0543b75da0c6784dbacb50f53d805..c3a80ffaf1e58708f86defa1acbac7f8ad10572b 100644 (file)
@@ -1760,7 +1760,7 @@ out_unlock:
 /*
  * Is the caller allowed to modify his namespace?
  */
-static inline bool may_mount(void)
+bool may_mount(void)
 {
        return ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN);
 }