ext4.h (592ddec7578a33fb6b3e2ba78aed91614bbb30e2) | ext4.h (643fa9612bf1a29153eee46fd398117632f93cbe) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * ext4.h 4 * 5 * Copyright (C) 1992, 1993, 1994, 1995 6 * Remy Card (card@masi.ibp.fr) 7 * Laboratoire MASI - Institut Blaise Pascal 8 * Universite Pierre et Marie Curie (Paris VI) --- 26 unchanged lines hidden (view full) --- 35#include <linux/ratelimit.h> 36#include <crypto/hash.h> 37#include <linux/falloc.h> 38#include <linux/percpu-rwsem.h> 39#ifdef __KERNEL__ 40#include <linux/compat.h> 41#endif 42 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * ext4.h 4 * 5 * Copyright (C) 1992, 1993, 1994, 1995 6 * Remy Card (card@masi.ibp.fr) 7 * Laboratoire MASI - Institut Blaise Pascal 8 * Universite Pierre et Marie Curie (Paris VI) --- 26 unchanged lines hidden (view full) --- 35#include <linux/ratelimit.h> 36#include <crypto/hash.h> 37#include <linux/falloc.h> 38#include <linux/percpu-rwsem.h> 39#ifdef __KERNEL__ 40#include <linux/compat.h> 41#endif 42 |
43#define __FS_HAS_ENCRYPTION IS_ENABLED(CONFIG_EXT4_FS_ENCRYPTION) | |
44#include <linux/fscrypt.h> 45 46#include <linux/compiler.h> 47 48/* 49 * The fourth extended filesystem constants/structures 50 */ 51 --- 1269 unchanged lines hidden (view full) --- 1321 1322/* 1323 * run-time mount flags 1324 */ 1325#define EXT4_MF_MNTDIR_SAMPLED 0x0001 1326#define EXT4_MF_FS_ABORTED 0x0002 /* Fatal error detected */ 1327#define EXT4_MF_TEST_DUMMY_ENCRYPTION 0x0004 1328 | 43#include <linux/fscrypt.h> 44 45#include <linux/compiler.h> 46 47/* 48 * The fourth extended filesystem constants/structures 49 */ 50 --- 1269 unchanged lines hidden (view full) --- 1320 1321/* 1322 * run-time mount flags 1323 */ 1324#define EXT4_MF_MNTDIR_SAMPLED 0x0001 1325#define EXT4_MF_FS_ABORTED 0x0002 /* Fatal error detected */ 1326#define EXT4_MF_TEST_DUMMY_ENCRYPTION 0x0004 1327 |
1329#ifdef CONFIG_EXT4_FS_ENCRYPTION | 1328#ifdef CONFIG_FS_ENCRYPTION |
1330#define DUMMY_ENCRYPTION_ENABLED(sbi) (unlikely((sbi)->s_mount_flags & \ 1331 EXT4_MF_TEST_DUMMY_ENCRYPTION)) 1332#else 1333#define DUMMY_ENCRYPTION_ENABLED(sbi) (0) 1334#endif 1335 1336/* Number of quota types we support */ 1337#define EXT4_MAXQUOTAS 3 --- 708 unchanged lines hidden (view full) --- 2046 * Control parameters used by ext4_htree_next_block 2047 */ 2048#define HASH_NB_ALWAYS 1 2049 2050struct ext4_filename { 2051 const struct qstr *usr_fname; 2052 struct fscrypt_str disk_name; 2053 struct dx_hash_info hinfo; | 1329#define DUMMY_ENCRYPTION_ENABLED(sbi) (unlikely((sbi)->s_mount_flags & \ 1330 EXT4_MF_TEST_DUMMY_ENCRYPTION)) 1331#else 1332#define DUMMY_ENCRYPTION_ENABLED(sbi) (0) 1333#endif 1334 1335/* Number of quota types we support */ 1336#define EXT4_MAXQUOTAS 3 --- 708 unchanged lines hidden (view full) --- 2045 * Control parameters used by ext4_htree_next_block 2046 */ 2047#define HASH_NB_ALWAYS 1 2048 2049struct ext4_filename { 2050 const struct qstr *usr_fname; 2051 struct fscrypt_str disk_name; 2052 struct dx_hash_info hinfo; |
2054#ifdef CONFIG_EXT4_FS_ENCRYPTION | 2053#ifdef CONFIG_FS_ENCRYPTION |
2055 struct fscrypt_str crypto_buf; 2056#endif 2057}; 2058 2059#define fname_name(p) ((p)->disk_name.name) 2060#define fname_len(p) ((p)->disk_name.len) 2061 2062/* --- 211 unchanged lines hidden (view full) --- 2274 struct buffer_head *bh); 2275extern struct buffer_head *ext4_read_block_bitmap(struct super_block *sb, 2276 ext4_group_t block_group); 2277extern unsigned ext4_free_clusters_after_init(struct super_block *sb, 2278 ext4_group_t block_group, 2279 struct ext4_group_desc *gdp); 2280ext4_fsblk_t ext4_inode_to_goal_block(struct inode *); 2281 | 2054 struct fscrypt_str crypto_buf; 2055#endif 2056}; 2057 2058#define fname_name(p) ((p)->disk_name.name) 2059#define fname_len(p) ((p)->disk_name.len) 2060 2061/* --- 211 unchanged lines hidden (view full) --- 2273 struct buffer_head *bh); 2274extern struct buffer_head *ext4_read_block_bitmap(struct super_block *sb, 2275 ext4_group_t block_group); 2276extern unsigned ext4_free_clusters_after_init(struct super_block *sb, 2277 ext4_group_t block_group, 2278 struct ext4_group_desc *gdp); 2279ext4_fsblk_t ext4_inode_to_goal_block(struct inode *); 2280 |
2282#ifdef CONFIG_EXT4_FS_ENCRYPTION | 2281#ifdef CONFIG_FS_ENCRYPTION |
2283static inline int ext4_fname_setup_filename(struct inode *dir, 2284 const struct qstr *iname, 2285 int lookup, struct ext4_filename *fname) 2286{ 2287 struct fscrypt_name name; 2288 int err; 2289 2290 memset(fname, 0, sizeof(struct ext4_filename)); --- 957 unchanged lines hidden --- | 2282static inline int ext4_fname_setup_filename(struct inode *dir, 2283 const struct qstr *iname, 2284 int lookup, struct ext4_filename *fname) 2285{ 2286 struct fscrypt_name name; 2287 int err; 2288 2289 memset(fname, 0, sizeof(struct ext4_filename)); --- 957 unchanged lines hidden --- |