diff options
author | Tao Ma <boyu.mt@taobao.com> | 2012-12-10 14:05:59 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-12-10 14:05:59 -0500 |
commit | 65d165d9366dbf783d0102177006d47c8859ba31 (patch) | |
tree | 39a1699951de4aafad0a81a77d3b20de38925ee9 /fs/ext4/xattr.h | |
parent | 3c47d54170b6a678875566b1b8d6dcf57904e49b (diff) |
ext4: let ext4_readdir handle inline data
For "." and "..", we just call filldir by ourselves
instead of iterating the real dir entry.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/xattr.h')
-rw-r--r-- | fs/ext4/xattr.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/ext4/xattr.h b/fs/ext4/xattr.h index 397ef4bbaf1e..539e6a08c95f 100644 --- a/fs/ext4/xattr.h +++ b/fs/ext4/xattr.h | |||
@@ -168,6 +168,9 @@ extern int ext4_try_add_inline_entry(handle_t *handle, struct dentry *dentry, | |||
168 | extern int ext4_try_create_inline_dir(handle_t *handle, | 168 | extern int ext4_try_create_inline_dir(handle_t *handle, |
169 | struct inode *parent, | 169 | struct inode *parent, |
170 | struct inode *inode); | 170 | struct inode *inode); |
171 | extern int ext4_read_inline_dir(struct file *filp, | ||
172 | void *dirent, filldir_t filldir, | ||
173 | int *has_inline_data); | ||
171 | # else /* CONFIG_EXT4_FS_XATTR */ | 174 | # else /* CONFIG_EXT4_FS_XATTR */ |
172 | 175 | ||
173 | static inline int | 176 | static inline int |
@@ -346,6 +349,12 @@ static inline int ext4_try_create_inline_dir(handle_t *handle, | |||
346 | { | 349 | { |
347 | return 0; | 350 | return 0; |
348 | } | 351 | } |
352 | static inline int ext4_read_inline_dir(struct file *filp, | ||
353 | void *dirent, filldir_t filldir, | ||
354 | int *has_inline_data) | ||
355 | { | ||
356 | return 0; | ||
357 | } | ||
349 | # endif /* CONFIG_EXT4_FS_XATTR */ | 358 | # endif /* CONFIG_EXT4_FS_XATTR */ |
350 | 359 | ||
351 | #ifdef CONFIG_EXT4_FS_SECURITY | 360 | #ifdef CONFIG_EXT4_FS_SECURITY |