{"action":"created","comment":{"url":"https://api.github.com/repos/theairkit/zfs/pulls/comments/44385060","id":44385060,"diff_hunk":"@@ -557,10 +614,17 @@ zpl_putpage(struct page *pp, struct writeback_control *wbc, void *data)\n {\n \tstruct address_space *mapping = data;\n \tfstrans_cookie_t cookie;\n+\tuint64_t write_rate;\n+\tstruct inode *inode = mapping->host;\n+\tzfs_sb_t *zsb = ITOZSB(inode);\n \n \tASSERT(PageLocked(pp));\n \tASSERT(!PageWriteback(pp));\n \n+\tdsl_prop_get_integer(zsb->z_mntopts->z_osname, \"max_write_ops\",","path":"module/zfs/zpl_file.c","position":109,"original_position":109,"commit_id":"a464dab0a2d84e0ec71c48811e8e138dcb02a4ff","original_commit_id":"a464dab0a2d84e0ec71c48811e8e138dcb02a4ff","user":{"login":"theairkit","id":3401239,"avatar_url":"https://avatars.githubusercontent.com/u/3401239?v=3","gravatar_id":"","url":"https://api.github.com/users/theairkit","html_url":"https://github.com/theairkit","followers_url":"https://api.github.com/users/theairkit/followers","following_url":"https://api.github.com/users/theairkit/following{/other_user}","gists_url":"https://api.github.com/users/theairkit/gists{/gist_id}","starred_url":"https://api.github.com/users/theairkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theairkit/subscriptions","organizations_url":"https://api.github.com/users/theairkit/orgs","repos_url":"https://api.github.com/users/theairkit/repos","events_url":"https://api.github.com/users/theairkit/events{/privacy}","received_events_url":"https://api.github.com/users/theairkit/received_events","type":"User","site_admin":false},"body":"точно, упустил, в других местах ведь и проверяю","created_at":"2015-11-10T09:27:47Z","updated_at":"2015-11-10T09:27:47Z","html_url":"https://github.com/theairkit/zfs/pull/3#discussion_r44385060","pull_request_url":"https://api.github.com/repos/theairkit/zfs/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/theairkit/zfs/pulls/comments/44385060"},"html":{"href":"https://github.com/theairkit/zfs/pull/3#discussion_r44385060"},"pull_request":{"href":"https://api.github.com/repos/theairkit/zfs/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/theairkit/zfs/pulls/3","id":50104022,"html_url":"https://github.com/theairkit/zfs/pull/3","diff_url":"https://github.com/theairkit/zfs/pull/3.diff","patch_url":"https://github.com/theairkit/zfs/pull/3.patch","issue_url":"https://api.github.com/repos/theairkit/zfs/issues/3","number":3,"state":"open","locked":false,"title":"zfs throttling implementation","user":{"login":"theairkit","id":3401239,"avatar_url":"https://avatars.githubusercontent.com/u/3401239?v=3","gravatar_id":"","url":"https://api.github.com/users/theairkit","html_url":"https://github.com/theairkit","followers_url":"https://api.github.com/users/theairkit/followers","following_url":"https://api.github.com/users/theairkit/following{/other_user}","gists_url":"https://api.github.com/users/theairkit/gists{/gist_id}","starred_url":"https://api.github.com/users/theairkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theairkit/subscriptions","organizations_url":"https://api.github.com/users/theairkit/orgs","repos_url":"https://api.github.com/users/theairkit/repos","events_url":"https://api.github.com/users/theairkit/events{/privacy}","received_events_url":"https://api.github.com/users/theairkit/received_events","type":"User","site_admin":false},"body":"ZFS throttling implementation (zpl-layer, through semaphores).\r\n","created_at":"2015-11-09T10:08:18Z","updated_at":"2015-11-10T09:27:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b674d6ed7183cd1827b07814a2576a47eb08079f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/theairkit/zfs/pulls/3/commits","review_comments_url":"https://api.github.com/repos/theairkit/zfs/pulls/3/comments","review_comment_url":"https://api.github.com/repos/theairkit/zfs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theairkit/zfs/issues/3/comments","statuses_url":"https://api.github.com/repos/theairkit/zfs/statuses/a464dab0a2d84e0ec71c48811e8e138dcb02a4ff","head":{"label":"theairkit:zpl-io-throttle","ref":"zpl-io-throttle","sha":"a464dab0a2d84e0ec71c48811e8e138dcb02a4ff","user":{"login":"theairkit","id":3401239,"avatar_url":"https://avatars.githubusercontent.com/u/3401239?v=3","gravatar_id":"","url":"https://api.github.com/users/theairkit","html_url":"https://github.com/theairkit","followers_url":"https://api.github.com/users/theairkit/followers","following_url":"https://api.github.com/users/theairkit/following{/other_user}","gists_url":"https://api.github.com/users/theairkit/gists{/gist_id}","starred_url":"https://api.github.com/users/theairkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theairkit/subscriptions","organizations_url":"https://api.github.com/users/theairkit/orgs","repos_url":"https://api.github.com/users/theairkit/repos","events_url":"https://api.github.com/users/theairkit/events{/privacy}","received_events_url":"https://api.github.com/users/theairkit/received_events","type":"User","site_admin":false},"repo":{"id":44066344,"name":"zfs","full_name":"theairkit/zfs","owner":{"login":"theairkit","id":3401239,"avatar_url":"https://avatars.githubusercontent.com/u/3401239?v=3","gravatar_id":"","url":"https://api.github.com/users/theairkit","html_url":"https://github.com/theairkit","followers_url":"https://api.github.com/users/theairkit/followers","following_url":"https://api.github.com/users/theairkit/following{/other_user}","gists_url":"https://api.github.com/users/theairkit/gists{/gist_id}","starred_url":"https://api.github.com/users/theairkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theairkit/subscriptions","organizations_url":"https://api.github.com/users/theairkit/orgs","repos_url":"https://api.github.com/users/theairkit/repos","events_url":"https://api.github.com/users/theairkit/events{/privacy}","received_events_url":"https://api.github.com/users/theairkit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/theairkit/zfs","description":"Native ZFS for Linux","fork":true,"url":"https://api.github.com/repos/theairkit/zfs","forks_url":"https://api.github.com/repos/theairkit/zfs/forks","keys_url":"https://api.github.com/repos/theairkit/zfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theairkit/zfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theairkit/zfs/teams","hooks_url":"https://api.github.com/repos/theairkit/zfs/hooks","issue_events_url":"https://api.github.com/repos/theairkit/zfs/issues/events{/number}","events_url":"https://api.github.com/repos/theairkit/zfs/events","assignees_url":"https://api.github.com/repos/theairkit/zfs/assignees{/user}","branches_url":"https://api.github.com/repos/theairkit/zfs/branches{/branch}","tags_url":"https://api.github.com/repos/theairkit/zfs/tags","blobs_url":"https://api.github.com/repos/theairkit/zfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theairkit/zfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theairkit/zfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/theairkit/zfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theairkit/zfs/statuses/{sha}","languages_url":"https://api.github.com/repos/theairkit/zfs/languages","stargazers_url":"https://api.github.com/repos/theairkit/zfs/stargazers","contributors_url":"https://api.github.com/repos/theairkit/zfs/contributors","subscribers_url":"https://api.github.com/repos/theairkit/zfs/subscribers","subscription_url":"https://api.github.com/repos/theairkit/zfs/subscription","commits_url":"https://api.github.com/repos/theairkit/zfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/theairkit/zfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/theairkit/zfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/theairkit/zfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/theairkit/zfs/contents/{+path}","compare_url":"https://api.github.com/repos/theairkit/zfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theairkit/zfs/merges","archive_url":"https://api.github.com/repos/theairkit/zfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theairkit/zfs/downloads","issues_url":"https://api.github.com/repos/theairkit/zfs/issues{/number}","pulls_url":"https://api.github.com/repos/theairkit/zfs/pulls{/number}","milestones_url":"https://api.github.com/repos/theairkit/zfs/milestones{/number}","notifications_url":"https://api.github.com/repos/theairkit/zfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theairkit/zfs/labels{/name}","releases_url":"https://api.github.com/repos/theairkit/zfs/releases{/id}","created_at":"2015-10-11T19:29:41Z","updated_at":"2015-10-18T23:07:43Z","pushed_at":"2015-11-10T09:17:01Z","git_url":"git://github.com/theairkit/zfs.git","ssh_url":"git@github.com:theairkit/zfs.git","clone_url":"https://github.com/theairkit/zfs.git","svn_url":"https://github.com/theairkit/zfs","homepage":"http://zfsonlinux.org/","size":26088,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"theairkit:master","ref":"master","sha":"8f90f7372a1b456ec6ede5e5464ffa23273a7a99","user":{"login":"theairkit","id":3401239,"avatar_url":"https://avatars.githubusercontent.com/u/3401239?v=3","gravatar_id":"","url":"https://api.github.com/users/theairkit","html_url":"https://github.com/theairkit","followers_url":"https://api.github.com/users/theairkit/followers","following_url":"https://api.github.com/users/theairkit/following{/other_user}","gists_url":"https://api.github.com/users/theairkit/gists{/gist_id}","starred_url":"https://api.github.com/users/theairkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theairkit/subscriptions","organizations_url":"https://api.github.com/users/theairkit/orgs","repos_url":"https://api.github.com/users/theairkit/repos","events_url":"https://api.github.com/users/theairkit/events{/privacy}","received_events_url":"https://api.github.com/users/theairkit/received_events","type":"User","site_admin":false},"repo":{"id":44066344,"name":"zfs","full_name":"theairkit/zfs","owner":{"login":"theairkit","id":3401239,"avatar_url":"https://avatars.githubusercontent.com/u/3401239?v=3","gravatar_id":"","url":"https://api.github.com/users/theairkit","html_url":"https://github.com/theairkit","followers_url":"https://api.github.com/users/theairkit/followers","following_url":"https://api.github.com/users/theairkit/following{/other_user}","gists_url":"https://api.github.com/users/theairkit/gists{/gist_id}","starred_url":"https://api.github.com/users/theairkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theairkit/subscriptions","organizations_url":"https://api.github.com/users/theairkit/orgs","repos_url":"https://api.github.com/users/theairkit/repos","events_url":"https://api.github.com/users/theairkit/events{/privacy}","received_events_url":"https://api.github.com/users/theairkit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/theairkit/zfs","description":"Native ZFS for Linux","fork":true,"url":"https://api.github.com/repos/theairkit/zfs","forks_url":"https://api.github.com/repos/theairkit/zfs/forks","keys_url":"https://api.github.com/repos/theairkit/zfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theairkit/zfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theairkit/zfs/teams","hooks_url":"https://api.github.com/repos/theairkit/zfs/hooks","issue_events_url":"https://api.github.com/repos/theairkit/zfs/issues/events{/number}","events_url":"https://api.github.com/repos/theairkit/zfs/events","assignees_url":"https://api.github.com/repos/theairkit/zfs/assignees{/user}","branches_url":"https://api.github.com/repos/theairkit/zfs/branches{/branch}","tags_url":"https://api.github.com/repos/theairkit/zfs/tags","blobs_url":"https://api.github.com/repos/theairkit/zfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theairkit/zfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theairkit/zfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/theairkit/zfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theairkit/zfs/statuses/{sha}","languages_url":"https://api.github.com/repos/theairkit/zfs/languages","stargazers_url":"https://api.github.com/repos/theairkit/zfs/stargazers","contributors_url":"https://api.github.com/repos/theairkit/zfs/contributors","subscribers_url":"https://api.github.com/repos/theairkit/zfs/subscribers","subscription_url":"https://api.github.com/repos/theairkit/zfs/subscription","commits_url":"https://api.github.com/repos/theairkit/zfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/theairkit/zfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/theairkit/zfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/theairkit/zfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/theairkit/zfs/contents/{+path}","compare_url":"https://api.github.com/repos/theairkit/zfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theairkit/zfs/merges","archive_url":"https://api.github.com/repos/theairkit/zfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theairkit/zfs/downloads","issues_url":"https://api.github.com/repos/theairkit/zfs/issues{/number}","pulls_url":"https://api.github.com/repos/theairkit/zfs/pulls{/number}","milestones_url":"https://api.github.com/repos/theairkit/zfs/milestones{/number}","notifications_url":"https://api.github.com/repos/theairkit/zfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theairkit/zfs/labels{/name}","releases_url":"https://api.github.com/repos/theairkit/zfs/releases{/id}","created_at":"2015-10-11T19:29:41Z","updated_at":"2015-10-18T23:07:43Z","pushed_at":"2015-11-10T09:17:01Z","git_url":"git://github.com/theairkit/zfs.git","ssh_url":"git@github.com:theairkit/zfs.git","clone_url":"https://github.com/theairkit/zfs.git","svn_url":"https://github.com/theairkit/zfs","homepage":"http://zfsonlinux.org/","size":26088,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theairkit/zfs/pulls/3"},"html":{"href":"https://github.com/theairkit/zfs/pull/3"},"issue":{"href":"https://api.github.com/repos/theairkit/zfs/issues/3"},"comments":{"href":"https://api.github.com/repos/theairkit/zfs/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/theairkit/zfs/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/theairkit/zfs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theairkit/zfs/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/theairkit/zfs/statuses/a464dab0a2d84e0ec71c48811e8e138dcb02a4ff"}}}}