diff options
author | Phillip Lougher <phillip@squashfs.org.uk> | 2025-09-24 01:06:52 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2025-09-28 21:36:14 +0300 |
commit | dec91e7ab10ec465d59144aabe69c01723ddd1c4 (patch) | |
tree | c788c81c88a3387b25ad5162052072e6c8a5605d /drivers/gpu/drm/lima/lima_sched.c | |
parent | 9ee94bfbe930a1b39df53fa2d7b31141b780eb5a (diff) | |
download | linux-dec91e7ab10ec465d59144aabe69c01723ddd1c4.tar.xz |
Squashfs: add SEEK_DATA/SEEK_HOLE support
Add support for SEEK_DATA and SEEK_HOLE lseek() whence values.
These allow much faster searches for holes and data in sparse files, which
can significantly speed up file copying, e.g.
before (GNU coreutils, Debian 13):
cp --sparse=always big-file /
took real 11m58s, user 0m5.764s, sys 11m48s
after:
real 0.047s, user 0.000s, sys 0.027s
Where big-file has a 256 GB hole followed by 47 KB of data.
Link: https://lkml.kernel.org/r/20250923220652.568416-3-phillip@squashfs.org.uk
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.c')
0 files changed, 0 insertions, 0 deletions