From: Takahiro Yasui Date: Tue, 6 Jan 2009 03:04:59 +0000 (+0000) Subject: dm log: avoid reinitialising io_req on every operation X-Git-Tag: v2.6.29-rc1~492^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f3af01cb0eda0ec50fe1e4cbdf028269dc396fe;p=pandora-kernel.git dm log: avoid reinitialising io_req on every operation rw_header function updates three members of io_req data every time when I/O is processed. bi_rw and notify.fn are never modified once they get initialized, and so they can be set in advance. header_to_disk() can also be pulled out of write_header() since only one caller needs it and write_header() can be replaced by rw_header() directly. Signed-off-by: Takahiro Yasui Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed