{"action":"closed","issue":{"url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/issues/139","repository_url":"https://api.github.com/repos/akiradeveloper/dm-writeboost","labels_url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/issues/139/comments","events_url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/issues/139/events","html_url":"https://github.com/akiradeveloper/dm-writeboost/issues/139","id":171038412,"number":139,"title":"ht_get_head is too inefficient","user":{"login":"akiradeveloper","id":785824,"avatar_url":"https://avatars.githubusercontent.com/u/785824?v=3","gravatar_id":"","url":"https://api.github.com/users/akiradeveloper","html_url":"https://github.com/akiradeveloper","followers_url":"https://api.github.com/users/akiradeveloper/followers","following_url":"https://api.github.com/users/akiradeveloper/following{/other_user}","gists_url":"https://api.github.com/users/akiradeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/akiradeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akiradeveloper/subscriptions","organizations_url":"https://api.github.com/users/akiradeveloper/orgs","repos_url":"https://api.github.com/users/akiradeveloper/repos","events_url":"https://api.github.com/users/akiradeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/akiradeveloper/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/milestones/11","html_url":"https://github.com/akiradeveloper/dm-writeboost/milestones/v2.2.4","labels_url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/milestones/11/labels","id":1928056,"number":11,"title":"v2.2.4","description":null,"creator":{"login":"akiradeveloper","id":785824,"avatar_url":"https://avatars.githubusercontent.com/u/785824?v=3","gravatar_id":"","url":"https://api.github.com/users/akiradeveloper","html_url":"https://github.com/akiradeveloper","followers_url":"https://api.github.com/users/akiradeveloper/followers","following_url":"https://api.github.com/users/akiradeveloper/following{/other_user}","gists_url":"https://api.github.com/users/akiradeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/akiradeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akiradeveloper/subscriptions","organizations_url":"https://api.github.com/users/akiradeveloper/orgs","repos_url":"https://api.github.com/users/akiradeveloper/repos","events_url":"https://api.github.com/users/akiradeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/akiradeveloper/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":4,"state":"open","created_at":"2016-08-08T02:44:31Z","updated_at":"2016-08-28T07:34:54Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-08-14T02:31:22Z","updated_at":"2016-08-28T07:34:54Z","closed_at":"2016-08-28T07:34:54Z","body":"```c\r\nstruct ht_head *ht_get_head(struct wb_device *wb, struct lookup_key *key)\r\n{\r\n\tu32 idx;\r\n\tdiv_u64_rem(key->sector, wb->htsize, &idx);\r\n\treturn large_array_at(wb->htable, idx);\r\n}\r\n```\r\n\r\nthe `key->sector` is multiple of 8 because cache block is 4KB in size. To fairly distribute the return value, we should use `div_u64_rem(key->sector >> 3, ...)`"}}
{"actor":{"display_login":"akiradeveloper"}}