diff options
author | Tao Ma <boyu.mt@taobao.com> | 2012-12-10 19:06:00 (GMT) |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-12-10 19:06:00 (GMT) |
commit | 05019a9e7f025133f20c67677c9c8551eca3c6dc (patch) | |
tree | 0e1b3ab69fbc3a657c488c09bf5683d631c260df /fs/ext4/ext4.h | |
parent | e8e948e7802a2ab05c146d3e72a39b93b5718236 (diff) | |
download | linux-05019a9e7f025133f20c67677c9c8551eca3c6dc.tar.xz |
ext4: make ext4_delete_entry generic
Currently ext4_delete_entry() is used only for dir entry removing from
a dir block. So let us create a new function
ext4_generic_delete_entry and this function takes a entry_buf and a
buf_size so that it can be used for 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/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index a971b65..6cfe546 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2129,6 +2129,13 @@ extern int search_dir(struct buffer_head *bh, const struct qstr *d_name, unsigned int offset, struct ext4_dir_entry_2 **res_dir); +extern int ext4_generic_delete_entry(handle_t *handle, + struct inode *dir, + struct ext4_dir_entry_2 *de_del, + struct buffer_head *bh, + void *entry_buf, + int buf_size, + int csum_size); /* resize.c */ extern int ext4_group_add(struct super_block *sb, |