include: use get/put_unaligned_* helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: "John W. Linville" <linville@tuxdriver.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b7bbf8fa6b
commit
8b5ac31e27
3 changed files with 10 additions and 15 deletions
|
@ -526,8 +526,8 @@ struct item_head {
|
|||
** p is the array of __u32, i is the index into the array, v is the value
|
||||
** to store there.
|
||||
*/
|
||||
#define get_block_num(p, i) le32_to_cpu(get_unaligned((p) + (i)))
|
||||
#define put_block_num(p, i, v) put_unaligned(cpu_to_le32(v), (p) + (i))
|
||||
#define get_block_num(p, i) get_unaligned_le32((p) + (i))
|
||||
#define put_block_num(p, i, v) put_unaligned_le32((v), (p) + (i))
|
||||
|
||||
//
|
||||
// in old version uniqueness field shows key type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue