]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: remove the ugly pointer conversion
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 3 Feb 2014 01:50:22 +0000 (10:50 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 17 Feb 2014 05:58:52 +0000 (14:58 +0900)
commitc7b856ebdab61971215d307cb450e8f845ed14f8
tree27587baf23c768fdd26dfdc615959bb6f243bd19
parentc219a03831a9e5c90e9f9f2bf6947ef851001ded
f2fs: remove the ugly pointer conversion

This patch modifies the use of bi_private to remove pointer chasing for sbi.
Previously, we had a bi_private structure, but it needs memory allocation.
So this patch uses bi_private by the sbi pointer and adds a completion pointer
into the sbi.
This can achieve no memory allocation and nice use of the bi_private.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/data.c
fs/f2fs/f2fs.h