// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2016 Oracle. All Rights Reserved. * Author: Darrick J. Wong <darrick.wong@oracle.com>
*/ #ifndef __XFS_REFLINK_H #define __XFS_REFLINK_H 1
/* * Check whether it is safe to free COW fork blocks from an inode. It is unsafe * to do so when an inode has dirty cache or I/O in-flight, even if no shared * extents exist in the data fork, because outstanding I/O may target blocks * that were speculatively allocated to the COW fork.
*/ staticinlinebool
xfs_can_free_cowblocks(struct xfs_inode *ip)
{ struct inode *inode = VFS_I(ip);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.