summaryrefslogtreecommitdiffstats
path: root/fs/ntfs3/ntfs_fs.h
diff options
context:
space:
mode:
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2024-06-17 14:03:21 +0200
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2024-07-11 11:19:45 +0200
commit1ff2e956608c12a069faded7a01799d3206e8b1e (patch)
treecdfe9456dde48add2cd9eb0b51da904ff5bc011f /fs/ntfs3/ntfs_fs.h
parentfs/ntfs3: Use function file_inode to get inode from file (diff)
downloadlinux-1ff2e956608c12a069faded7a01799d3206e8b1e.tar.xz
linux-1ff2e956608c12a069faded7a01799d3206e8b1e.zip
fs/ntfs3: Redesign legacy ntfs support
1) Make is_legacy_ntfs static inline. 2) Put legacy file_operations under #if IS_ENABLED(CONFIG_NTFS_FS). Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Christian Brauner <brauner@kernel.org> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/ntfs_fs.h')
-rw-r--r--fs/ntfs3/ntfs_fs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ntfs3/ntfs_fs.h b/fs/ntfs3/ntfs_fs.h
index 8074fc53a145..6240ed742e7b 100644
--- a/fs/ntfs3/ntfs_fs.h
+++ b/fs/ntfs3/ntfs_fs.h
@@ -1140,6 +1140,13 @@ static inline void le64_sub_cpu(__le64 *var, u64 val)
*var = cpu_to_le64(le64_to_cpu(*var) - val);
}
+#if IS_ENABLED(CONFIG_NTFS_FS)
bool is_legacy_ntfs(struct super_block *sb);
+#else
+static inline bool is_legacy_ntfs(struct super_block *sb)
+{
+ return false;
+}
+#endif
#endif /* _LINUX_NTFS3_NTFS_FS_H */