From: Yu Kuai yukuai3@huawei.com
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IB5UKT
--------------------------------
So that cachefile location is the same with mainline kernel, and cachefile can still be used after upgrading kernel.
test 1) domain_id="domain", fsid="test.img", device="blob1.img" - hulk-5.10: ./@24/I05erofs/@cf/I0cerofs,domain/@33/D08test.img ./@24/I05erofs/@cf/I0cerofs,domain/@44/D09blob1.img - hulk-5.10 with this set: ./Ierofs,domain/@ff/Dtest.img ./Ierofs,domain/@d6/Dblob1.img - mainline: ./Ierofs,domain/@ff/Dtest.img ./Ierofs,domain/@d6/Dblob1.img
test 2) fsid="test.img", device="blob1.img" - hulk-5.10: ./@24/I05erofs/@84/I0eerofs,test.img/@33/D08test.img ./@24/I05erofs/@84/I0eerofs,test.img/@44/D09blob1.img - hulk-5.10 with this set: ./Ierofs,test.img/@f7/Dtest.img ./Ierofs,test.img/@cb/Dblob1.img - mainline: ./Ierofs,test.img/@f7/Dtest.img ./Ierofs,test.img/@cb/Dblob1.img
test 3) domain_id="d o m a i n", fsid="t e s t.img", device="b l o b 1.img" - hulk-5.10: ./@24/I05erofs/@74/Jh0gpOZCpPN2pwY68J1iowA68K100/@96/Eb00twk68P12tKAmrD100 ./@24/I05erofs/@74/Jh0gpOZCpPN2pwY68J1iowA68K100/@c8/Ed0wowM68L1yow4zbFRSp - hulk-5.10 with this set: ./Ierofs,d o m a i n/@9a/E1Q1ipwc78QViqJt60 ./Ierofs,d o m a i n/@e8/E2y12rwY68y1icKAmrD100 - mainline: ./Ierofs,d o m a i n/@9a/E1Q1ipwc78QViqJt60 ./Ierofs,d o m a i n/@e8/E2y12rwY68y1icKAmrD100
test 4) fsid="t e s t.img", device="b l o b 1.img" - hulk-5.10: ./@24/I05erofs/@e7/Jh0gpOZCpPN2twk68P12tKAmrD100/@96/Eb00twk68P12tKAmrD100 ./@24/I05erofs/@e7/Jh0gpOZCpPN2twk68P12tKAmrD100/@c8/Ed0wowM68L1yow4zbFRSp - hulk-5.10 with this set ./Ierofs,t e s t.img/@18/E1Q1ipwc78QViqJt60 ./Ierofs,t e s t.img/@86/E2y12rwY68y1icKAmrD100 - mainline ./Ierofs,t e s t.img/@18/E1Q1ipwc78QViqJt60 ./Ierofs,t e s t.img/@86/E2y12rwY68y1icKAmrD100
Signed-off-by: Yu Kuai yukuai3@huawei.com Signed-off-by: Baokun Li libaokun1@huawei.com --- fs/erofs/fscache.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/fs/erofs/fscache.c b/fs/erofs/fscache.c index f0b9815f56f6..2389b50c7906 100644 --- a/fs/erofs/fscache.c +++ b/fs/erofs/fscache.c @@ -30,6 +30,7 @@ const struct fscache_cookie_def erofs_fscache_super_index_def = { .name = "EROFS.super", .type = FSCACHE_COOKIE_TYPE_INDEX, .check_aux = NULL, + .new_location = true, };
const struct fscache_cookie_def erofs_fscache_inode_object_def = {