Btrfs: compression fixes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest2 patches 4 repliesIn review
- v42 patches 3 repliesSuperseded
- v32 patches 2 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 2 patches | 7 replies | Superseded | |
| v1 | 3 patches | 5 replies | Superseded |
Changes in v5 from the cover letter
- Old first patch - merged (fix typo)
- New first patch - synced some logic (see patch) from zlib to lzo
- Check compressed/uncompressed size in right place compress_file_range() Thanks to David
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | Btrfs: lzo.c - compressed data size must be less then input sizefs/ | +3 | 1 reply | |
| 2/2 | Btrfs: compression must free at least one sector sizefs/ | +2 | 3 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | David Sterba |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/2] Btrfs: compression fixes
First patch:
Sync comparison logic of compressed/uncompressed sizes from zlib to lzo
Second patch:
Force btrfs to not store data as compressed,
if compression will not free at least one sector size, because it's useless in term of saving storage space and reading data from disk, as a result productivity suffers.
Changes since v1:
- Merge patches for zlib and lzo in one
- Sync check logic for zlib and lzo
- Check profit after all data are compressed (not while compressing)
Changes since v2:
- Fix comparassion logic, it's enough if:
compressed size + PAGE_SIZE not bigger then input data size
Changes since v3:
- Use btrfs sector size directly instead of assume that PAGE_SIZE == sectorsize Thanks to Chandan
Changes since v4:
- Old first patch - merged (fix typo)
- New first patch - synced some logic (see patch) from zlib to lzo
- Check compressed/uncompressed size in right place compress_file_range() Thanks to David
Timofey Titovets (2):
Btrfs: lzo.c compressed data size must be less then input size
Btrfs: compression must free at least one sector size
fs/btrfs/inode.c | 3 ++- fs/btrfs/lzo.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-)
--
2.13.0