From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Sandeen Subject: Re: [RFC/PATCH] - revert generic_fillattr stat->blksize to PAGE_CACHE_SIZE Date: Mon, 06 Nov 2006 16:37:12 -0600 Message-ID: <454FB918.9090007@redhat.com> References: <454FAE0A.3070409@redhat.com> <1162852069.11030.70.camel@kleikamp.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Eric Sandeen , Linux Kernel Mailing List , linux-fsdevel , Theodore Tso , Steve French Return-path: To: Dave Kleikamp In-Reply-To: <1162852069.11030.70.camel@kleikamp.austin.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Dave Kleikamp wrote: ooks good. Since cifs is affected by this patch, I propose that cifs > explicitly set stat->blksize: > > CIFS: Explicitly set stat->blksize > > CIFS may perform I/O over the network in larger chunks than the page size, > so it should explicitly set stat->blksize to ensure optimal I/O bandwidth > > Signed-off-by: Dave Kleikamp > > diff -Nurp linux.orig/fs/cifs/inode.c linux/fs/cifs/inode.c > --- linux.orig/fs/cifs/inode.c 2006-11-03 13:44:04.000000000 -0600 > +++ linux/fs/cifs/inode.c 2006-11-06 16:11:21.000000000 -0600 > @@ -1089,8 +1089,10 @@ int cifs_getattr(struct vfsmount *mnt, s > struct kstat *stat) > { > int err = cifs_revalidate(dentry); > - if (!err) > + if (!err) { > generic_fillattr(dentry->d_inode, stat); > + stat->blksize = CIFS_MAX_MSGSIZE; > + } > return err; > } Yep, I agree that this should go in too. Other filesystems probably need to recover from the crash diet as well :) Thanks, -Eric