Message ID | 20241117213206.1636438-1-cel@kernel.org (mailing list archive) |
---|---|
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 B30E1D10F32 for <linux-mm@archiver.kernel.org>; Sun, 17 Nov 2024 21:32:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EE6418D0019; Sun, 17 Nov 2024 16:32:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E944B8D0018; Sun, 17 Nov 2024 16:32:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D5A4C8D0019; Sun, 17 Nov 2024 16:32:25 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id B06718D0018 for <linux-mm@kvack.org>; Sun, 17 Nov 2024 16:32:25 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 56F99160125 for <linux-mm@kvack.org>; Sun, 17 Nov 2024 21:32:25 +0000 (UTC) X-FDA: 82796884422.22.12A2030 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf25.hostedemail.com (Postfix) with ESMTP id F2B44A0003 for <linux-mm@kvack.org>; Sun, 17 Nov 2024 21:31:48 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ktQOITeW; spf=pass (imf25.hostedemail.com: domain of cel@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=cel@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731878964; 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:references:dkim-signature; bh=ssMUieaOkpGEn5JyriMb8g+BWplwHVm/k9aQIrLpwks=; b=b+WtN3DH9k+cEbZkaCj1X9wt8oVS3ujrgwU357gUNieJ6mfmfdV5p/uLuwMkqCGjpmzNNl IynNQ1W2Oe3YkaL3fn0+Bha9t6xgKX+fv4q2SikNU/sMtlF1mmAOXNEeKYF15LOSABP1ij or6exTEE+HQgAz8k56gGnlpDDA9cYhE= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ktQOITeW; spf=pass (imf25.hostedemail.com: domain of cel@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=cel@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731878964; a=rsa-sha256; cv=none; b=2v6Q1s4Kt0gIOIT9FeZBbrqhHt30TfTau9jbg+EiTu3KHKSCN/00AJ7vscZcQ7QlZ/+9km zlpNgr1+Rm3hiYRguyJdZoYVOXtE9QSf6OJdrvf8QXE3zfaDDsWxOEJgbq99iHJbJL0cc9 i3FFeVDI+3ym4zx/lyDEULExYy09gGo= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 77329A40D3E; Sun, 17 Nov 2024 21:30:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 411A5C4CED7; Sun, 17 Nov 2024 21:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731879142; bh=auLBAMGSZHiKlVkZKnG1xgpLktKCy7bf3uvnYdjQUyw=; h=From:To:Cc:Subject:Date:From; b=ktQOITeWiAO6ZOstz30br39ce7fBKKN1HueKrEuyVfS89bQTG6f9pNLbY7Z5m30DP 3AsgTouvG9jGPY6sjtZhMx6/oTmWNY9x6gcZSvkZpQPTAq/TB7YgbWJPyPPGs3eknc U0x3gtdVVHKkNMTg5Jadajc9af+Uov6v9HmNmtYIj40rLkoQD7ZAPBVREQqiHodiSv gB5ujBZcA18+0zgcadQ3CD/Tyqu2tMGVN5rkx1D8WSHF1uyCpHE5MfUHTkpMvwrrH8 IyCRPoV7uCNewkAIQnOOAe3aYtO8BIS6A1IXddB3nNHDXs1CA2xrtRSukNs0wzAkNN HtqM+nO5i5UhQ== From: cel@kernel.org To: <linux-mm@kvack.org>, <linux-fsdevel@vger.kernel.org>, Hugh Dickens <hughd@google.com> Cc: yukuai3@huawei.com, yangerkun@huaweicloud.com, Chuck Lever <chuck.lever@oracle.com> Subject: [RFC PATCH 0/2] Improve simple directory offset wrap behavior Date: Sun, 17 Nov 2024 16:32:04 -0500 Message-ID: <20241117213206.1636438-1-cel@kernel.org> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: F2B44A0003 X-Stat-Signature: isnjk85y1nam9qjgiohbuxjz9toto4nz X-Rspam-User: X-HE-Tag: 1731879108-558746 X-HE-Meta: U2FsdGVkX1/NoZ5gmAcfTcp4ovw6gzoCMbbrsz+MjoK3dzmK30dzuHzkhkSGgwqZoA55kPMkgSHvGYqpqtYLQsRklVsBNRCzkb7ENIaBNNAHrp1481+AFwrIgMxLa9ZmC92E9Y7x9HDvDHUkCKryGI4VHzXrRQ9vsODBIMgCY7AY8LkiF/m6GnLZC+GMYxC26eS7r9V1cIuUPNdjxHMA6yuuF9k8YFGqLH+iMjr3F1u8rtpxlnvc41C4Jtz57/9K/bJESTMR6RdlKAj1mf+hpetYN+V6Qzy5kFbBgAIK8C+qtNStx8O5ePeIQvYWGTDcMsiPEZiEEHEtrb4Y0M+B3L76RnAftWXmf7GCPrpNR2AbwhvBNP3y7zqwSlTd9tmidJrvM1dO6svW9+G8Miy0/7Uf76+B4fmRnaB41j0adzkCKjSxX0ipf99TWRuOTcuTzSd1yFHpPLI84XkTdiUcbaYVwtxEiT4Iat9893Vb7+IuWYj6pvUxG2ftMCRx04o3IkpCMlVrzVWyW4RfsY7Xbnscz9OswNa0N7B0GsqxxmPZQiC+dN0qUaZjaV07Njw1SK/NrSxF7gHkx6E8cH0ssz0ko6jFCfHlnDlK4M5tdB2sa+190mjZ32yijtYZXu3pK0JfjzIn8DP7w8BIrV1ZUKV1yMJY5I7vgtCTOR29J+HngCyx5QMiER5eYlIux9bGX0iF9sWJbFfMUFzHbMZb6S8Dpn1YAUUgfbhXzMj42jFvUMu84kRQb7fvdRaP5Mt8IUZaZag1wFXqevrVIaniNgIuZJxs2zOb5AzMpfoBgePZqWVWSi6657UgVeBjwBoENeLITT3ECq7VBO3VUWwkKk6I+IV/LyVw6uAcV/DYA2H9gecHrce2Q0aLsNebfuOXWI576Pn1Lhy1eotdqoVginAiiUtFn524ek0I2jpVyfiAY67IsTR+dEQ0T/YCsAHNqqECUOGQARBAe2jGpuZ CN/Mres5 eecxS9I+7lfh6oNBh14PzdYIPHIwbtbmgXhunYlQ8rIjxU/u1Hkqgi8wfhN07fwQBmuDZ1fluT20XrTu0sC0aOTGg7+hfB4J6fXXnz4Ko5/s1iHUH9qkVvgfzq+8LjZynf98EG2ykAubOYbFbzyqkngkP1AMYC15r6/MavnPE3GRXd3KOsA+K5kGRebyDSUke66/y5rNKmuAXUjLtWORkDVUyQMDT1iMWKc12YXPww9qEEDGHircxRIvU4mfUItbzGH3H8x81y5113dqtGIGg/niwJA== 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 |
Improve simple directory offset wrap behavior
|
expand
|
From: Chuck Lever <chuck.lever@oracle.com> This series attempts to narrow some gaps in the current tmpfs directory offset mechanism, based on misbehaviors reported by Yu Kuai <yukuai3@huawei.com> and Yang Erkun <yangerkun@huawei.com>. It does not fully close the window on bad behavior, as noted in the patch description of 2/2. Perhaps discussion and review can identify improvements that further clean up the corner cases. The new mechanism attempts to re-use existing fields in struct dentry rather than adding new fields, and is meant to be back ported to LTS once it is merged upstream. The patches currently pass xfstests, in particular generic/736. The series has been pushed to: https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/log/?h=nfsd-testing Chuck Lever (2): libfs: Return ENOSPC when the directory offset range is exhausted libfs: Improve behavior when directory offset values wrap fs/libfs.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-)