diff options
author | Tao Ma <boyu.mt@taobao.com> | 2012-12-10 14:06:00 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-12-10 14:06:00 -0500 |
commit | 9f40fe54635b7533f51993d0f5e7f014fc14d33a (patch) | |
tree | 4fba9eb2fbf97ee21cfecba4746c439e51794030 /fs/ext4/namei.c | |
parent | 05019a9e7f025133f20c67677c9c8551eca3c6dc (diff) |
ext4: let ext4_delete_entry() handle inline data
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/namei.c')
-rw-r--r-- | fs/ext4/namei.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index c10fc2631ff5..a32228a73df0 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c | |||
@@ -2158,6 +2158,14 @@ static int ext4_delete_entry(handle_t *handle, | |||
2158 | { | 2158 | { |
2159 | int err, csum_size = 0; | 2159 | int err, csum_size = 0; |
2160 | 2160 | ||
2161 | if (ext4_has_inline_data(dir)) { | ||
2162 | int has_inline_data = 1; | ||
2163 | err = ext4_delete_inline_entry(handle, dir, de_del, bh, | ||
2164 | &has_inline_data); | ||
2165 | if (has_inline_data) | ||
2166 | return err; | ||
2167 | } | ||
2168 | |||
2161 | if (EXT4_HAS_RO_COMPAT_FEATURE(dir->i_sb, | 2169 | if (EXT4_HAS_RO_COMPAT_FEATURE(dir->i_sb, |
2162 | EXT4_FEATURE_RO_COMPAT_METADATA_CSUM)) | 2170 | EXT4_FEATURE_RO_COMPAT_METADATA_CSUM)) |
2163 | csum_size = sizeof(struct ext4_dir_entry_tail); | 2171 | csum_size = sizeof(struct ext4_dir_entry_tail); |