diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-27 20:12:39 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-28 18:41:54 -0400 |
commit | 6e22c691ba0a63ba89f516f0bf1828cf6dce372d (patch) | |
tree | 21a94002a295de13ad6353688edbf94dfea6d304 /fs/f2fs/f2fs.h | |
parent | d8c6822a0556a88b13c8483599589752cf3e39f7 (diff) |
f2fs crypto: add filename encryption for f2fs_lookup
This patch implements filename encryption support for f2fs_lookup.
Note that, f2fs_find_entry should be outside of f2fs_(un)lock_op().
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index b478a6fa92a7..6f4d1dbac2f4 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -1584,8 +1584,9 @@ struct dentry *f2fs_get_parent(struct dentry *child); | |||
1584 | */ | 1584 | */ |
1585 | extern unsigned char f2fs_filetype_table[F2FS_FT_MAX]; | 1585 | extern unsigned char f2fs_filetype_table[F2FS_FT_MAX]; |
1586 | void set_de_type(struct f2fs_dir_entry *, umode_t); | 1586 | void set_de_type(struct f2fs_dir_entry *, umode_t); |
1587 | struct f2fs_dir_entry *find_target_dentry(struct qstr *, int *, | 1587 | |
1588 | struct f2fs_dentry_ptr *); | 1588 | struct f2fs_dir_entry *find_target_dentry(struct f2fs_filename *, |
1589 | f2fs_hash_t, int *, struct f2fs_dentry_ptr *); | ||
1589 | bool f2fs_fill_dentries(struct dir_context *, struct f2fs_dentry_ptr *, | 1590 | bool f2fs_fill_dentries(struct dir_context *, struct f2fs_dentry_ptr *, |
1590 | unsigned int, struct f2fs_str *); | 1591 | unsigned int, struct f2fs_str *); |
1591 | void do_make_empty_dir(struct inode *, struct inode *, | 1592 | void do_make_empty_dir(struct inode *, struct inode *, |
@@ -1931,8 +1932,8 @@ int f2fs_convert_inline_page(struct dnode_of_data *, struct page *); | |||
1931 | int f2fs_convert_inline_inode(struct inode *); | 1932 | int f2fs_convert_inline_inode(struct inode *); |
1932 | int f2fs_write_inline_data(struct inode *, struct page *); | 1933 | int f2fs_write_inline_data(struct inode *, struct page *); |
1933 | bool recover_inline_data(struct inode *, struct page *); | 1934 | bool recover_inline_data(struct inode *, struct page *); |
1934 | struct f2fs_dir_entry *find_in_inline_dir(struct inode *, struct qstr *, | 1935 | struct f2fs_dir_entry *find_in_inline_dir(struct inode *, |
1935 | struct page **); | 1936 | struct f2fs_filename *, struct page **); |
1936 | struct f2fs_dir_entry *f2fs_parent_inline_dir(struct inode *, struct page **); | 1937 | struct f2fs_dir_entry *f2fs_parent_inline_dir(struct inode *, struct page **); |
1937 | int make_empty_inline_dir(struct inode *inode, struct inode *, struct page *); | 1938 | int make_empty_inline_dir(struct inode *inode, struct inode *, struct page *); |
1938 | int f2fs_add_inline_entry(struct inode *, const struct qstr *, struct inode *, | 1939 | int f2fs_add_inline_entry(struct inode *, const struct qstr *, struct inode *, |