internal.h (a97a218b08868029507272a8fc6b52491a157ec5) internal.h (9e382914617c5cab89a01a223b8d00bbd43ad3b3)
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

--- 103 unchanged lines hidden (view full) ---

112
113 /* used for share domain mode */
114 struct erofs_domain *domain;
115 struct list_head node;
116 refcount_t ref;
117 char *name;
118};
119
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

--- 103 unchanged lines hidden (view full) ---

112
113 /* used for share domain mode */
114 struct erofs_domain *domain;
115 struct list_head node;
116 refcount_t ref;
117 char *name;
118};
119
120struct erofs_xattr_prefix_item {
121 struct erofs_xattr_long_prefix *prefix;
122 u8 infix_len;
123};
124
120struct erofs_sb_info {
121 struct erofs_mount_opts opt; /* options */
122#ifdef CONFIG_EROFS_FS_ZIP
123 /* list for all registered superblocks, mainly for shrinker */
124 struct list_head list;
125 struct mutex umount_mutex;
126
127 /* managed XArray arranged in physical block number */

--- 12 unchanged lines hidden (view full) ---

140 struct dax_device *dax_dev;
141 u64 dax_part_off;
142 u64 total_blocks;
143 u32 primarydevice_blocks;
144
145 u32 meta_blkaddr;
146#ifdef CONFIG_EROFS_FS_XATTR
147 u32 xattr_blkaddr;
125struct erofs_sb_info {
126 struct erofs_mount_opts opt; /* options */
127#ifdef CONFIG_EROFS_FS_ZIP
128 /* list for all registered superblocks, mainly for shrinker */
129 struct list_head list;
130 struct mutex umount_mutex;
131
132 /* managed XArray arranged in physical block number */

--- 12 unchanged lines hidden (view full) ---

145 struct dax_device *dax_dev;
146 u64 dax_part_off;
147 u64 total_blocks;
148 u32 primarydevice_blocks;
149
150 u32 meta_blkaddr;
151#ifdef CONFIG_EROFS_FS_XATTR
152 u32 xattr_blkaddr;
153 u32 xattr_prefix_start;
154 u8 xattr_prefix_count;
155 struct erofs_xattr_prefix_item *xattr_prefixes;
148#endif
149 u16 device_id_mask; /* valid bits of device id to be used */
150
151 unsigned char islotbits; /* inode slot unit size in bit shift */
152 unsigned char blkszbits; /* filesystem block size in bit shift */
153
154 u32 sb_size; /* total superblock size */
155 u32 build_time_nsec;

--- 279 unchanged lines hidden (view full) ---

435extern const struct file_operations erofs_dir_fops;
436
437extern const struct iomap_ops z_erofs_iomap_report_ops;
438
439/* flags for erofs_fscache_register_cookie() */
440#define EROFS_REG_COOKIE_SHARE 0x0001
441#define EROFS_REG_COOKIE_NEED_NOEXIST 0x0002
442
156#endif
157 u16 device_id_mask; /* valid bits of device id to be used */
158
159 unsigned char islotbits; /* inode slot unit size in bit shift */
160 unsigned char blkszbits; /* filesystem block size in bit shift */
161
162 u32 sb_size; /* total superblock size */
163 u32 build_time_nsec;

--- 279 unchanged lines hidden (view full) ---

443extern const struct file_operations erofs_dir_fops;
444
445extern const struct iomap_ops z_erofs_iomap_report_ops;
446
447/* flags for erofs_fscache_register_cookie() */
448#define EROFS_REG_COOKIE_SHARE 0x0001
449#define EROFS_REG_COOKIE_NEED_NOEXIST 0x0002
450
451void *erofs_read_metadata(struct super_block *sb, struct erofs_buf *buf,
452 erofs_off_t *offset, int *lengthp);
443void erofs_unmap_metabuf(struct erofs_buf *buf);
444void erofs_put_metabuf(struct erofs_buf *buf);
445void *erofs_bread(struct erofs_buf *buf, erofs_blk_t blkaddr,
446 enum erofs_kmap_type type);
447void erofs_init_metabuf(struct erofs_buf *buf, struct super_block *sb);
448void *erofs_read_metabuf(struct erofs_buf *buf, struct super_block *sb,
449 erofs_blk_t blkaddr, enum erofs_kmap_type type);
450int erofs_map_dev(struct super_block *sb, struct erofs_map_dev *dev);

--- 135 unchanged lines hidden ---
453void erofs_unmap_metabuf(struct erofs_buf *buf);
454void erofs_put_metabuf(struct erofs_buf *buf);
455void *erofs_bread(struct erofs_buf *buf, erofs_blk_t blkaddr,
456 enum erofs_kmap_type type);
457void erofs_init_metabuf(struct erofs_buf *buf, struct super_block *sb);
458void *erofs_read_metabuf(struct erofs_buf *buf, struct super_block *sb,
459 erofs_blk_t blkaddr, enum erofs_kmap_type type);
460int erofs_map_dev(struct super_block *sb, struct erofs_map_dev *dev);

--- 135 unchanged lines hidden ---