From nobody Mon Mar 28 17:37:10 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2718A1A39D5C; Mon, 28 Mar 2022 17:37:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KS0J7014Cz4jFG; Mon, 28 Mar 2022 17:37:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648489031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t4UKmuQfgekfF46JOV+soS5URx+rvpgeeLqiOV5RzBk=; b=CbROHQml6cpYKXG72BpNmg1OuZLpLNTlOIIdJEdHKrKKBjLGksgOLCEN1xDk7GrOZmN83Z O9Mq5JYF9BTmtUS4WDdCmruEu5HntdYb7quubS3eOhp7api2DUYrLFRprO4aOG1HFT/Pap Yv9SgkqBDHOatQLAeO4peWFGXV2Fa3CZZQVAm/TYnf7NlYJs8uuTvAcfG4Gfh1ksr32KJL KOuFHkKHBKKD4BoTg1is/78FdDsKwTZB5okh6/9m+ai7V+ZDLnX7fzvB1NkJRkhWzE9VeE TlC8bQ649VQqoqFsKgaHWVJBfoC1Ah/gJNaV+rtxqqIxbvlQdIPuj1GTZFc4sg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CC8EB6341; Mon, 28 Mar 2022 17:37:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22SHbA03064444; Mon, 28 Mar 2022 17:37:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22SHbArY064443; Mon, 28 Mar 2022 17:37:10 GMT (envelope-from git) Date: Mon, 28 Mar 2022 17:37:10 GMT Message-Id: <202203281737.22SHbArY064443@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gordon Bergling Subject: git: 2733b242e4c6 - main - ffs(3): Fix a common typo in source code comments List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gbe X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2733b242e4c69240fed52854682f0c3b0079be17 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648489031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t4UKmuQfgekfF46JOV+soS5URx+rvpgeeLqiOV5RzBk=; b=B6PJTQJ0g/EDpEdO3kSOZkIbOkUmuDM+EPlVXCA8VBzdpH8PU2bqsxRSNXVhWUxdyouobY VV+Grkdmo9sHL/bltwV2CJOUOU+EpH7dMgwDZ3TMot5Hr/7HY8KcKFZLYJTGWb4WLGF3cS kFWM8jM7ONVRqfL9eIA4PWH+NeVEMkePYbJkoHr+aNMmUk3mKQEGDHsHqxMhpSsv5GsH6J 8SATER7JLjquhLCWdwPwG42d/ZIwt30Vc8UX9EOtt/utdinXATcX5agUvajRtTcS6mLbT5 QRVbrodvpW4fOM8mB2JJGe5RVNc2sNn7bm7pR+HWa+1ehLIi6vUX/bQKdu4Pkg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648489031; a=rsa-sha256; cv=none; b=Wh/ss/ag04OEsskMjnftf4apKBM1uoJYwGdh6lFIT8NMmBxmxRbKmz+kCdHUl+FoNohY4w eqlLETm6ZOSKb1OdbzLDfPVE1JjDfW98rwUa9nQ2HfEdQpGki3c08gt0HdP3+8w4G3+1lF cmtj20qVAFmmZEgPflX9b4pmS8c5NS/FkI5gf+7vLC9mxi49eLVZTZ+GBFPG61W6+D/1ZW 3yAPT8wdjG0ch9c5e03Gp9TEkhfKB1G9J0+OKtudv6Y6AdOy4G7afUsrmEDonJwJwKQwI+ j4uoDDluHieJDg96mh+ZBvrtONkS8O06wGMmqsDYVlf7WNzfRSqaSfquBwWXNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by gbe (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=2733b242e4c69240fed52854682f0c3b0079be17 commit 2733b242e4c69240fed52854682f0c3b0079be17 Author: Gordon Bergling AuthorDate: 2022-03-27 16:03:16 +0000 Commit: Gordon Bergling CommitDate: 2022-03-28 17:37:03 +0000 ffs(3): Fix a common typo in source code comments - s/quadradically/quadratically/ Obtained from: NetBSD MFC after: 3 days --- sys/ufs/ffs/ffs_alloc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index 50b176b262f4..8049657dc13d 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -138,13 +138,13 @@ static void ffs_ckhash_cg(struct buf *); * 1) allocate the requested block. * 2) allocate a rotationally optimal block in the same cylinder. * 3) allocate a block in the same cylinder group. - * 4) quadradically rehash into other cylinder groups, until an + * 4) quadratically rehash into other cylinder groups, until an * available block is located. * If no block preference is given the following hierarchy is used * to allocate a block: * 1) allocate a block in the cylinder group that contains the * inode for the file. - * 2) quadradically rehash into other cylinder groups, until an + * 2) quadratically rehash into other cylinder groups, until an * available block is located. */ int @@ -1095,12 +1095,12 @@ fail: * If allocating in a directory, the following hierarchy is followed: * 1) allocate the preferred inode. * 2) allocate an inode in the same cylinder group. - * 3) quadradically rehash into other cylinder groups, until an + * 3) quadratically rehash into other cylinder groups, until an * available inode is located. * If no inode preference is given the following hierarchy is used * to allocate an inode: * 1) allocate an inode in cylinder group 0. - * 2) quadradically rehash into other cylinder groups, until an + * 2) quadratically rehash into other cylinder groups, until an * available inode is located. */ int @@ -1608,7 +1608,7 @@ ffs_blkpref_ufs2(ip, lbn, indx, bap) * * The policy implemented by this algorithm is: * 1) allocate the block in its requested cylinder group. - * 2) quadradically rehash on the cylinder group number. + * 2) quadratically rehash on the cylinder group number. * 3) brute force search for a free block. * * Must be called with the UFS lock held. Will release the lock on success