cregit-Linux how code gets into the kernel

Release 4.7 drivers/md/dm-cache-block-types.h

Directory: drivers/md
/*
 * Copyright (C) 2012 Red Hat, Inc.
 *
 * This file is released under the GPL.
 */

#ifndef DM_CACHE_BLOCK_TYPES_H

#define DM_CACHE_BLOCK_TYPES_H

#include "persistent-data/dm-block-manager.h"

/*----------------------------------------------------------------*/

/*
 * It's helpful to get sparse to differentiate between indexes into the
 * origin device, indexes into the cache device, and indexes into the
 * discard bitset.
 */


typedef dm_block_t __bitwise__ dm_oblock_t;

typedef uint32_t __bitwise__ dm_cblock_t;

typedef dm_block_t __bitwise__ dm_dblock_t;


static inline dm_oblock_t to_oblock(dm_block_t b) { return (__force dm_oblock_t) b; }

Contributors

PersonTokensPropCommitsCommitProp
joe thornberjoe thornber17100.00%1100.00%
Total17100.00%1100.00%


static inline dm_block_t from_oblock(dm_oblock_t b) { return (__force dm_block_t) b; }

Contributors

PersonTokensPropCommitsCommitProp
joe thornberjoe thornber17100.00%1100.00%
Total17100.00%1100.00%


static inline dm_cblock_t to_cblock(uint32_t b) { return (__force dm_cblock_t) b; }

Contributors

PersonTokensPropCommitsCommitProp
joe thornberjoe thornber17100.00%1100.00%
Total17100.00%1100.00%


static inline uint32_t from_cblock(dm_cblock_t b) { return (__force uint32_t) b; }

Contributors

PersonTokensPropCommitsCommitProp
joe thornberjoe thornber17100.00%1100.00%
Total17100.00%1100.00%


static inline dm_dblock_t to_dblock(dm_block_t b) { return (__force dm_dblock_t) b; }

Contributors

PersonTokensPropCommitsCommitProp
joe thornberjoe thornber17100.00%1100.00%
Total17100.00%1100.00%


static inline dm_block_t from_dblock(dm_dblock_t b) { return (__force dm_block_t) b; }

Contributors

PersonTokensPropCommitsCommitProp
joe thornberjoe thornber17100.00%1100.00%
Total17100.00%1100.00%

#endif /* DM_CACHE_BLOCK_TYPES_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
joe thornberjoe thornber132100.00%2100.00%
Total132100.00%2100.00%
Directory: drivers/md
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}