X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=fs%2Fmount.h;h=6250de544760e1ed28bd1e91df35f45ad29d9e8c;hb=38a2ca2cac28cd202a364e30f9fd252ac66619be;hp=f39bc9da4d73c8e38bdbb85c8385fc8820f76dc8;hpb=b0bb222440a5c8273f67dd37946707e6ba6ad832;p=linux.git diff --git a/fs/mount.h b/fs/mount.h index f39bc9da4d73..6250de544760 100644 --- a/fs/mount.h +++ b/fs/mount.h @@ -146,3 +146,8 @@ static inline bool is_local_mountpoint(struct dentry *dentry) return __is_local_mountpoint(dentry); } + +static inline bool is_anon_ns(struct mnt_namespace *ns) +{ + return ns->seq == 0; +}