summaryrefslogtreecommitdiffstats
path: root/fs/ext4/xattr.h
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2012-12-10 14:06:01 -0500
committerTheodore Ts'o <tytso@mit.edu>2012-12-10 14:06:01 -0500
commit61f86638d8a656101bb0f9c41c55d9685f8a2357 (patch)
tree0fae5bd89012c2d2d8a74cb79b67fea56b4f76d9 /fs/ext4/xattr.h
parent9f40fe54635b7533f51993d0f5e7f014fc14d33a (diff)
ext4: let empty_dir handle inline dir
empty_dir is used when deleting a dir. So it should handle inline dir properly. 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ext4/xattr.h b/fs/ext4/xattr.h
index f86e424d75e4..7747bbcebb33 100644
--- a/fs/ext4/xattr.h
+++ b/fs/ext4/xattr.h
@@ -180,6 +180,7 @@ extern int ext4_delete_inline_entry(handle_t *handle,
180 struct ext4_dir_entry_2 *de_del, 180 struct ext4_dir_entry_2 *de_del,
181 struct buffer_head *bh, 181 struct buffer_head *bh,
182 int *has_inline_data); 182 int *has_inline_data);
183extern int empty_inline_dir(struct inode *dir, int *has_inline_data);
183# else /* CONFIG_EXT4_FS_XATTR */ 184# else /* CONFIG_EXT4_FS_XATTR */
184 185
185static inline int 186static inline int
@@ -381,6 +382,11 @@ static inline int ext4_delete_inline_entry(handle_t *handle,
381{ 382{
382 return 0; 383 return 0;
383} 384}
385
386static inline int empty_inline_dir(struct inode *dir, int *has_inline_data)
387{
388 return 0;
389}
384# endif /* CONFIG_EXT4_FS_XATTR */ 390# endif /* CONFIG_EXT4_FS_XATTR */
385 391
386#ifdef CONFIG_EXT4_FS_SECURITY 392#ifdef CONFIG_EXT4_FS_SECURITY