Lines Matching refs:ext
197 static inline void ext4_ext_mark_unwritten(struct ext4_extent *ext) in ext4_ext_mark_unwritten() argument
200 BUG_ON((le16_to_cpu(ext->ee_len) & ~EXT_INIT_MAX_LEN) == 0); in ext4_ext_mark_unwritten()
201 ext->ee_len |= cpu_to_le16(EXT_INIT_MAX_LEN); in ext4_ext_mark_unwritten()
204 static inline int ext4_ext_is_unwritten(struct ext4_extent *ext) in ext4_ext_is_unwritten() argument
207 return (le16_to_cpu(ext->ee_len) > EXT_INIT_MAX_LEN); in ext4_ext_is_unwritten()
210 static inline int ext4_ext_get_actual_len(struct ext4_extent *ext) in ext4_ext_get_actual_len() argument
212 return (le16_to_cpu(ext->ee_len) <= EXT_INIT_MAX_LEN ? in ext4_ext_get_actual_len()
213 le16_to_cpu(ext->ee_len) : in ext4_ext_get_actual_len()
214 (le16_to_cpu(ext->ee_len) - EXT_INIT_MAX_LEN)); in ext4_ext_get_actual_len()
217 static inline void ext4_ext_mark_initialized(struct ext4_extent *ext) in ext4_ext_mark_initialized() argument
219 ext->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ext)); in ext4_ext_mark_initialized()