]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/f2fs/data.c
f2fs: fix endian conversion bugs reported by sparse
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 28 Nov 2012 07:12:41 +0000 (16:12 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 11 Dec 2012 04:43:42 +0000 (13:43 +0900)
commit25ca923b2a766b9c93b63777ead351137533a623
tree6414cd58a9573177310a9f0ccfdfaca9cf45eb70
parentcf0e3a64cad19acd5904946d0647d751c1671620
f2fs: fix endian conversion bugs reported by sparse

This patch should resolve the bugs reported by the sparse tool.
Initial reports were written by "kbuild test robot" managed by fengguang.wu.

In my local machines, I've tested also by running:
> make C=2 CF="-D__CHECK_ENDIAN__"

Accordingly, I've found lots of warnings and bugs related to the endian
conversion. And I've fixed all at this moment.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
12 files changed:
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/debug.c
fs/f2fs/dir.c
fs/f2fs/f2fs.h
fs/f2fs/hash.c
fs/f2fs/node.c
fs/f2fs/node.h
fs/f2fs/recovery.c
fs/f2fs/segment.c
fs/f2fs/super.c
include/linux/f2fs_fs.h