diff options
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 7 |
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; | |||
2559 | extern loff_t ext4_llseek(struct file *file, loff_t offset, int origin); | 2559 | extern loff_t ext4_llseek(struct file *file, loff_t offset, int origin); |
2560 | 2560 | ||
2561 | /* inline.c */ | 2561 | /* inline.c */ |
2562 | extern int ext4_has_inline_data(struct inode *inode); | ||
2563 | extern int ext4_get_max_inline_size(struct inode *inode); | 2562 | extern int ext4_get_max_inline_size(struct inode *inode); |
2564 | extern int ext4_find_inline_data_nolock(struct inode *inode); | 2563 | extern int ext4_find_inline_data_nolock(struct inode *inode); |
2565 | extern int ext4_init_inline_data(handle_t *handle, struct inode *inode, | 2564 | extern 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 | ||
2626 | extern int ext4_convert_inline_data(struct inode *inode); | 2625 | extern int ext4_convert_inline_data(struct inode *inode); |
2627 | 2626 | ||
2627 | static 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 */ |
2629 | extern const struct inode_operations ext4_dir_inode_operations; | 2634 | extern const struct inode_operations ext4_dir_inode_operations; |
2630 | extern const struct inode_operations ext4_special_inode_operations; | 2635 | extern const struct inode_operations ext4_special_inode_operations; |