From nobody Wed Aug 17 14:23:49 2022 X-Original-To: dev-commits-src-main@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 4M79HV035mz4ZZdD; Wed, 17 Aug 2022 14:23:50 +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 4M79HT6f3Jz3PQp; Wed, 17 Aug 2022 14:23:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660746229; 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=PQZvEUohc4EjouP+4wey+4YxUzQ20CScpPVfIALH6v0=; b=GggD5FrrlDpgkWHvoZyxax0/v3pWVoYGA+0xqvvrefeIk1dGupCpDE4dp6M2YQYdzXvwMZ rHPrpj83mpOix+Eo6EF6Erwq2/AKf0Yb9Zk9RHA6EPNGfvOygj0WhyjiDyz7Vg+t6j4Q0t ZZEr5DUhhDTQB9jj0u770djgGu2/lOhmuK37QDn6a6VG/O7vG5AIqQrGvWllXkOPk3eigb a70ndOpbi27SE4/XQsLdJzDE8Fw8GFNL8qp0cJDJerKKmbMVTE5p6FZ1fKZfG7NdkcTIPd 0RjF8WNEV8sknofpWsKx14ZTivfIU/bhyjH8vF0Vwwz1+sW4L+UhS2b7BCVP1w== 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 4M79HT5hTlzsXV; Wed, 17 Aug 2022 14:23: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 27HENnUj024569; Wed, 17 Aug 2022 14:23:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27HENnla024568; Wed, 17 Aug 2022 14:23:49 GMT (envelope-from git) Date: Wed, 17 Aug 2022 14:23:49 GMT Message-Id: <202208171423.27HENnla024568@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 4c2ef8c1d72b - main - pipe: change pipemapping cnt/pos to u_int List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4c2ef8c1d72b6b822aefdd54c6ea9bc65b5d457e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660746229; 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=PQZvEUohc4EjouP+4wey+4YxUzQ20CScpPVfIALH6v0=; b=seAdNLEhBH+gu18uLAMl1FgtpXj7q7pd4ipJ7ExSFmsY5v/mraXMe0pCIouAA6B6y+prSv RdZGUfbOLNiXPULMYhjJqzQupBat4iKWbQdao4hS8XkCu2Wzd+hFsU/Ve58reLqC95DQ9L bBHg0dIy1y9eK8x0ed5NG6u+IESCVPOs4GYrveFeCjjOXtcWQ1pHYuqoH8RhdoeQ02tzFa kUVCK+CQXePtBO+Y3puaON/GrSJ1zsDCh8UrOA6b5G2ZYByBkcIRaLogIEQ0fudhu8FXei lmXcOwhjim1lttiqlL5QAaKQF63QxNM5GUWjdiA7QyLRLTYC+rXTnRWsqqeeng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660746229; a=rsa-sha256; cv=none; b=BmE/dZIVVnfIuKhYvjaC3+AjCSK0wBnkVErrN6g4jkGh5bpakS2JCsh8cn53ve7Tgzyk5P D/JGFetHB6NR4koxV+i4CYT6vUITYAPy4ehWjXUzo9uPJNn+Q9fd4dLoS5cu35bdDrkQ5w Mjf51/c2hqFGmRxQPrhXYPHowncPB5furm+8Z1RvLtfjqJy22vzlJhiF7pAuWmZsWXmtZr vnkeRWtl4uQtL8pwWvOzQxLQ5qqqidhWFyfwCCKZ4kiiAMJHdSZERpS24xjjE02LcUvu7z udnxWDs8HtvVzkQ9tPPUaAtGeGnu8jPe3NtxMcHmmEL2vIAEz77KxIVvnZiR1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=4c2ef8c1d72b6b822aefdd54c6ea9bc65b5d457e commit 4c2ef8c1d72b6b822aefdd54c6ea9bc65b5d457e Author: Mateusz Guzik AuthorDate: 2022-08-17 14:20:09 +0000 Commit: Mateusz Guzik CommitDate: 2022-08-17 14:20:09 +0000 pipe: change pipemapping cnt/pos to u_int This matches the case using regular buffers and avoids an ifdef later. Suggested by: markj --- sys/sys/pipe.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/pipe.h b/sys/sys/pipe.h index c9f222ffb01a..4580e1e2726d 100644 --- a/sys/sys/pipe.h +++ b/sys/sys/pipe.h @@ -74,8 +74,8 @@ struct pipebuf { * Information to support direct transfers between processes for pipes. */ struct pipemapping { - vm_size_t cnt; /* number of chars in buffer */ - vm_size_t pos; /* current position of transfer */ + u_int cnt; /* number of chars in buffer */ + u_int pos; /* current position of transfer */ int npages; /* number of pages */ vm_page_t ms[PIPENPAGES]; /* pages in source process */ };