]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
dm log: avoid reinitialising io_req on every operation
authorTakahiro Yasui <tyasui@redhat.com>
Tue, 6 Jan 2009 03:04:59 +0000 (03:04 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 6 Jan 2009 03:04:59 +0000 (03:04 +0000)
commit6f3af01cb0eda0ec50fe1e4cbdf028269dc396fe
tree29988ebe5a40ee1092bdbeac45eb0bdc312ff670
parent10d3bd09a3c25df114f74f7f86e1b58d070bef32
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 <tyasui@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-log.c