summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_ioend.h
blob: 525865767fcac90d5e7903966b34f2a09a99b69a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __XFS_IOEND_H
#define __XFS_IOEND_H

/*
 * Fast and loose check if this write could update the on-disk inode size.
 */
static inline bool xfs_ioend_is_append(struct iomap_ioend *ioend)
{
	return ioend->io_offset + ioend->io_size >
		XFS_I(ioend->io_inode)->i_disk_size;
}

void xfs_end_bio(struct bio *bio);

#endif /* __XFS_IOEND_H */