]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/f2fs/segment.h
f2fs: cleanup the f2fs_bio_alloc routine
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 10 Dec 2012 00:26:05 +0000 (09:26 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 11 Dec 2012 04:43:45 +0000 (13:43 +0900)
commit3cd8a23948b29301f8f67b8d70c5c18fabbc05e1
treee4d9c11d55446e547b4a7830d733126f17ef3e37
parent457d08ee4fd91c8df17917ff2d32565e6adacbfc
f2fs: cleanup the f2fs_bio_alloc routine

Do cleanup more for better code readability.

- Change the parameter set of f2fs_bio_alloc()
  This function should allocate a bio only since it is not something like
  f2fs_bio_init(). Instead, the caller should initialize the allocated bio.

- Introduce SECTOR_FROM_BLOCK
  This macro translates a block address to its sector address.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Reviewed-by: Namjae Jeon <namjae.jeon@samsung.com>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/segment.h