[LU-2311] clean up MDD orphan handling code style Created: 12/Nov/12  Updated: 03/Jan/18  Resolved: 03/Jan/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Andreas Dilger
Resolution: Duplicate Votes: 0
Labels: easy

Issue Links:
Related
is related to LU-7787 There is space in the middle of filen... Resolved
is related to LU-3022 osd_handler.c:2534:osd_object_ref_del... Resolved
Rank (Obsolete): 5525

 Description   

Clean up the code style of the MDD orphan handling, since there are numerous extraneous wrapper functions and abstractions that do not improve the code readability, and functions that are used outside of mdd_orphan.c should keep the mdd_ prefix for consistency.

Also the orphan nlink handling in osd_object_ref_{add,del}(), which is based on ldiskfs_{inc,dec}_link(), is missing a fix compared to the upstream kernel, and is implemented in a manner that is more complex than needed.



 Comments   
Comment by Andreas Dilger [ 22/Jun/13 ]

http://review.whamcloud.com/4674

Comment by Andreas Dilger [ 03/Jan/18 ]

This will be fixed as part of LU-7787.

Generated at Sat Feb 10 01:24:09 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.