Re: [PATCH 1/6] Btrfs: fix wrong skipping compression for an inode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 17, 2014 at 11:44:09AM +0800, Wang Shilong wrote:
> If a file's compression ratios is bad, we will set NOCOMPRESS
> flag for it, and it will skip compression for that inode next time.
> 
> However, if we remount fs to COMPRESS_FORCE, it still should try
> if we could compress pages for that inode, this patch fix wrong
> check for this problem.
> 
> Signed-off-by: Wang Shilong <wangsl.fnst@xxxxxxxxxxxxxx>

Reviewed-by: David Sterba <dsterba@xxxxxxx>

The documented compression precedence
https://btrfs.wiki.kernel.org/index.php/Compression#What.27s_the_precedence_of_all_the_options_affecting_compression.3F

matches the way you've fixed it.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux