linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regression in v5.14-rc1: f2165627319f btrfs: compression: don't try to compress if we don't have enough pages
@ 2021-08-22  5:51 Zygo Blaxell
  2021-08-22  6:02 ` Zygo Blaxell
  2021-08-23 11:17 ` David Sterba
  0 siblings, 2 replies; 4+ messages in thread
From: Zygo Blaxell @ 2021-08-22  5:51 UTC (permalink / raw)
  To: linux-btrfs

Before this commit:

	# head /dev/zero -c 4095 > inline
	# compsize inline
	Type       Perc     Disk Usage   Uncompressed Referenced  
	TOTAL        0%       18B         3.9K         3.9K       
	zstd         0%       18B         3.9K         3.9K       

After this commit:

	# head /dev/zero -c 4095 > inline                                                                        
	# compsize inline                                                                                        
	Processed 1 file, 1 regular extents (1 refs), 0 inline.                                                                                      
	Type       Perc     Disk Usage   Uncompressed Referenced                                                                                     
	TOTAL      100%      4.0K         4.0K         4.0K                                                                                          
	none       100%      4.0K         4.0K         4.0K                                                                                          

This change makes the metadata sizes of trees of small files (e.g. source
checkouts) blow up.

It looks like we need to look at the offset of the extent, as well as
its length.

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

end of thread, other threads:[~2021-08-26 19:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-22  5:51 Regression in v5.14-rc1: f2165627319f btrfs: compression: don't try to compress if we don't have enough pages Zygo Blaxell
2021-08-22  6:02 ` Zygo Blaxell
2021-08-23 11:17 ` David Sterba
2021-08-26 19:36   ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).