summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-04-29 15:16:42 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2016-05-07 10:32:20 -0700
commit0414b004a894746921bbc05f05dced1e7907b092 (patch)
tree2ddc7616360f01d41b8e56a188d1595b3afdf474 /fs/f2fs/f2fs.h
parentf00d6fa727a4c4977241bd21910cafc139f77989 (diff)
downloadblackbird-op-linux-0414b004a894746921bbc05f05dced1e7907b092.tar.gz
blackbird-op-linux-0414b004a894746921bbc05f05dced1e7907b092.zip
f2fs: introduce f2fs_kmalloc to wrap kmalloc
This patch adds f2fs_kmalloc. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 6a482411e6d4..879e4d77a1bc 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -1644,6 +1644,11 @@ static inline bool f2fs_may_extent_tree(struct inode *inode)
return S_ISREG(inode->i_mode);
}
+static inline void *f2fs_kmalloc(size_t size, gfp_t flags)
+{
+ return kmalloc(size, flags);
+}
+
static inline void *f2fs_kvmalloc(size_t size, gfp_t flags)
{
void *ret;
OpenPOWER on IntegriCloud