internal.h (d93618da6b6d453c6a9684a3460ffd51b9b4ef2e) | internal.h (39bfcb8138f6dc3375f23b1e62ccfc7c0d83295d) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (C) 2017-2018 HUAWEI, Inc. 4 * https://www.huawei.com/ 5 * Copyright (C) 2021, Alibaba Cloud 6 */ 7#ifndef __EROFS_INTERNAL_H 8#define __EROFS_INTERNAL_H --- 61 unchanged lines hidden (view full) --- 70 unsigned char cache_strategy; 71 /* strategy of sync decompression (0 - auto, 1 - force on, 2 - force off) */ 72 unsigned int sync_decompress; 73 74 /* threshold for decompression synchronously */ 75 unsigned int max_sync_decompress_pages; 76#endif 77 unsigned int mount_opt; | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (C) 2017-2018 HUAWEI, Inc. 4 * https://www.huawei.com/ 5 * Copyright (C) 2021, Alibaba Cloud 6 */ 7#ifndef __EROFS_INTERNAL_H 8#define __EROFS_INTERNAL_H --- 61 unchanged lines hidden (view full) --- 70 unsigned char cache_strategy; 71 /* strategy of sync decompression (0 - auto, 1 - force on, 2 - force off) */ 72 unsigned int sync_decompress; 73 74 /* threshold for decompression synchronously */ 75 unsigned int max_sync_decompress_pages; 76#endif 77 unsigned int mount_opt; |
78 char *fsid; 79 char *domain_id; | |
80}; 81 82struct erofs_dev_context { 83 struct idr tree; 84 struct rw_semaphore rwsem; 85 86 unsigned int extra_devices; 87}; 88 89struct erofs_fs_context { 90 struct erofs_mount_opts opt; 91 struct erofs_dev_context *devs; | 78}; 79 80struct erofs_dev_context { 81 struct idr tree; 82 struct rw_semaphore rwsem; 83 84 unsigned int extra_devices; 85}; 86 87struct erofs_fs_context { 88 struct erofs_mount_opts opt; 89 struct erofs_dev_context *devs; |
90 char *fsid; 91 char *domain_id; |
|
92}; 93 94/* all filesystem-wide lz4 configurations */ 95struct erofs_sb_lz4_info { 96 /* # of pages needed for EROFS lz4 rolling decompression */ 97 u16 max_distance_pages; 98 /* maximum possible blocks for pclusters in the filesystem */ 99 u16 max_pclusterblks; --- 65 unchanged lines hidden (view full) --- 165 /* sysfs support */ 166 struct kobject s_kobj; /* /sys/fs/erofs/<devname> */ 167 struct completion s_kobj_unregister; 168 169 /* fscache support */ 170 struct fscache_volume *volume; 171 struct erofs_fscache *s_fscache; 172 struct erofs_domain *domain; | 92}; 93 94/* all filesystem-wide lz4 configurations */ 95struct erofs_sb_lz4_info { 96 /* # of pages needed for EROFS lz4 rolling decompression */ 97 u16 max_distance_pages; 98 /* maximum possible blocks for pclusters in the filesystem */ 99 u16 max_pclusterblks; --- 65 unchanged lines hidden (view full) --- 165 /* sysfs support */ 166 struct kobject s_kobj; /* /sys/fs/erofs/<devname> */ 167 struct completion s_kobj_unregister; 168 169 /* fscache support */ 170 struct fscache_volume *volume; 171 struct erofs_fscache *s_fscache; 172 struct erofs_domain *domain; |
173 char *fsid; 174 char *domain_id; |
|
173}; 174 175#define EROFS_SB(sb) ((struct erofs_sb_info *)(sb)->s_fs_info) 176#define EROFS_I_SB(inode) ((struct erofs_sb_info *)(inode)->i_sb->s_fs_info) 177 178/* Mount flags set via mount options or defaults */ 179#define EROFS_MOUNT_XATTR_USER 0x00000010 180#define EROFS_MOUNT_POSIX_ACL 0x00000020 --- 456 unchanged lines hidden --- | 175}; 176 177#define EROFS_SB(sb) ((struct erofs_sb_info *)(sb)->s_fs_info) 178#define EROFS_I_SB(inode) ((struct erofs_sb_info *)(inode)->i_sb->s_fs_info) 179 180/* Mount flags set via mount options or defaults */ 181#define EROFS_MOUNT_XATTR_USER 0x00000010 182#define EROFS_MOUNT_POSIX_ACL 0x00000020 --- 456 unchanged lines hidden --- |