]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xfs: remove an out of data comment in _xfs_buf_alloc
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Jan 2025 06:03:35 +0000 (07:03 +0100)
committerCarlos Maiolino <cem@kernel.org>
Fri, 24 Jan 2025 11:06:18 +0000 (12:06 +0100)
There hasn't been anything like an io_length for a long time.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_buf.c

index 7fbdd4b30676ca163b51cf8a167980de9ece9f99..f1252ed8bd0a729d87f63a617fae3f276cffc325 100644 (file)
@@ -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);