1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __XFS_IOEND_H 3 #define __XFS_IOEND_H 4 5 /* 6 * Fast and loose check if this write could update the on-disk inode size. 7 */ xfs_ioend_is_append(struct iomap_ioend * ioend)8static inline bool xfs_ioend_is_append(struct iomap_ioend *ioend) 9 { 10 return ioend->io_offset + ioend->io_size > 11 XFS_I(ioend->io_inode)->i_disk_size; 12 } 13 14 void xfs_end_bio(struct bio *bio); 15 16 #endif /* __XFS_IOEND_H */ 17