public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v3 0/2] erofs: support compressed fragments data
@ 2022-09-05  3:20 Yue Hu
  2022-09-05  3:20 ` [RFC PATCH v3 1/2] erofs: support interlaced uncompressed data for compressed files Yue Hu
  2022-09-05  3:20 ` [RFC PATCH v3 2/2] erofs: support on-disk compressed fragments data Yue Hu
  0 siblings, 2 replies; 3+ messages in thread
From: Yue Hu @ 2022-09-05  3:20 UTC (permalink / raw)
  To: xiang, chao; +Cc: linux-erofs, linux-kernel, zhangwen, zbestahu, Yue Hu

From: Yue Hu <huyue2@coolpad.com>

This feature can merge tail of per-file or the whole files into a
special inode to achieve greater compression ratio.

Meanwhile, also add a interlaced uncompressed data layout support for
compressed files since fragments feature (and later) can use it.

mkfs v5: https://lore.kernel.org/all/cover.1661687617.git.huyue2@coolpad.com/

changes from v2:
 - enhance the condition to check if pcluster is interlaced or not;
 - no typo.

changes from v1:
 - fix a compiling error without CONFIG_EROFS_FS_ZIP, reported by kernel test
   robot <lkp@intel.com>;
 - introduce the term 'interlaced' for patch 1/2 suggested by Xiang;
 - fix packed inode failure path when read super pointed out by Xiang;
 - use kmap_local_page instead of kmap_atomic pointed out by Xiang;
 - use a simpler way to avoid call read fragment data twice suggested by Xiang;
 - update commit message change.

Yue Hu (2):
  erofs: support interlaced uncompressed data for compressed files
  erofs: support on-disk compressed fragments data

 fs/erofs/compress.h     |  3 +++
 fs/erofs/decompressor.c | 12 +++++----
 fs/erofs/erofs_fs.h     | 28 ++++++++++++++-----
 fs/erofs/internal.h     | 16 ++++++++---
 fs/erofs/super.c        | 15 +++++++++++
 fs/erofs/sysfs.c        |  2 ++
 fs/erofs/zdata.c        | 60 +++++++++++++++++++++++++++++++++++++++--
 fs/erofs/zdata.h        |  3 +++
 fs/erofs/zmap.c         | 33 ++++++++++++++++++++++-
 9 files changed, 155 insertions(+), 17 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-05  3:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-05  3:20 [RFC PATCH v3 0/2] erofs: support compressed fragments data Yue Hu
2022-09-05  3:20 ` [RFC PATCH v3 1/2] erofs: support interlaced uncompressed data for compressed files Yue Hu
2022-09-05  3:20 ` [RFC PATCH v3 2/2] erofs: support on-disk compressed fragments data Yue Hu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox