diff --git a/libxfs/xfs_format.h b/libxfs/xfs_format.h index 10153ce11..f1818c54a 100644 --- a/libxfs/xfs_format.h +++ b/libxfs/xfs_format.h @@ -899,6 +899,12 @@ static inline uint xfs_dinode_size(int version) */ #define XFS_MAXLINK ((1U << 31) - 1U) +/* + * Any file that hits the maximum ondisk link count should be pinned to avoid + * a use-after-free situation. + */ +#define XFS_NLINK_PINNED (~0U) + /* * Values for di_format *