From nobody Sat Apr 02 13:35:49 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 29F171A53203; Sat, 2 Apr 2022 13:35:51 +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 4KVyjL26B1z4gXD; Sat, 2 Apr 2022 13:35:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648906551; 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=Y2yH0nSEHzZGpXFzXhXOXOMGogm2P/eIA0DMgKqM6Sw=; b=KIN2/Q8pRe9EI2jN5BopVYgL4ktZMS3N5I+AElCN/qQbp3C/gEQPB2jvy23cHN6zOCMcXC KOad9JKguXQu0O1iGyL5e4shAFwv+U234Y7urWioQsWI9x2tyj+wP8dy94Wwmmd2kXy7+Q L2cqmICKv5FrKjVDUJG9pXGabjp2NHBUMODpTgE89GPQNZ7SXIg1VsWGHkkNfBdGZWRNes mu9jHjUzhg1uWrYPVXroHF69Vsf2GJe+qNyQoPT08txUsatzlgksqTD1Cuo9hSrJgPk6cs AaQZ5AB5Qc0/ArSwYzEUUVWmgX3aEZyo/k2Zsv51DfDjXXSAh954tIi4+Q+woQ== 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 BC7541E13; Sat, 2 Apr 2022 13:35:49 +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 232DZnoO003317; Sat, 2 Apr 2022 13:35:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 232DZn88003316; Sat, 2 Apr 2022 13:35:49 GMT (envelope-from git) Date: Sat, 2 Apr 2022 13:35:49 GMT Message-Id: <202204021335.232DZn88003316@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Bergling Subject: git: fc39cc1df745 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: fc39cc1df74514f490d6dc865b13768df1538da6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648906551; 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=Y2yH0nSEHzZGpXFzXhXOXOMGogm2P/eIA0DMgKqM6Sw=; b=vHbziSPm5L+mJVvx5pKJCzuKnigQbe+nGZrIqssd5/DvMpWKAbZGTu2rMhe7q7uP5KKouJ 5YEwtdgDx9Lt1tA60JC2wvcLod5PFjOrcK237KpJsVjADhs+csqVMwJSIIcEEDAY/nGxGE nSy0NuDzRETu8aWV+Mv8HCQG9PwVn8bxo4mYL4LFnLBDzsw56arPLrsBlvl1Q4hyWAsvoL itqHr6VfsfVhfiHzdtLPLT4iRhbYdeWf2tzZJPeyZA5gg2jCnxJsmljNGNeuJZ6qpe02fB xTA3IHfukA1CIOMOOWkkeWfRPAYlxsruiJZQsqsuzKvBbHTT60nu9fVxF7D0AA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648906551; a=rsa-sha256; cv=none; b=xWCpAp9E0wZQJyp1/J6YicjyBEdr6ezoc6NelKnC/C1UjIwvdbERVC0UTfwtSN/N09+J+V bkOpHzIkjf+XDKDJuTZJZbEVkmUwkVn/QKL6DAi+iArrGrez2rg2nCjQpBS97nrX6DQVPS 0xFwP9T/y+bF+nMQWg1is3L0n0uPsQMLct+fUbeEDDhKGrabqIPeQ5KnQf9m1e6/3FRkKD S3z6uomK1udwhvxTnG6uTAET6E24AbDP4TLEvG5rgY59sUqQkLE4vHQqNzn/1owdeKih4T Ep5KxcMmEwCvfsLwJm4xs2HdFgbnmY3EHSzyQTQfvz4XWsic3/SrEYWWMbZolg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by gbe (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=fc39cc1df74514f490d6dc865b13768df1538da6 commit fc39cc1df74514f490d6dc865b13768df1538da6 Author: Gordon Bergling AuthorDate: 2022-03-27 16:03:16 +0000 Commit: Gordon Bergling CommitDate: 2022-04-02 13:34:01 +0000 ffs(3): Fix a common typo in source code comments - s/quadradically/quadratically/ Obtained from: NetBSD (cherry picked from commit 2733b242e4c69240fed52854682f0c3b0079be17) --- 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