From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AFF0EB64D7 for ; Wed, 21 Jun 2023 09:42:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232043AbjFUJl4 (ORCPT ); Wed, 21 Jun 2023 05:41:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232001AbjFUJlO (ORCPT ); Wed, 21 Jun 2023 05:41:14 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93C2B1BDA for ; Wed, 21 Jun 2023 02:40:33 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-570282233ceso49951867b3.1 for ; Wed, 21 Jun 2023 02:40:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687340433; x=1689932433; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gybbZJh87t3Qbe/MI3uBbaP9SdOn3CjaNUEl9acnWiU=; b=LMsWpjK/zwBZNA1C5SJA9i5BdNGjDeTVa2OgQLr/7lE4liaOh5aUKAM7KRFsGokN8A dm8Zr0tt2azGKtuRNawsivTN9vPbiUN9S4IHK7njdo7Kut7rp9jW7k2fntYJ1XCXFUNE B9RGljUqsGrDN2R+e43B6gpPxoySxfiXM6dQI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687340433; x=1689932433; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gybbZJh87t3Qbe/MI3uBbaP9SdOn3CjaNUEl9acnWiU=; b=RbiW2ojV1dkDs/aAFVziOszpefHCMuJQyzeDNt3GWaStVVnsA6JOO71tsC0KaH2wCE yr6BycUkQvwg51MJg3JJ7uzPFxPsjizkGp8U4Z9DPLZuU6e1/OPB0LjVcY3ZEVJ7laoc XcHvUIi+aMeWup8fd/wooCA8gEpU1iisSmAQqwDFGCSY1dTQlKgRi1ZYPdlPRRioIMGD zOGQavdxGlxOsGOwBGeBgajLnFxfN+4l7DswVPF2QHZVTAshigVkndrfz0oSrge70I2a /XHnot7fJ7QFC0KOS4v1YrN5dcD8Ss/Sd29KCtdmHzBfWanQvj0nV47rNFZYSicslVbe cFfg== X-Gm-Message-State: AC+VfDzRlreXP+XCIo0C7bcq+S7yUvdYp+7WpoCylLx4csBz1DDG7dx7 9VYPf1/3N+6WHJPgDCY84gS0OPCzOxbK4FfDQXAEJw== X-Google-Smtp-Source: ACHHUZ6Xo6f+HdwrjmUZ92VYxxeamu+uiO1MAEKtWfZVchSbMrG/0dyJ7p/uTcOURmMpfhQ1An4kwnDTzD4qwozqoag= X-Received: by 2002:a0d:eb89:0:b0:56d:3d83:15cb with SMTP id u131-20020a0deb89000000b0056d3d8315cbmr13588007ywe.44.1687340432773; Wed, 21 Jun 2023 02:40:32 -0700 (PDT) MIME-Version: 1.0 References: <20230620151328.1637569-1-keiichiw@chromium.org> <20230620151328.1637569-3-keiichiw@chromium.org> In-Reply-To: From: Keiichi Watanabe Date: Wed, 21 Jun 2023 18:40:21 +0900 Message-ID: Subject: Re: [PATCH 2/3] fuse: Add negative_dentry_timeout option To: Miklos Szeredi Cc: =?UTF-8?B?SnVuaWNoaSBVZWthd2EgKOS4iuW3nee0lOS4gCk=?= , LKML , mhiramat@google.com, takayas@chromium.org, drosen@google.com, sarthakkukreti@google.com, Jonathan Corbet , linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 21, 2023 at 1:07=E2=80=AFPM Miklos Szeredi = wrote: > > On Wed, 21 Jun 2023 at 00:53, Junichi Uekawa (=E4=B8=8A=E5=B7=9D=E7=B4=94= =E4=B8=80) wrote: > > > > Hi > > > > > > > > 2023=E5=B9=B46=E6=9C=8821=E6=97=A5(=E6=B0=B4) 4:28 Miklos Szeredi : > >> > >> On Tue, 20 Jun 2023 at 17:14, Keiichi Watanabe = wrote: > >> > > >> > Add `negative_dentry_timeout` mount option for FUSE to cache negativ= e > >> > dentries for the specified duration. > >> > >> This is already possible, no kernel changes needed. See e.g. > >> xmp_init() in libfuse/example/passthrough.c. > >> > > > > Thank you for the pointer! > > > > So reading libfuse/fuse.c, fuse_lib_lookup does a reply with e.ino=3D0 = err=3D0 (instead of ENOENT) with e.entry_timeout=3Dnegative_timeout, > > for each lookup (and there's no global configuration but that's okay) ? > > Yes. Oh, good to know! I could make it work in our VMM (crosvm) without any kernel changes. https://crrev.com/c/4630879 Thanks a lot! Keiichi > > > Thanks, > Miklos