diff options
author | Takahiro Yasui <tyasui@redhat.com> | 2009-01-06 03:04:59 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-01-06 03:04:59 +0000 |
commit | 6f3af01cb0eda0ec50fe1e4cbdf028269dc396fe (patch) | |
tree | 29988ebe5a40ee1092bdbeac45eb0bdc312ff670 /drivers/amba | |
parent | 10d3bd09a3c25df114f74f7f86e1b58d070bef32 (diff) |
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>
Diffstat (limited to 'drivers/amba')
0 files changed, 0 insertions, 0 deletions