diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-24 12:41:04 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-03-20 17:34:37 +0900 |
commit | e08d4dced931ed0ac94199aeef9ee2e3b1000093 (patch) | |
tree | 9dd45755525468923c0b848db1e5e14ec1133442 /fs | |
parent | b2e6ba5c98e477e286c4273b19bdc5472544c656 (diff) | |
download | linux-3.10-e08d4dced931ed0ac94199aeef9ee2e3b1000093.tar.gz linux-3.10-e08d4dced931ed0ac94199aeef9ee2e3b1000093.tar.bz2 linux-3.10-e08d4dced931ed0ac94199aeef9ee2e3b1000093.zip |
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 'fs')
-rw-r--r-- | fs/f2fs/f2fs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 7b050298d6c..92fd4e9285c 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -37,7 +37,10 @@ typecheck(unsigned long long, b) && \ ((long long)((a) - (b)) > 0)) -typedef u64 block_t; +typedef u32 block_t; /* + * should not change u32, since it is the on-disk block + * address format, __le32. + */ typedef u32 nid_t; struct f2fs_mount_info { |