f2fs: introduce f2fs_kmem_cache_alloc to hide the unfailed, kmem cache allocation
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Tue, 22 Oct 2013 06:52:26 +0000 (14:52 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 22 Oct 2013 11:16:02 +0000 (20:16 +0900)
Introduce the unfailed version of kmem_cache_alloc named f2fs_kmem_cache_alloc
to hide the retry routine and make the code a bit cleaner.

v2:
   Fix the wrong use of 'retry' tag pointed out by Gao feng.
   Use more neat code to remove redundant tag suggested by Haicheng Li.

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>

No differences found