From: Ian Jackson Subject: Re: [PATCH RFC 04/23] libxc: add support for FreeBSD Date: Thu, 17 Apr 2014 18:18:50 +0100 Message-ID: <21328.3322.917622.502715@mariner.uk.xensource.com> References: <1397657612-57277-1-git-send-email-roger.pau@citrix.com> <1397657612-57277-5-git-send-email-roger.pau@citrix.com> <21328.444.482919.479163@mariner.uk.xensource.com> <1397752750.24638.318.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wapxg-0007Vf-0x for xen-devel@lists.xenproject.org; Thu, 17 Apr 2014 17:18:56 +0000 In-Reply-To: <1397752750.24638.318.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org, Roger Pau Monne List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH RFC 04/23] libxc: add support for FreeBSD"): > On Thu, 2014-04-17 at 17:30 +0100, Ian Jackson wrote: > > > + /* Discard from the buffer cache. */ > > > + if ( posix_fadvise(fd, 0, cur, POSIX_FADV_DONTNEED) < 0 ) > > > + goto out; > > > > Which also means that the use of posix_fadvise is hardly safe. > > fadvise can quite legally be a noop. > > I think that's ok, it's for "reducing the impact on dom0" not > correctness, according to the commit which added it: Oh, good. Thanks for digging that up. Ian.