summaryrefslogtreecommitdiffstats
path: root/fs/erofs/zmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/erofs/zmap.c')
-rw-r--r--fs/erofs/zmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/erofs/zmap.c b/fs/erofs/zmap.c
index 850e0e3d57a8..6a06fb80ef3f 100644
--- a/fs/erofs/zmap.c
+++ b/fs/erofs/zmap.c
@@ -12,7 +12,7 @@ int z_erofs_fill_inode(struct inode *inode)
12{ 12{
13 struct erofs_vnode *const vi = EROFS_V(inode); 13 struct erofs_vnode *const vi = EROFS_V(inode);
14 14
15 if (vi->datamode == EROFS_INODE_FLAT_COMPRESSION_LEGACY) { 15 if (vi->datalayout == EROFS_INODE_FLAT_COMPRESSION_LEGACY) {
16 vi->z_advise = 0; 16 vi->z_advise = 0;
17 vi->z_algorithmtype[0] = 0; 17 vi->z_algorithmtype[0] = 0;
18 vi->z_algorithmtype[1] = 0; 18 vi->z_algorithmtype[1] = 0;
@@ -46,7 +46,7 @@ static int fill_inode_lazy(struct inode *inode)
46 if (test_bit(EROFS_V_Z_INITED_BIT, &vi->flags)) 46 if (test_bit(EROFS_V_Z_INITED_BIT, &vi->flags))
47 goto out_unlock; 47 goto out_unlock;
48 48
49 DBG_BUGON(vi->datamode == EROFS_INODE_FLAT_COMPRESSION_LEGACY); 49 DBG_BUGON(vi->datalayout == EROFS_INODE_FLAT_COMPRESSION_LEGACY);
50 50
51 pos = ALIGN(iloc(EROFS_SB(sb), vi->nid) + vi->inode_isize + 51 pos = ALIGN(iloc(EROFS_SB(sb), vi->nid) + vi->inode_isize +
52 vi->xattr_isize, 8); 52 vi->xattr_isize, 8);
@@ -314,7 +314,7 @@ out:
314static int vle_load_cluster_from_disk(struct z_erofs_maprecorder *m, 314static int vle_load_cluster_from_disk(struct z_erofs_maprecorder *m,
315 unsigned int lcn) 315 unsigned int lcn)
316{ 316{
317 const unsigned int datamode = EROFS_V(m->inode)->datamode; 317 const unsigned int datamode = EROFS_V(m->inode)->datalayout;
318 318
319 if (datamode == EROFS_INODE_FLAT_COMPRESSION_LEGACY) 319 if (datamode == EROFS_INODE_FLAT_COMPRESSION_LEGACY)
320 return vle_legacy_load_cluster_from_disk(m, lcn); 320 return vle_legacy_load_cluster_from_disk(m, lcn);