diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-23 23:41:04 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-28 02:03:04 -0400 |
commit | a9841c4dbbdd8a2fb919ea305ffa95ab5ec80af2 (patch) | |
tree | ded1ade97f536d1288dc1c354a09dabd26538f20 /fs/f2fs | |
parent | f28c06fa6f3d3215a1ba5e62ebc5ce7229d7a895 (diff) |
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/f2fs')
-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 7b050298d6c9..92fd4e9285c0 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -37,7 +37,10 @@ | |||
37 | typecheck(unsigned long long, b) && \ | 37 | typecheck(unsigned long long, b) && \ |
38 | ((long long)((a) - (b)) > 0)) | 38 | ((long long)((a) - (b)) > 0)) |
39 | 39 | ||
40 | typedef u64 block_t; | 40 | typedef u32 block_t; /* |
41 | * should not change u32, since it is the on-disk block | ||
42 | * address format, __le32. | ||
43 | */ | ||
41 | typedef u32 nid_t; | 44 | typedef u32 nid_t; |
42 | 45 | ||
43 | struct f2fs_mount_info { | 46 | struct f2fs_mount_info { |