summaryrefslogtreecommitdiff
path: root/fs/nls/nls_cp874.c
diff options
context:
space:
mode:
authorGao Xiang <xiang@kernel.org>2021-05-10 09:47:15 +0300
committerGao Xiang <xiang@kernel.org>2021-05-13 10:58:46 +0300
commit0852b6ca941ef3ff75076e85738877bd3271e1cd (patch)
tree776b4b7bdce0a469fb198985260af221ff188c5e /fs/nls/nls_cp874.c
parent46f2e04484aee056c97f79162da83ac7d2d621bb (diff)
downloadlinux-0852b6ca941ef3ff75076e85738877bd3271e1cd.tar.xz
erofs: fix 1 lcluster-sized pcluster for big pcluster
If the 1st NONHEAD lcluster of a pcluster isn't CBLKCNT lcluster type rather than a HEAD or PLAIN type instead, which means its pclustersize _must_ be 1 lcluster (since its uncompressed size < 2 lclusters), as illustrated below: HEAD HEAD / PLAIN lcluster type ____________ ____________ |_:__________|_________:__| file data (uncompressed) . . .____________. |____________| pcluster data (compressed) Such on-disk case was explained before [1] but missed to be handled properly in the runtime implementation. It can be observed if manually generating 1 lcluster-sized pcluster with 2 lclusters (thus CBLKCNT doesn't exist.) Let's fix it now. [1] https://lore.kernel.org/r/20210407043927.10623-1-xiang@kernel.org Link: https://lore.kernel.org/r/20210510064715.29123-1-xiang@kernel.org Fixes: cec6e93beadf ("erofs: support parsing big pcluster compress indexes") Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Gao Xiang <xiang@kernel.org>
Diffstat (limited to 'fs/nls/nls_cp874.c')
0 files changed, 0 insertions, 0 deletions