diff options
author | Theodore Ts'o <tytso@mit.edu> | 2016-01-08 16:00:31 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-01-08 16:00:31 -0500 |
commit | 56a04915df4e85b34b1c1613c64b87dd2283c26a (patch) | |
tree | 918970d90b7a276a503acd6fa9a3304f590e632c /fs/ext4/ext4.h | |
parent | db7730e3091a52c2fcd8fcc952b964d88998e675 (diff) | |
download | linux-rpi-56a04915df4e85b34b1c1613c64b87dd2283c26a.tar.gz linux-rpi-56a04915df4e85b34b1c1613c64b87dd2283c26a.tar.bz2 linux-rpi-56a04915df4e85b34b1c1613c64b87dd2283c26a.zip |
ext4 crypto: simplify interfaces to directory entry insert functions
A number of functions include ext4_add_dx_entry, make_indexed_dir,
etc. are being passed a dentry even though the only thing they use is
the containing parent. We can shrink the code size slightly by making
this replacement. This will also be useful in cases where we don't
have a dentry as the argument to the directory entry insert functions.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 1e20fa94fcf6..f82da361a823 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -3004,8 +3004,7 @@ extern int ext4_da_write_inline_data_end(struct inode *inode, loff_t pos, struct page *page); extern int ext4_try_add_inline_entry(handle_t *handle, struct ext4_filename *fname, - struct dentry *dentry, - struct inode *inode); + struct inode *dir, struct inode *inode); extern int ext4_try_create_inline_dir(handle_t *handle, struct inode *parent, struct inode *inode); |