Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4463533pxa; Mon, 10 Aug 2020 09:37:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3WYyceVbtZhe+C3m9OGAbdZfeHx7mtgeTo6k34uvNrcTlVSmn+JOSpEDhZvfObAsxrN+M X-Received: by 2002:a17:906:e0d:: with SMTP id l13mr23514239eji.434.1597077434904; Mon, 10 Aug 2020 09:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597077434; cv=none; d=google.com; s=arc-20160816; b=QqsvNlL6lD15D7Mke1+Pjl1y7yMd9lfpJMKfjhNFsh70+VgS/Rsd1WdugOxavzWuvW 2Ob1DBF/rrXkaAESx531D7ZSlXNjwmsXNx4BCmH3WgV/ubPSXWzEecKWJNc2X5srVi+s xsU3XjkCudN7n3oUFW9VFMjvzzAkrpVqKRzs7LAxN93V4jilT0YMlZqX/Ua+9V2FBW9o CONbOktze8gonwqx6cLOV4WELw/mhlk1+KTkntAwRYjyq1GmugAiNDVF8YGNtcCTLaR3 tW/xJDQMbdUFLSZIY35Q0mvEOstCCpW9WhEof3DQr8vUBNHY768M4v0c0+bhQsOk0fIn 56Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=E7cstcAHVFGfhscj0UF342G+MM1KSXqD/P1R9pHujqc=; b=P/orrNyP3kU9QA8kzRnelK5ZAFOJ8NdlahS6o+HKn7rBaq+h2jA2niNXLYLObF5+db KMc7VkVONwH5hV0lgbaCqumP8A2p3rpsn0tk5WnqFNxxJVveUeM7NMomiDVzyF5CKLl1 kjWhfbC/s1/M4EQ9DEFx+R56fi1dzuTPX36E23czZXiDQ2ZNFauKTFep3+5aUA/vhP4O sxcGnG7T0xdIwFTBKX+Ct0vJqbjUwYSfHVWf8I+iDs3FoODzxd6cZUIwdJMmMKJGYHOL 6P56/a2aG5joiRrWvjIn1rHbkqwFgu8s+yWUAkE4JuPXK4CC6+zYy5Z5/cIF6ytWEyjC wIdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YV9tEoXX; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p12si8705038edy.553.2020.08.10.09.36.41; Mon, 10 Aug 2020 09:37:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@redhat.com header.s=mimecast20190719 header.b=YV9tEoXX; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727850AbgHJQgf (ORCPT + 99 others); Mon, 10 Aug 2020 12:36:35 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:25290 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727833AbgHJQgd (ORCPT ); Mon, 10 Aug 2020 12:36:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597077392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=E7cstcAHVFGfhscj0UF342G+MM1KSXqD/P1R9pHujqc=; b=YV9tEoXXLoSBTdBZfXyA4yI1CoocsTaPyuKoLd5zCJ0+APuQJlyDbVBinKQLjQOHIsgaCy YwVjaGHPW0pAJTzPozfHWeeJqNQTgHxss/MW0KgigVlofmtWgVKU0IrmCQDvwxSzmO2weR kfF5B3rFnRRY7GQF5XnvvZNabRkZfmU= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-385-xDURFU1uNju7tJRYeiawDQ-1; Mon, 10 Aug 2020 12:36:30 -0400 X-MC-Unique: xDURFU1uNju7tJRYeiawDQ-1 Received: by mail-ej1-f69.google.com with SMTP id m18so4101078ejl.5 for ; Mon, 10 Aug 2020 09:36:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E7cstcAHVFGfhscj0UF342G+MM1KSXqD/P1R9pHujqc=; b=pzb1N7bVEMuVdan5OFCeKlsvqRigM2jaILJPe2ycppzrvljY8cYMlqygU1slzSNiPE 6CKYHgcQ1xH6ycLjArypZonB6yEH+v/jodnMJv4CvBXsKL/p2UZp2WjWT2F46hGihsQA hpFhkmixnGkfSJd7YZGjog5mWUogj7ziQFxkzYz6Yf7I+OARH4IV2zwZ+b1xNNqOgFj+ QFxjAjS0CrWtPrMEgA4r4eShwA/wl4ONYkmCzK4QZ8mLkqBVi2h9iO8giH97gF7oSu9V 2hjpkpDJQvNaLepiYUM3wMMEgo4nrw5m6bVmPbT0LTqUlOHtng0fJSbtHpvfbZfbCBmt tYSA== X-Gm-Message-State: AOAM5314KDgPr4SMYkWxI91XKtY3tNDGembas2dfZ+XxRzllLWtrUfwl mBhQKVLTucAfshdt44kSDdL5pM2wzSyxeH8KIvWIxyXnutbIqrKzhW+2AU0915vvUg21xKYq9AE 9CpbWCrTLGGquxdM705DTHya6n6AAMXbxgoA1 X-Received: by 2002:a17:906:a4b:: with SMTP id x11mr23475872ejf.83.1597077389406; Mon, 10 Aug 2020 09:36:29 -0700 (PDT) X-Received: by 2002:a17:906:a4b:: with SMTP id x11mr23475853ejf.83.1597077389176; Mon, 10 Aug 2020 09:36:29 -0700 (PDT) MIME-Version: 1.0 References: <447452.1596109876@warthog.procyon.org.uk> <1851200.1596472222@warthog.procyon.org.uk> <667820.1597072619@warthog.procyon.org.uk> <672169.1597074488@warthog.procyon.org.uk> In-Reply-To: <672169.1597074488@warthog.procyon.org.uk> From: David Wysochanski Date: Mon, 10 Aug 2020 12:35:53 -0400 Message-ID: Subject: Re: [GIT PULL] fscache rewrite -- please drop for now To: David Howells Cc: Steve French , Linus Torvalds , Alexander Viro , Matthew Wilcox , Christoph Hellwig , Jeff Layton , Trond Myklebust , Anna Schumaker , Steve French , Eric Van Hensbergen , linux-cachefs@redhat.com, linux-afs@lists.infradead.org, linux-nfs , CIFS , ceph-devel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, linux-fsdevel , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Aug 10, 2020 at 11:48 AM David Howells wrote: > > Steve French wrote: > > > cifs.ko also can set rsize quite small (even 1K for example, although > > that will be more than 10x slower than the default 4MB so hopefully no > > one is crazy enough to do that). > > You can set rsize < PAGE_SIZE? > > > I can't imagine an SMB3 server negotiating an rsize or wsize smaller than > > 64K in today's world (and typical is 1MB to 8MB) but the user can specify a > > much smaller rsize on mount. If 64K is an adequate minimum, we could change > > the cifs mount option parsing to require a certain minimum rsize if fscache > > is selected. > > I've borrowed the 256K granule size used by various AFS implementations for > the moment. A 512-byte xattr can thus hold a bitmap covering 1G of file > space. > > Is it possible to make the granule size configurable, then reject a registration if the size is too small or not a power of 2? Then a netfs using the API could try to set equal to rsize, and then error out with a message if the registration was rejected.