On 2021/5/18 20:51, Fengnan Chang wrote:
For now,when overwrite compressed file, we need read old data to page
cache first and update pages.
But when we need overwrite whole cluster, we don't need old data
anymore.

I only see you just check the whole page was dirty as below rather than
the whole cluster is dirty during write().

Thanks,

+       if (len == PAGE_SIZE)
+               return 0;
        /* compressed case */
        prealloc = (ret < cc->cluster_size);


_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to