[Ocfs2-devel] Two questions about ocfs2_extent_map_insert_rec

Shichangkuo shi.changkuo at h3c.com
Wed Mar 14 03:13:00 PDT 2018


Hi All,
    When the extent_rec cannot be merged, we allocate a new item and add it into the em_list, then set it to NULL.
    It looks strange, and may cause null pointer exception if we access it again.
    Another doubt is the ip_lock was unlocked before allocating and was re-locked before searching again, does it necessary?
    I have no idea about the initial purpose and also don't know how to test it if I changed the code.
    Does someone help me?

Thanks.
Changkuo
-------------------------------------------------------------------------------------------------------------------------------------
本邮件及其附件含有新华三技术有限公司的保密信息,仅限于发送给上面地址中列出
的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、
或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本
邮件!
This e-mail and its attachments contain confidential information from New H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!


More information about the Ocfs2-devel mailing list