![]() |
|
|||
0001 /* 0002 * Copyright (C) 2011 Red Hat, Inc. 0003 * 0004 * This file is released under the GPL. 0005 */ 0006 0007 #ifndef _DM_PERSISTENT_DATA_INTERNAL_H 0008 #define _DM_PERSISTENT_DATA_INTERNAL_H 0009 0010 #include "dm-block-manager.h" 0011 0012 static inline unsigned dm_hash_block(dm_block_t b, unsigned hash_mask) 0013 { 0014 const unsigned BIG_PRIME = 4294967291UL; 0015 0016 return (((unsigned) b) * BIG_PRIME) & hash_mask; 0017 } 0018 0019 #endif /* _PERSISTENT_DATA_INTERNAL_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |