> +static int > +xfs_buffered_write_delalloc_punch( > + struct inode *inode, > + loff_t start_byte, > + loff_t end_byte) > +{ > + struct xfs_mount *mp = XFS_M(inode->i_sb); > + xfs_fileoff_t start_fsb = XFS_B_TO_FSBT(mp, start_byte); > + xfs_fileoff_t end_fsb = XFS_B_TO_FSB(mp, end_byte); > + > + return xfs_bmap_punch_delalloc_range(XFS_I(inode), start_fsb, > + end_fsb - start_fsb); > +} The othe two callers of xfs_bmap_punch_delalloc_range would actually prefer a byte range as well, so it might make sense to just switch it to taking bytes instad of adding a wrapper. Otherwise looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>