From: FUJITA Tomonori Date: Tue, 29 Apr 2008 07:54:35 +0000 (+0200) Subject: block: no need to initialize rq->cmd in prepare_flush_fn hook X-Git-Tag: v2.6.26-rc1~372^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4917fa292558593d36b2880977ea206f7727dbe5;p=pandora-kernel.git block: no need to initialize rq->cmd in prepare_flush_fn hook The block layer initializes rq->cmd (queue_flush calls rq_init) so prepare_flush_fn hooks don't need to do that. The purpose of this patch is to remove sizeof(rq->cmd), as a preparation for large command support, which changes rq->cmd from the static array to a pointer. sizeof(rq->cmd) will not make sense. Signed-off-by: FUJITA Tomonori Cc: Geert Uytterhoeven Cc: James Bottomley Cc: Jens Axboe Signed-off-by: Jens Axboe --- Reading git-diff-tree failed