mirror of https://github.com/schoebel/mars
all: fix braces
This commit is contained in:
parent
d1c5f15ee1
commit
b491f4f816
|
@ -244,9 +244,8 @@ int generic_register_brick_type(const struct generic_brick_type *new_type)
|
|||
found = i;
|
||||
continue;
|
||||
}
|
||||
if (!strcmp(brick_types[i]->type_name, new_type->type_name)) {
|
||||
if (!strcmp(brick_types[i]->type_name, new_type->type_name))
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (found < 0) {
|
||||
if (nr_brick_types >= MAX_BRICK_TYPES) {
|
||||
|
|
|
@ -340,13 +340,11 @@ void _bio_io_io(struct bio_output *output, struct aio_object *aio, bool cork)
|
|||
bio_get(bio);
|
||||
|
||||
rw = aio->io_rw & 1;
|
||||
if (brick->do_noidle && !cork) {
|
||||
if (brick->do_noidle && !cork)
|
||||
rw |= REQ_NOIDLE;
|
||||
}
|
||||
if (!aio->io_skip_sync) {
|
||||
if (brick->do_sync) {
|
||||
if (brick->do_sync)
|
||||
rw |= REQ_SYNC;
|
||||
}
|
||||
}
|
||||
|
||||
aio_a->start_stamp = cpu_clock(raw_smp_processor_id());
|
||||
|
|
|
@ -369,9 +369,8 @@ blk_qc_t if_make_request(struct request_queue *q, struct bio *bio)
|
|||
if (tmp_a->orig_page != page || tmp_aio->io_rw != rw || tmp_a->bio_count >= MAX_BIO || tmp_a->current_len + bv_len > tmp_a->max_len)
|
||||
continue;
|
||||
|
||||
if (tmp_aio->io_data + tmp_a->current_len == data) {
|
||||
if (tmp_aio->io_data + tmp_a->current_len == data)
|
||||
goto merge_end;
|
||||
}
|
||||
continue;
|
||||
|
||||
merge_end:
|
||||
|
|
Loading…
Reference in New Issue