Revert "fs: add is_idmapped_mnt() helper"
This reverts commit bac0953c9f.
This commit is contained in:
@@ -2724,20 +2724,6 @@ static inline struct user_namespace *file_mnt_user_ns(struct file *file)
|
||||
{
|
||||
return mnt_user_ns(file->f_path.mnt);
|
||||
}
|
||||
|
||||
/**
|
||||
* is_idmapped_mnt - check whether a mount is mapped
|
||||
* @mnt: the mount to check
|
||||
*
|
||||
* If @mnt has an idmapping attached to it @mnt is mapped.
|
||||
*
|
||||
* Return: true if mount is mapped, false if not.
|
||||
*/
|
||||
static inline bool is_idmapped_mnt(const struct vfsmount *mnt)
|
||||
{
|
||||
return mnt_user_ns(mnt) != &init_user_ns;
|
||||
}
|
||||
|
||||
extern long vfs_truncate(const struct path *, loff_t);
|
||||
int do_truncate(struct user_namespace *, struct dentry *, loff_t start,
|
||||
unsigned int time_attrs, struct file *filp);
|
||||
|
||||
Reference in New Issue
Block a user