mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 22:34:33 +01:00
Add a simple helper to put a mount namespace reference. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Josef Bacik <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
26 lines
767 B
C
26 lines
767 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _NAMESPACE_H_
|
|
#define _NAMESPACE_H_
|
|
#ifdef __KERNEL__
|
|
|
|
#include <linux/cleanup.h>
|
|
#include <linux/err.h>
|
|
|
|
struct mnt_namespace;
|
|
struct fs_struct;
|
|
struct user_namespace;
|
|
struct ns_common;
|
|
|
|
extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *,
|
|
struct user_namespace *, struct fs_struct *);
|
|
extern void put_mnt_ns(struct mnt_namespace *ns);
|
|
DEFINE_FREE(put_mnt_ns, struct mnt_namespace *, if (!IS_ERR_OR_NULL(_T)) put_mnt_ns(_T))
|
|
extern struct ns_common *from_mnt_ns(struct mnt_namespace *);
|
|
|
|
extern const struct file_operations proc_mounts_operations;
|
|
extern const struct file_operations proc_mountinfo_operations;
|
|
extern const struct file_operations proc_mountstats_operations;
|
|
|
|
#endif
|
|
#endif
|