|
@@ -2559,7 +2559,6 @@ extern const struct file_operations ext4_file_operations;
|
|
|
extern loff_t ext4_llseek(struct file *file, loff_t offset, int origin);
|
|
|
|
|
|
/* inline.c */
|
|
|
-extern int ext4_has_inline_data(struct inode *inode);
|
|
|
extern int ext4_get_max_inline_size(struct inode *inode);
|
|
|
extern int ext4_find_inline_data_nolock(struct inode *inode);
|
|
|
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);
|
|
|
|
|
|
extern int ext4_convert_inline_data(struct inode *inode);
|
|
|
|
|
|
+static inline int ext4_has_inline_data(struct inode *inode)
|
|
|
+{
|
|
|
+ return ext4_test_inode_flag(inode, EXT4_INODE_INLINE_DATA) &&
|
|
|
+ EXT4_I(inode)->i_inline_off;
|
|
|
+}
|
|
|
+
|
|
|
/* namei.c */
|
|
|
extern const struct inode_operations ext4_dir_inode_operations;
|
|
|
extern const struct inode_operations ext4_special_inode_operations;
|