[LU-10295] Remove the specified entry from ZAP directly Created: 29/Nov/17 Updated: 12/Dec/17 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major |
| Reporter: | nasf (Inactive) | Assignee: | WC Triage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Epic: | zfs |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
Currently, zap_remove()/zap_remove_by_dnode() will lookup the specified index (or name) to locate the entry internally, then remove the found entry. In fact, for most of cases, the caller has already performed lookup before calling zap_remove()/zap_remove_by_dnode(). But related lookup result cannot be reused by the zap_remove()/zap_remove_by_dnode(). If we can extend ZAP remove API to recognize the former lookup result, and remove the specified entry directly, then the unlink/delete performance can be improved. |
| Comments |
| Comment by Andreas Dilger [ 30/Nov/17 ] |
|
I would file this ticket as an issue in the Github zfsonlinux issue tracker, and then get feedback from Brian and Matt whether they would accept such an API? |
| Comment by nasf (Inactive) [ 12/Dec/17 ] |