Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4103489pxf; Tue, 16 Mar 2021 06:00:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0Iu4QCC0zf+rOxLJwNNINMiOv5qKMi62p8nnJHrq5E+/aHxT/WJ17GAwzE32JjJF3Ux7R X-Received: by 2002:a17:907:3e92:: with SMTP id hs18mr28853997ejc.396.1615899654042; Tue, 16 Mar 2021 06:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615899654; cv=none; d=google.com; s=arc-20160816; b=YKNnFW1GqEGjKzmfgVzD4IXsbfZdfmRKvSjgz4qGmu473Nrhryazt8f2xn7JgkschA e5xeK+f5PMoq1JcMsmeieRN39u4OlQi/Yko7mjh/WWfgmdg54dmqxXNbTZrVJ7vxnk4b bBLrR4jhC7PnnP7z1uG7B951AYIzIPYcorpRFxqCR2cTWKixNxh4zCI8EIkTn/fM6Bwd ITT8B/0OSOFsYJgRREK2ROqFBO/fjgmWE2XXpiTm47EO7ovSTzlcqC/5bd/NVs7Kh5dE khguY3+1inwX3epDh7no62YM+2wCqsiXbGNn/TPiejG4GxIoRK9DTnWGirZK5xrC+/ZR vMnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=e8Vte+BbSap8YpwjFJ75g2azWXd0zsCfSFory9ijCek=; b=NO6/7bjpDNWWaSEd4s2Sc0eRRqaOkqLnMvCRmq9O1GJl8hiZbwEY92VVPT0Fkf/ZaP 9W4anT/N6LxFcnSMvcHaWdk6pL1C3knW8qYWOgKFxCcspKQXAYVPzXuZaeEy4O2DnLzV zwg8zeA9wxtllsfjuqdSmrRWyzSBAuTraIQ/AXsu1pRsq25MCyeN5GuDVPg05WJgOAH2 gQsr0o6j1fvSVf6zR5F8WlV7+rRFEzLfdnhjXLcdiggfMymnIDUCwTST0ISeADaKpOkT dwEWbrp021jQQiMSgUKQ/ZVRODs1bV+n6dGhySyfD2npSpcyhdsmrlGn4f252QR7n0Sl 3JJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="LoU/IxOt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w26si12786607eju.454.2021.03.16.06.00.30; Tue, 16 Mar 2021 06:00:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="LoU/IxOt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235686AbhCPFsh (ORCPT + 99 others); Tue, 16 Mar 2021 01:48:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235602AbhCPFsA (ORCPT ); Tue, 16 Mar 2021 01:48:00 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59DBEC06174A; Mon, 15 Mar 2021 22:48:00 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id x7-20020a17090a2b07b02900c0ea793940so784849pjc.2; Mon, 15 Mar 2021 22:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e8Vte+BbSap8YpwjFJ75g2azWXd0zsCfSFory9ijCek=; b=LoU/IxOthJou8zwK+tz3hGZJjyEE9k6/05PoHDFjex11wE1IcW2TEm9vDtxBxOdHwN hE9s8SKkv5JQyORt7Fg+1zVz0j4a+0Rg3uuhoe6k+cjVvVh6eLD2ypva9EpbTz22zmGi ghopwouOv6bhOpsVjiq2+dRJCyq6X0kcL7ydnG3YKufVZB2ZsjJm/WG9XsMtLN59NEun xNxIypqQTOS6kG8EZqiKYGB/KG8UiMOh2FGcJ42ZL+DmAfG99GG/V67TEY9go1x6x/jl WpHk4wHYkAzY6hexO6dWGDQvGu4e4GTQyxi15n50j4XkawIYdazZG5gX7mPHxOrQtzYi 6pvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e8Vte+BbSap8YpwjFJ75g2azWXd0zsCfSFory9ijCek=; b=L/LgNkmy367sHQdA9i3NoCZK2h7mUOC8vJ9ZIrgygvdJyRd2DMobccMxK/tiCz4Khh AGpkrZl++JBMU5hX3FpH3PahdzQQhLjGqgKegObsUAQtfvRQrEsmaNEid1Pr76Te+H3f SXO70A7zhIEfLtsBQBO2c3+HHroUbYJ2KDfJ4U657yJutpgn51US16QjKQjd26gr0sxt WrYt54994JuThEprqwRIQ2RlMMlaF5iairfCj7wf3wlPSHTT0dOs+wLtkuYz0wGttNZS /oWGL8U91I4/qW2eSFevx9xyGmCdCVl7evedKyQgUr/KeAP+C1CUBXyJ985eWdt9gUDd Larw== X-Gm-Message-State: AOAM532Xw0dEWwzk6PZOPJl7QcUz1RnVHUXlACHGRvVabZ+9ZryMTGBX CJaVjUY0iRpxTvFXjvO1sAk= X-Received: by 2002:a17:90b:4d05:: with SMTP id mw5mr3082534pjb.236.1615873679902; Mon, 15 Mar 2021 22:47:59 -0700 (PDT) Received: from cl-arch-kdev.. (cl-arch-kdev.xen.prgmr.com. [2605:2700:0:2:a800:ff:fed6:fc0d]) by smtp.gmail.com with ESMTPSA id l22sm15096513pfd.145.2021.03.15.22.47.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 22:47:59 -0700 (PDT) From: Fox Chen To: neilb@suse.de Cc: Fox Chen , corbet@lwn.net, vegard.nossum@oracle.com, viro@zeniv.linux.org.uk, rdunlap@infradead.org, grandmaster@al2klimov.de, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH v2 10/12] docs: path-lookup: update WALK_GET, WALK_PUT desc Date: Tue, 16 Mar 2021 13:47:25 +0800 Message-Id: <20210316054727.25655-11-foxhlchen@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210316054727.25655-1-foxhlchen@gmail.com> References: <20210316054727.25655-1-foxhlchen@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WALK_GET is changed to WALK_TRAILING with a different meaning. Here it should be WALK_NOFOLLOW. WALK_PUT dosn't exist, we have WALK_MORE. WALK_PUT == !WALK_MORE And there is not should_follow_link(). Related commits: commit 8c4efe22e7c4 ("namei: invert the meaning of WALK_FOLLOW") commit 1c4ff1a87e46 ("namei: invert WALK_PUT logics") Signed-off-by: Fox Chen --- Documentation/filesystems/path-lookup.rst | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Documentation/filesystems/path-lookup.rst b/Documentation/filesystems/path-lookup.rst index 0d41c61f7e4f..abd0153e2415 100644 --- a/Documentation/filesystems/path-lookup.rst +++ b/Documentation/filesystems/path-lookup.rst @@ -1123,13 +1123,11 @@ stack in ``walk_component()`` immediately when the symlink is found; old symlink as it walks that last component. So it is quite convenient for ``walk_component()`` to release the old symlink and pop the references just before pushing the reference information for the -new symlink. It is guided in this by two flags; ``WALK_GET``, which -gives it permission to follow a symlink if it finds one, and -``WALK_PUT``, which tells it to release the current symlink after it has been -followed. ``WALK_PUT`` is tested first, leading to a call to -``put_link()``. ``WALK_GET`` is tested subsequently (by -``should_follow_link()``) leading to a call to ``pick_link()`` which sets -up the stack frame. +new symlink. It is guided in this by two flags; ``WALK_NOFOLLOW``, which +suggests whether to follow a symlink if it finds one, and +``WALK_MORE``, which tells whether to release the current symlink after it has +been followed. ``WALK_MORE`` is tested first, leading to a call to +``put_link()``. Symlinks with no final component ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- 2.30.2