diff options
author | Tao Ma <boyu.mt@taobao.com> | 2012-12-10 14:06:03 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-12-10 14:06:03 -0500 |
commit | f08225d176a5736363beea653b9b3fb9400c1255 (patch) | |
tree | 45bb82a700ad915fe025c48fa9012dd0de01b06d /fs | |
parent | 0c8d414f163f5d35e43a4de7a6e5ee8c253fcccf (diff) |
ext4: enable ext4 inline support
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/ext4.h | 3 | ||||
-rw-r--r-- | fs/ext4/ialloc.c | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 6cfe546282dc..b90e2720b826 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -1529,7 +1529,8 @@ static inline void ext4_clear_state_flags(struct ext4_inode_info *ei) | |||
1529 | EXT4_FEATURE_INCOMPAT_EXTENTS| \ | 1529 | EXT4_FEATURE_INCOMPAT_EXTENTS| \ |
1530 | EXT4_FEATURE_INCOMPAT_64BIT| \ | 1530 | EXT4_FEATURE_INCOMPAT_64BIT| \ |
1531 | EXT4_FEATURE_INCOMPAT_FLEX_BG| \ | 1531 | EXT4_FEATURE_INCOMPAT_FLEX_BG| \ |
1532 | EXT4_FEATURE_INCOMPAT_MMP) | 1532 | EXT4_FEATURE_INCOMPAT_MMP | \ |
1533 | EXT4_FEATURE_INCOMPAT_INLINE_DATA) | ||
1533 | #define EXT4_FEATURE_RO_COMPAT_SUPP (EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER| \ | 1534 | #define EXT4_FEATURE_RO_COMPAT_SUPP (EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER| \ |
1534 | EXT4_FEATURE_RO_COMPAT_LARGE_FILE| \ | 1535 | EXT4_FEATURE_RO_COMPAT_LARGE_FILE| \ |
1535 | EXT4_FEATURE_RO_COMPAT_GDT_CSUM| \ | 1536 | EXT4_FEATURE_RO_COMPAT_GDT_CSUM| \ |
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index c7efa88d7149..3f32c8012447 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c | |||
@@ -902,6 +902,10 @@ got: | |||
902 | 902 | ||
903 | ei->i_extra_isize = EXT4_SB(sb)->s_want_extra_isize; | 903 | ei->i_extra_isize = EXT4_SB(sb)->s_want_extra_isize; |
904 | 904 | ||
905 | ei->i_inline_off = 0; | ||
906 | if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_INLINE_DATA)) | ||
907 | ext4_set_inode_state(inode, EXT4_STATE_MAY_INLINE_DATA); | ||
908 | |||
905 | ret = inode; | 909 | ret = inode; |
906 | dquot_initialize(inode); | 910 | dquot_initialize(inode); |
907 | err = dquot_alloc_inode(inode); | 911 | err = dquot_alloc_inode(inode); |