Message ID | 20240219062730.3031391-12-hch@lst.de (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD44DC48260 for <linux-mm@archiver.kernel.org>; Mon, 19 Feb 2024 06:28:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B26948D0010; Mon, 19 Feb 2024 01:27:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AD6998D0008; Mon, 19 Feb 2024 01:27:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 92ADA8D0010; Mon, 19 Feb 2024 01:27:56 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 7848E8D0008 for <linux-mm@kvack.org>; Mon, 19 Feb 2024 01:27:56 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 4ACF4140212 for <linux-mm@kvack.org>; Mon, 19 Feb 2024 06:27:56 +0000 (UTC) X-FDA: 81807572952.20.5F77317 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf15.hostedemail.com (Postfix) with ESMTP id ACEE8A0012 for <linux-mm@kvack.org>; Mon, 19 Feb 2024 06:27:54 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=2gyvYLq8; spf=none (imf15.hostedemail.com: domain of BATV+994827af29a55d2021e7+7484+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+994827af29a55d2021e7+7484+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708324074; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=o1hweSz38RYb00ePEUoeWH5QKSAPHiuuZqJTaYjg4ME=; b=QOy9xswXgTNssnS0LVm7X2d69cy7WlMNN+iTk6pSUm80Ci3WYfMI7HytlS4NaVHvHiC+jp eI9TF7Jq3wcHquJRuGvqrFVH3vUaN1gc0OKvO7Xcl+G95zRoAigi2NWXq5QzBCPJ/PJksy 3Xo36UlIXL3DrTajW6YVodO+CATpq8I= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708324074; a=rsa-sha256; cv=none; b=SfvlKcftgs7/UHzskBlxFxzg3m7dPmJaB/4M3DLCfrgQ7ewqeeAW/aImUsREChJ04uTnLQ WhfE3G98r7unWJBhkosHhW1lTUfVlavLsb6W80ANZS1d24JcxdkNycijxympCvRgVEFcTj 6L2tSKv89J/vMYntDnVI9Y+Q1r6yP/Y= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=2gyvYLq8; spf=none (imf15.hostedemail.com: domain of BATV+994827af29a55d2021e7+7484+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+994827af29a55d2021e7+7484+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=o1hweSz38RYb00ePEUoeWH5QKSAPHiuuZqJTaYjg4ME=; b=2gyvYLq8mbKaJ7NKdsAaeSwbT9 1eROmAQ10UrNavhRg+70C7Ejm1uLfG2JeO5CL0/YDzeT50nvn0DGkqiKm8/WalQ7mSKc5s70ZQVqT 3gJwWsycYuHsYJ9wwi5CVdLOeZ9O/tDKLxdydy1JH05zOr33icc3XmuMvW3wh/TAnNFXW9RUj6/vW EGShW5N+4lVXTXO9bL9VUUGGtJVGuQWXY7FTzhJV2sR1vnOnwudWgV4fSuXceLqNQbG6QudzcvOuZ Rkw6qye0/RmLQltWYT3liXBelPjRnAAdF8bwvIe7opDoJuic+F3mWZFuP78CtMLEAdXUblO8M6bqL pTGq2woA==; Received: from 2a02-8389-2341-5b80-39d3-4735-9a3c-88d8.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:39d3:4735:9a3c:88d8] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbx84-00000009FEF-0rbU; Mon, 19 Feb 2024 06:27:52 +0000 From: Christoph Hellwig <hch@lst.de> To: Chandan Babu R <chandan.babu@oracle.com>, "Darrick J. Wong" <djwong@kernel.org>, Hugh Dickins <hughd@google.com>, Andrew Morton <akpm@linux-foundation.org> Cc: Hui Su <sh_def@163.com>, linux-xfs@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 11/22] xfs: don't modify file and inode flags for shmem files Date: Mon, 19 Feb 2024 07:27:19 +0100 Message-Id: <20240219062730.3031391-12-hch@lst.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240219062730.3031391-1-hch@lst.de> References: <20240219062730.3031391-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from <hch@infradead.org> by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Stat-Signature: qymwwer6g6a9jfemjwjcc4jcjxcrqcp6 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: ACEE8A0012 X-Rspam-User: X-HE-Tag: 1708324074-754330 X-HE-Meta: U2FsdGVkX1/tb4f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xKy73nF4H+IffCHFwK7kxGfVMNWoyupjJVIrXxM2N6NUBFhB/6foENcp5D8qGRSHjmuMbiBEPRYF+SsWt/xxSe83j6km4NcOr1w/hQGc/B8F7VLs8S7KgP4+Rx4m2UA+zhbnPp39Mj+Tg8SYWl1gWq3M1LFTuO2ZP6DXR6PCtI4UllG0MolWtCYkR42O+6JtnYSXeVCxYJbjHIiLQok+f0F5frarBlvw9Jluv0ubvYyzyhhWz5NVOZGeEvDnGRnmeZAnh+e5L6+bBWW13cF01XEWm0luSbeeQ3NC65PDXMqoA26QwYHVW/CcBO4RWAdeNZBwO2/NdNWHlzHlNBMnjzmbAGD18twxlBREL5o0LG X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
[01/22] mm: move mapping_set_update out of <linux/swap.h>
|
expand
|
diff --git a/fs/xfs/scrub/xfile.c b/fs/xfs/scrub/xfile.c index 99a2b48f5662e6..95250db81981ab 100644 --- a/fs/xfs/scrub/xfile.c +++ b/fs/xfs/scrub/xfile.c @@ -74,22 +74,7 @@ xfile_create( goto out_xfile; } - /* - * We want a large sparse file that we can pread, pwrite, and seek. - * xfile users are responsible for keeping the xfile hidden away from - * all other callers, so we skip timestamp updates and security checks. - * Make the inode only accessible by root, just in case the xfile ever - * escapes. - */ - xf->file->f_mode |= FMODE_PREAD | FMODE_PWRITE | FMODE_NOCMTIME | - FMODE_LSEEK; - xf->file->f_flags |= O_RDWR | O_LARGEFILE | O_NOATIME; inode = file_inode(xf->file); - inode->i_flags |= S_NOCMTIME | S_NOATIME; - inode->i_mode &= ~0177; - inode->i_uid = GLOBAL_ROOT_UID; - inode->i_gid = GLOBAL_ROOT_GID; - lockdep_set_class(&inode->i_rwsem, &xfile_i_mutex_key); trace_xfile_create(xf);