diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-24 07:41:04 +0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-28 10:03:04 +0400 |
commit | a9841c4dbbdd8a2fb919ea305ffa95ab5ec80af2 (patch) | |
tree | ded1ade97f536d1288dc1c354a09dabd26538f20 /include/linux | |
parent | f28c06fa6f3d3215a1ba5e62ebc5ce7229d7a895 (diff) | |
download | linux-a9841c4dbbdd8a2fb919ea305ffa95ab5ec80af2.tar.xz |
f2fs: align data types between on-disk and in-memory block addresses
The on-disk block address is defined as __le32, but in-memory block address,
block_t, does as u64.
Let's synchronize them to 32 bits.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/f2fs_fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h index df6fab82f87e..383d5e39b280 100644 --- a/include/linux/f2fs_fs.h +++ b/include/linux/f2fs_fs.h @@ -20,8 +20,8 @@ #define F2FS_BLKSIZE 4096 /* support only 4KB block */ #define F2FS_MAX_EXTENSION 64 /* # of extension entries */ -#define NULL_ADDR 0x0U -#define NEW_ADDR -1U +#define NULL_ADDR ((block_t)0) /* used as block_t addresses */ +#define NEW_ADDR ((block_t)-1) /* used as block_t addresses */ #define F2FS_ROOT_INO(sbi) (sbi->root_ino_num) #define F2FS_NODE_INO(sbi) (sbi->node_ino_num) |