int erofs_listxattr(struct erofs_inode *vi, char *buffer, size_t buffer_size);
/* zmap.c */
-int z_erofs_fill_inode(struct erofs_inode *vi);
int z_erofs_map_blocks_iter(struct erofs_inode *vi,
struct erofs_map_blocks *map, int flags);
}
vi->u.chunkbits = sbi->blkszbits +
(vi->u.chunkformat & EROFS_CHUNK_FORMAT_BLKBITS_MASK);
- } else if (erofs_inode_is_data_compressed(vi->datalayout)) {
- return z_erofs_fill_inode(vi);
}
return 0;
bogusimode:
#include "erofs/internal.h"
#include "erofs/print.h"
-int z_erofs_fill_inode(struct erofs_inode *vi)
-{
- struct erofs_sb_info *sbi = vi->sbi;
-
- if (!erofs_sb_has_big_pcluster(sbi) &&
- !erofs_sb_has_ztailpacking(sbi) && !erofs_sb_has_fragments(sbi) &&
- vi->datalayout == EROFS_INODE_COMPRESSED_FULL) {
- vi->z_advise = 0;
- vi->z_algorithmtype[0] = 0;
- vi->z_algorithmtype[1] = 0;
- vi->z_logical_clusterbits = sbi->blkszbits;
-
- vi->flags |= EROFS_I_Z_INITED;
- }
- return 0;
-}
-
struct z_erofs_maprecorder {
struct erofs_inode *inode;
struct erofs_map_blocks *map;