From patchwork Tue Dec 15 17:29:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Kinsburskiy X-Patchwork-Id: 7856111 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0FF65BEEE1 for ; Tue, 15 Dec 2015 17:29:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4050C2020F for ; Tue, 15 Dec 2015 17:29:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 771B8201EC for ; Tue, 15 Dec 2015 17:29:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965492AbbLOR3P (ORCPT ); Tue, 15 Dec 2015 12:29:15 -0500 Received: from swsoft-msk-nat.sw.ru ([195.214.232.10]:46479 "EHLO sandbox" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965385AbbLOR3O (ORCPT ); Tue, 15 Dec 2015 12:29:14 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by sandbox (8.14.8/8.14.8) with ESMTP id tBFHT6nV016448; Tue, 15 Dec 2015 21:29:06 +0400 Subject: [PATCH RFC 2/3] splice: new SPLICE_F_PACKET flag introduced From: Stanislav Kinsburskiy To: linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org Cc: criu@openvz.org, skinsbursky@virtuozzo.com Date: Tue, 15 Dec 2015 21:29:06 +0400 Message-ID: <20151215172906.16355.33329.stgit@localhost.localdomain> In-Reply-To: <20151215172356.16355.29361.stgit@localhost.localdomain> References: <20151215172356.16355.29361.stgit@localhost.localdomain> User-Agent: StGit/0.17-dirty MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This flag is used by kernel only to represent pipe packetized mode for splice engine. Signed-off-by: Stanislav Kinsburskiy --- include/linux/splice.h | 5 +++++ 1 file changed, 5 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/splice.h b/include/linux/splice.h index da2751d..13ca14d 100644 --- a/include/linux/splice.h +++ b/include/linux/splice.h @@ -20,6 +20,11 @@ #define SPLICE_F_MORE (0x04) /* expect more data */ #define SPLICE_F_GIFT (0x08) /* pages passed in are a gift */ +#ifdef __KERNEL__ + +#define SPLICE_F_PACKET (0x1000) /* pipe buffers have to be packetized */ + +#endif /* * Passed to the actors */