From owner-freebsd-arch@FreeBSD.ORG Wed Jan 8 00:56:23 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5AF1B651 for ; Wed, 8 Jan 2014 00:56:23 +0000 (UTC) Received: from mail-qc0-x22a.google.com (mail-qc0-x22a.google.com [IPv6:2607:f8b0:400d:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1C6C111ED for ; Wed, 8 Jan 2014 00:56:23 +0000 (UTC) Received: by mail-qc0-f170.google.com with SMTP id e9so758616qcy.29 for ; Tue, 07 Jan 2014 16:56:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=GyXwkMUOcfR9p9m38/41W7AF2VwCXLp3REgnTo0I4PQ=; b=e15BuaJ9q0wxkhkknQRxmkQJbLok5ezCngjC7jV7AEMXNXV3CupAO2Fwwez4poVoeU rFAAEKt2+jCmLcUOD46gJ9SgBobL49jaWrQ5iwzcdix11sda0BdOjPoqIVkw1x4nQghZ 8WWK0f4e3BXT780lEZPbecTz05Kq+TqGCbsalDKc81UfRawlngHxIAmsp6vb2TbMYVzo SN3Ru+qY0D2/hUXV0Rd1Srq4c6lT4o+ubvWxt+06yNJJQLSQj8xMyJAUxSTILc9mti6V 3APOZkVPtD1EFfLvMadqzxx2tJPNawfH+eAmb8PHawcV4B8AJmkKN6Vh26ZKwtGxtUO8 kKDA== MIME-Version: 1.0 X-Received: by 10.49.38.37 with SMTP id d5mr203068304qek.17.1389142582302; Tue, 07 Jan 2014 16:56:22 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.52.8 with HTTP; Tue, 7 Jan 2014 16:56:22 -0800 (PST) Date: Tue, 7 Jan 2014 16:56:22 -0800 X-Google-Sender-Auth: IGzr7pQXnfnAR24-vakV-Y3c_DE Message-ID: Subject: [rfc] sendfile: refactor out common sendfile code into _do_sendfile() From: Adrian Chadd To: "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jan 2014 00:56:23 -0000 Hi, http://people.freebsd.org/~adrian/netflix/20140107-freebsd-sendfile-refactor-1.diff This refactors out the common code from both the sendfile and compat32 sendfile calls into a shared function. That way I can extend the sendfile behaviour and only have to update one location. What do people think? -a