Revert "fs: add is_idmapped_mnt() helper"

This reverts commit bac0953c9f.
This commit is contained in:
Jaegeuk Kim
2023-01-04 13:00:04 -08:00
parent 5094968a00
commit fe2d3c2473
7 changed files with 6 additions and 20 deletions

View File

@@ -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);