On Wed, May 06, 2015 at 04:35:22PM +0800, xuw2015@xxxxxxxxx wrote: > From: George Wang <xuw2015@xxxxxxxxx> > > PAGE_CACHE_SIZE is usually 4096. But for some ppc64/ppc64le, it will be 65536. > Just replace this fixed PAGE_CACHE_SIZE to sysconf(_SC_PAGESIZE), which will > be more flexible As implemented in kernel right now, sectorsize must be page size and this is also part of the compressed data format. So in restore we should use the sectorsize from the filesystem. Instead of passing the sectorsize through multiple functions, I suggest to add a static global variable and set it after open_ctree. Thanks. -- 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
