summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/ovl_entry.h
diff options
context:
space:
mode:
authorAndrea Righi <andrea.righi@canonical.com>2023-05-21 10:28:12 +0200
committerAmir Goldstein <amir73il@gmail.com>2023-08-12 19:02:54 +0300
commitf01d08899fd7fa808ff9b8d33ca4882ab44d42fa (patch)
tree3fc90806f5d20236a373b42cbedfeb105b6d36f0 /fs/overlayfs/ovl_entry.h
parent36295542969dcfe7443f8cc5247863ed06a936d5 (diff)
downloadlinux-f01d08899fd7fa808ff9b8d33ca4882ab44d42fa.tar.gz
linux-f01d08899fd7fa808ff9b8d33ca4882ab44d42fa.tar.bz2
linux-f01d08899fd7fa808ff9b8d33ca4882ab44d42fa.zip
ovl: make consistent use of OVL_FS()
Always use OVL_FS() to retrieve the corresponding struct ovl_fs from a struct super_block. Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Andrea Righi <andrea.righi@canonical.com> Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'fs/overlayfs/ovl_entry.h')
-rw-r--r--fs/overlayfs/ovl_entry.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/overlayfs/ovl_entry.h b/fs/overlayfs/ovl_entry.h
index 5d03f449adb1..edb457544b5f 100644
--- a/fs/overlayfs/ovl_entry.h
+++ b/fs/overlayfs/ovl_entry.h
@@ -117,6 +117,8 @@ static inline struct mnt_idmap *ovl_upper_mnt_idmap(struct ovl_fs *ofs)
return mnt_idmap(ovl_upper_mnt(ofs));
}
+extern struct file_system_type ovl_fs_type;
+
static inline struct ovl_fs *OVL_FS(struct super_block *sb)
{
return (struct ovl_fs *)sb->s_fs_info;