aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 5535ed2be8c7..321760d6b353 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -2559,7 +2559,6 @@ extern const struct file_operations ext4_file_operations;
2559extern loff_t ext4_llseek(struct file *file, loff_t offset, int origin); 2559extern loff_t ext4_llseek(struct file *file, loff_t offset, int origin);
2560 2560
2561/* inline.c */ 2561/* inline.c */
2562extern int ext4_has_inline_data(struct inode *inode);
2563extern int ext4_get_max_inline_size(struct inode *inode); 2562extern int ext4_get_max_inline_size(struct inode *inode);
2564extern int ext4_find_inline_data_nolock(struct inode *inode); 2563extern int ext4_find_inline_data_nolock(struct inode *inode);
2565extern int ext4_init_inline_data(handle_t *handle, struct inode *inode, 2564extern int ext4_init_inline_data(handle_t *handle, struct inode *inode,
@@ -2625,6 +2624,12 @@ extern void ext4_inline_data_truncate(struct inode *inode, int *has_inline);
2625 2624
2626extern int ext4_convert_inline_data(struct inode *inode); 2625extern int ext4_convert_inline_data(struct inode *inode);
2627 2626
2627static inline int ext4_has_inline_data(struct inode *inode)
2628{
2629 return ext4_test_inode_flag(inode, EXT4_INODE_INLINE_DATA) &&
2630 EXT4_I(inode)->i_inline_off;
2631}
2632
2628/* namei.c */ 2633/* namei.c */
2629extern const struct inode_operations ext4_dir_inode_operations; 2634extern const struct inode_operations ext4_dir_inode_operations;
2630extern const struct inode_operations ext4_special_inode_operations; 2635extern const struct inode_operations ext4_special_inode_operations;