Shichangkuo
2018-Mar-14 10:13 UTC
[Ocfs2-devel] Two questions about ocfs2_extent_map_insert_rec
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!