diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-24 12:41:04 +0900 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2015-05-02 14:34:35 +0200 |
commit | 5bda8c04ac66e08367c39f77200aca8ec0b575fa (patch) | |
tree | c949b93eac0a323f74a333396b2fc16e597b9d9e /include | |
parent | 86c59b4583167a7692c5d79cac2c67beb5d2f072 (diff) | |
download | kernel_samsung_tuna-5bda8c04ac66e08367c39f77200aca8ec0b575fa.zip kernel_samsung_tuna-5bda8c04ac66e08367c39f77200aca8ec0b575fa.tar.gz kernel_samsung_tuna-5bda8c04ac66e08367c39f77200aca8ec0b575fa.tar.bz2 |
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')
-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 df6fab8..383d5e3 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) |