diff options
author | Michael Halcrow <mhalcrow@google.com> | 2015-04-12 00:56:28 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-04-12 00:56:28 -0400 |
commit | 4bdfc873ba34e425d6532581b4127b960274272a (patch) | |
tree | bb025d46b0de4bee9a650ef679b0729a82b2772c /fs/ext4/inline.c | |
parent | 2f61830ae33e2944ad66bb8bb40916f534b2e494 (diff) |
ext4 crypto: insert encrypted filenames into a leaf directory block
Signed-off-by: Uday Savagaonkar <savagaon@google.com>
Signed-off-by: Ildar Muslukhov <ildarm@google.com>
Signed-off-by: Michael Halcrow <mhalcrow@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inline.c')
-rw-r--r-- | fs/ext4/inline.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c index 661f0b8dcfe0..feb2cafbeace 100644 --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c | |||
@@ -11,11 +11,13 @@ | |||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. | 12 | * GNU General Public License for more details. |
13 | */ | 13 | */ |
14 | |||
15 | #include <linux/fiemap.h> | ||
16 | |||
14 | #include "ext4_jbd2.h" | 17 | #include "ext4_jbd2.h" |
15 | #include "ext4.h" | 18 | #include "ext4.h" |
16 | #include "xattr.h" | 19 | #include "xattr.h" |
17 | #include "truncate.h" | 20 | #include "truncate.h" |
18 | #include <linux/fiemap.h> | ||
19 | 21 | ||
20 | #define EXT4_XATTR_SYSTEM_DATA "data" | 22 | #define EXT4_XATTR_SYSTEM_DATA "data" |
21 | #define EXT4_MIN_INLINE_DATA_SIZE ((sizeof(__le32) * EXT4_N_BLOCKS)) | 23 | #define EXT4_MIN_INLINE_DATA_SIZE ((sizeof(__le32) * EXT4_N_BLOCKS)) |
@@ -1014,7 +1016,8 @@ static int ext4_add_dirent_to_inline(handle_t *handle, | |||
1014 | err = ext4_journal_get_write_access(handle, iloc->bh); | 1016 | err = ext4_journal_get_write_access(handle, iloc->bh); |
1015 | if (err) | 1017 | if (err) |
1016 | return err; | 1018 | return err; |
1017 | ext4_insert_dentry(inode, de, inline_size, name, namelen); | 1019 | ext4_insert_dentry(dir, inode, de, inline_size, &dentry->d_name, |
1020 | name, namelen); | ||
1018 | 1021 | ||
1019 | ext4_show_inline_dir(dir, iloc->bh, inline_start, inline_size); | 1022 | ext4_show_inline_dir(dir, iloc->bh, inline_start, inline_size); |
1020 | 1023 | ||