2017-05-25 15:51 GMT+03:00 Chandan Rajendra <chan...@linux.vnet.ibm.com>: ... > Apologies for the delayed response. > > I am not really sure if compression code must save atleast one sectorsize > worth of space. But if other developers agree to it, then the above > 'if' condition can be replaced with, > > u32 sectorsize = btrfs_inode_sectorsize(mapping->host); > ... > ... > > if (tot_out + sectorsize > tot_in) { > -- > chandan >
Thanks a lot! This approach much simplier then i imagined, i will update patch set and resend. Thank you! -- Have a nice day, Timofey. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html