From: Christoph Hellwig Date: Thu, 16 Jan 2025 06:03:35 +0000 (+0100) Subject: xfs: remove an out of data comment in _xfs_buf_alloc X-Git-Tag: v6.14-rc2~38^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89841b23809f5fb12cbead142204064739fef25a;p=thirdparty%2Fkernel%2Flinux.git xfs: remove an out of data comment in _xfs_buf_alloc There hasn't been anything like an io_length for a long time. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Carlos Maiolino --- diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 7fbdd4b30676c..f1252ed8bd0a7 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c @@ -232,11 +232,6 @@ _xfs_buf_alloc( bp->b_mount = target->bt_mount; bp->b_flags = flags; - /* - * Set length and io_length to the same value initially. - * I/O routines should use io_length, which will be the same in - * most cases but may be reset (e.g. XFS recovery). - */ error = xfs_buf_get_maps(bp, nmaps); if (error) { kmem_cache_free(xfs_buf_cache, bp);