f2fs: add f2fs_may_inline_{data, dentry}
This patch adds f2fs_may_inline_data and f2fs_may_inline_dentry. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
#include "f2fs.h"
|
||||
|
||||
bool f2fs_may_inline(struct inode *inode)
|
||||
bool f2fs_may_inline_data(struct inode *inode)
|
||||
{
|
||||
if (!test_opt(F2FS_I_SB(inode), INLINE_DATA))
|
||||
return false;
|
||||
@@ -30,6 +30,17 @@ bool f2fs_may_inline(struct inode *inode)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool f2fs_may_inline_dentry(struct inode *inode)
|
||||
{
|
||||
if (!test_opt(F2FS_I_SB(inode), INLINE_DENTRY))
|
||||
return false;
|
||||
|
||||
if (!S_ISDIR(inode->i_mode))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void read_inline_data(struct page *page, struct page *ipage)
|
||||
{
|
||||
void *src_addr, *dst_addr;
|
||||
|
Reference in New Issue
Block a user