From nobody Fri Dec 9 12:18:17 2022 X-Original-To: fs@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 4NT9640sPbz4kQ9Z for ; Fri, 9 Dec 2022 12:18:20 +0000 (UTC) (envelope-from bugzilla-noreply@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 4NT9634VFyz3scb for ; Fri, 9 Dec 2022 12:18:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670588299; 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: in-reply-to:in-reply-to:references:references; bh=xFz24+xU9jLB+RVbFRqrYfeDickMEhF0bDIwqJFdfLQ=; b=IEinXOMmAYnhOpucacCE1MsvVnvLW+3jok+qjdNkt7wtj1LDtHGEIIdB8S6bKCYEH4w9p6 wo/2KqekE88t42A7HZuEXMgCa0zodK1HVidWCytxutLWELV9e3OqP21tx5S5Pu3tks4EGY HP+vZybgWVVWu2MZSe/K+dfARIc5KkpylgzLSm71/5eENrNBYukvN6vgXI9ImaTtR7l1fk H0jFVjiT+ALMHw2TsEDhtcrJBUqRkIAiMBw8IiYJN4XDHiSgXAXZBF8s39a5SFLhy0XYOu hHHIOcl3xN/EGv0KhvDG1P8dl7b99ZGe48KRbj0sVpgBgTsoTy/+CVVMCudcAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670588299; a=rsa-sha256; cv=none; b=sT4GLQMV/csbYIyvVFOgwEHF2uS5hptiHBzoXPg+jiL88Fscg+g7jAFXdcS23sfc95OQly 12y2MZvtisBke92G1HfPEERLsDZaQW8s8psh1M0VO3aq4F2UEyzLCopzVMaLgaJiYcQsuS gTNv7sr0LQWBqUFv7FgJQib6333X9mRoLnaqqNcigWgAkXenMHiwlFomZNEAiRSGu/yjKV N5Tsity3CheN8BN7GyR4b1K8ic20x8yMqoYrvMVhkdwFkUwEmNwDroO+34qMILu4+6449b arZPRifxlcn8yne/3ZmRR0MV2e/dl+YgYmpTsVpOWjE/wJoJg6tRYC0d3e0Ykg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4NT9632bggzbRC for ; Fri, 9 Dec 2022 12:18:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2B9CIJm4035487 for ; Fri, 9 Dec 2022 12:18:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2B9CIJ29035486 for fs@FreeBSD.org; Fri, 9 Dec 2022 12:18:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 223015] [tmpfs] [patch] tmpfs does not support sparse files Date: Fri, 09 Dec 2022 12:18:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223015 --- Comment #12 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D37aea2649ff707f23d35309d882b38e9a= c818e42 commit 37aea2649ff707f23d35309d882b38e9ac818e42 Author: Konstantin Belousov AuthorDate: 2022-10-20 13:17:43 +0000 Commit: Konstantin Belousov CommitDate: 2022-12-09 12:17:12 +0000 tmpfs: for used pages, account really allocated pages, instead of file sizes This makes tmpfs size accounting correct for the sparce files. Also correct report st_blocks/va_bytes. Previously the reported value did not accounted for the swapped out pages. PR: 223015 Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D37097 sys/fs/tmpfs/tmpfs.h | 18 ++++++- sys/fs/tmpfs/tmpfs_subr.c | 118 ++++++++++++++++++++++++++++++++++++++++= ---- sys/fs/tmpfs/tmpfs_vfsops.c | 6 ++- sys/fs/tmpfs/tmpfs_vnops.c | 17 +++++-- sys/kern/uipc_shm.c | 2 +- 5 files changed, 144 insertions(+), 17 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=