Changeset 6f13257 in mainline for uspace/srv/bd/hr/raid5.c


Ignore:
Timestamp:
2025-05-20T11:01:31Z (2 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
c5b60e25
Parents:
a2281efc
git-author:
Miroslav Cimerman <mc@…> (2025-05-20 10:55:15)
git-committer:
Miroslav Cimerman <mc@…> (2025-05-20 11:01:31)
Message:

hr: cstyle: don't align struct members and fcn decls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/raid5.c

    ra2281efc r6f13257  
    5454#include "var.h"
    5555
    56 static errno_t  hr_raid5_vol_usable(hr_volume_t *);
    57 static ssize_t  hr_raid5_get_bad_ext(hr_volume_t *);
    58 static errno_t  hr_raid5_update_vol_state(hr_volume_t *);
    59 static void     hr_raid5_handle_extent_error(hr_volume_t *, size_t, errno_t);
    60 static void     xor(void *, const void *, size_t);
    61 static errno_t  hr_raid5_read_degraded(hr_volume_t *, uint64_t, uint64_t,
     56static errno_t hr_raid5_vol_usable(hr_volume_t *);
     57static ssize_t hr_raid5_get_bad_ext(hr_volume_t *);
     58static errno_t hr_raid5_update_vol_state(hr_volume_t *);
     59static void hr_raid5_handle_extent_error(hr_volume_t *, size_t, errno_t);
     60static void xor(void *, const void *, size_t);
     61
     62static errno_t hr_raid5_read_degraded(hr_volume_t *, uint64_t, uint64_t,
    6263    void *, size_t);
    63 static errno_t  hr_raid5_write(hr_volume_t *, uint64_t, uint64_t, aoff64_t,
     64static errno_t hr_raid5_write(hr_volume_t *, uint64_t, uint64_t, aoff64_t,
    6465    const void *, size_t);
    65 static errno_t  hr_raid5_write_parity(hr_volume_t *, uint64_t, uint64_t,
     66static errno_t hr_raid5_write_parity(hr_volume_t *, uint64_t, uint64_t,
    6667    uint64_t, const void *, size_t);
    67 static errno_t  hr_raid5_bd_op(hr_bd_op_type_t, bd_srv_t *, aoff64_t, size_t,
     68static errno_t hr_raid5_bd_op(hr_bd_op_type_t, bd_srv_t *, aoff64_t, size_t,
    6869    void *, const void *, size_t);
    69 static errno_t  hr_raid5_rebuild(void *);
     70static errno_t hr_raid5_rebuild(void *);
    7071
    7172/* bdops */
    72 static errno_t  hr_raid5_bd_open(bd_srvs_t *, bd_srv_t *);
    73 static errno_t  hr_raid5_bd_close(bd_srv_t *);
    74 static errno_t  hr_raid5_bd_read_blocks(bd_srv_t *, aoff64_t, size_t, void *,
     73static errno_t hr_raid5_bd_open(bd_srvs_t *, bd_srv_t *);
     74static errno_t hr_raid5_bd_close(bd_srv_t *);
     75static errno_t hr_raid5_bd_read_blocks(bd_srv_t *, aoff64_t, size_t, void *,
    7576    size_t);
    76 static errno_t  hr_raid5_bd_sync_cache(bd_srv_t *, aoff64_t, size_t);
    77 static errno_t  hr_raid5_bd_write_blocks(bd_srv_t *, aoff64_t, size_t,
     77static errno_t hr_raid5_bd_sync_cache(bd_srv_t *, aoff64_t, size_t);
     78static errno_t hr_raid5_bd_write_blocks(bd_srv_t *, aoff64_t, size_t,
    7879    const void *, size_t);
    79 static errno_t  hr_raid5_bd_get_block_size(bd_srv_t *, size_t *);
    80 static errno_t  hr_raid5_bd_get_num_blocks(bd_srv_t *, aoff64_t *);
     80static errno_t hr_raid5_bd_get_block_size(bd_srv_t *, size_t *);
     81static errno_t hr_raid5_bd_get_num_blocks(bd_srv_t *, aoff64_t *);
    8182
    8283static bd_ops_t hr_raid5_bd_ops = {
    83         .open           = hr_raid5_bd_open,
    84         .close          = hr_raid5_bd_close,
    85         .sync_cache     = hr_raid5_bd_sync_cache,
    86         .read_blocks    = hr_raid5_bd_read_blocks,
    87         .write_blocks   = hr_raid5_bd_write_blocks,
    88         .get_block_size = hr_raid5_bd_get_block_size,
    89         .get_num_blocks = hr_raid5_bd_get_num_blocks
     84        .open = hr_raid5_bd_open,
     85        .close = hr_raid5_bd_close,
     86        .sync_cache = hr_raid5_bd_sync_cache,
     87        .read_blocks = hr_raid5_bd_read_blocks,
     88        .write_blocks = hr_raid5_bd_write_blocks,
     89        .get_block_size = hr_raid5_bd_get_block_size,
     90        .get_num_blocks = hr_raid5_bd_get_num_blocks
    9091};
    9192
Note: See TracChangeset for help on using the changeset viewer.