From owner-freebsd-arch Tue Mar 4 21:51:25 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90B1937B401 for ; Tue, 4 Mar 2003 21:51:24 -0800 (PST) Received: from mail26a.sbc-webhosting.com (mail26a.sbc-webhosting.com [216.173.237.36]) by mx1.FreeBSD.org (Postfix) with SMTP id 8C5AF43F93 for ; Tue, 4 Mar 2003 21:51:21 -0800 (PST) (envelope-from alc@imimic.com) Received: from www.imimic.com (64.143.12.21) by mail26a.sbc-webhosting.com (RS ver 1.0.63s) with SMTP id 047605; Wed, 5 Mar 2003 00:50:48 -0500 (EST) Message-ID: <3E659041.EC63D4E0@imimic.com> Date: Tue, 04 Mar 2003 23:50:57 -0600 From: "Alan L. Cox" Organization: iMimic Networking, Inc. X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Bosko Milekic Cc: Sean Chittenden , arch@freebsd.org Subject: Re: Should sendfile() to return ENOBUFS? References: <3E64FEA0.CCA21C7@imimic.com> <20030304215118.GJ79234@perrin.int.nxad.com> <20030304170837.A10281@unixdaemons.com> Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 7bit X-Loop-Detect: 1 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bosko Milekic wrote: > ... > What about only re-using the already allocated page if the timestamp > for the last modification matches the currently stored one? (i.e., > store the timestamp in the auxilary structure). I'm not sure this > would work in all cases, but it would serve as an OK compromise; or > maybe I'm just overlooking something? > I don't see the need for this. The vm_object being used in sendfile() is tied to the file's vnode. Thus, changes to the file will affect the vm_object used by sendfile(). Also, the sf_buf changes that I described have no effect on sendfile()'s data coherence. It remains the same. Alan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message