constify is_local_mountpoint()
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
+2
-2
@@ -147,8 +147,8 @@ struct proc_mounts {
|
||||
|
||||
extern const struct seq_operations mounts_op;
|
||||
|
||||
extern bool __is_local_mountpoint(struct dentry *dentry);
|
||||
static inline bool is_local_mountpoint(struct dentry *dentry)
|
||||
extern bool __is_local_mountpoint(const struct dentry *dentry);
|
||||
static inline bool is_local_mountpoint(const struct dentry *dentry)
|
||||
{
|
||||
if (!d_mountpoint(dentry))
|
||||
return false;
|
||||
|
||||
+1
-1
@@ -894,7 +894,7 @@ struct vfsmount *lookup_mnt(const struct path *path)
|
||||
* namespace not just a mount that happens to have some specified
|
||||
* parent mount.
|
||||
*/
|
||||
bool __is_local_mountpoint(struct dentry *dentry)
|
||||
bool __is_local_mountpoint(const struct dentry *dentry)
|
||||
{
|
||||
struct mnt_namespace *ns = current->nsproxy->mnt_ns;
|
||||
struct mount *mnt, *n;
|
||||
|
||||
Reference in New Issue
Block a user