From: Martin K. Petersen Date: Tue, 18 Sep 2012 16:19:26 +0000 (-0400) Subject: block: Consolidate command flag and queue limit checks for merges X-Git-Tag: v3.7-rc1~54^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f31dc1cd490539e2b62a126bc4dc2495b165d772;p=pandora-kernel.git block: Consolidate command flag and queue limit checks for merges - blk_check_merge_flags() verifies that cmd_flags / bi_rw are compatible. This function is called for both req-req and req-bio merging. - blk_rq_get_max_sectors() and blk_queue_get_max_sectors() can be used to query the maximum sector count for a given request or queue. The calls will return the right value from the queue limits given the type of command (RW, discard, write same, etc.) Signed-off-by: Martin K. Petersen Acked-by: Mike Snitzer Signed-off-by: Jens Axboe --- Reading git-diff-tree failed