Zhang, Sonic
2004-Aug-01 21:20 UTC
[Ocfs2-devel] Patch to remove the code to zero buffer in ocfs_extend_file() completely.
Hi, We found the code to zero buffer in ocfs_extend_file() is completely unnecessary for both directory creating and file writing. In kernel routine block_read_full_page(), the unmapped buffer is retrieved via ocfs_get_block() and set to zero immediately even if it is already zeroed in the ocfs_extend_file(). After remove this code, the performance of ocfs_extend_file() increase greatly. So, we suggest remove it. See the attachment. ********************************************* Sonic Zhang Software Engineer Intel China Software Lab Tel: (086)021-52574545-1667 iNet: 752-1667 ********************************************* -------------- next part -------------- A non-text attachment was scrubbed... Name: ocfs2-remove-zerobuf.patch Type: application/octet-stream Size: 2281 bytes Desc: ocfs2-remove-zerobuf.patch Url : http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20040802/2a4b7901/ocfs2-remove-zerobuf.obj