From patchwork Sat Apr 4 19:13:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Monakhov X-Patchwork-Id: 6161481 Return-Path: X-Original-To: patchwork-v9fs-devel@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 831FCBF4A6 for ; Sat, 4 Apr 2015 19:35:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AB28520328 for ; Sat, 4 Apr 2015 19:35:19 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B484120303 for ; Sat, 4 Apr 2015 19:35:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YeTqd-00043K-7s; Sat, 04 Apr 2015 19:35:15 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YeTqc-00043F-A6 for v9fs-developer@lists.sourceforge.net; Sat, 04 Apr 2015 19:35:14 +0000 Received-SPF: softfail (sog-mx-2.v43.ch3.sourceforge.com: transitioning domain of openvz.org does not designate 195.214.232.25 as permitted sender) client-ip=195.214.232.25; envelope-from=dmonakhov@openvz.org; helo=relay.sw.ru; Received: from mailhub.sw.ru ([195.214.232.25] helo=relay.sw.ru) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1YeTqa-0007rd-9n for v9fs-developer@lists.sourceforge.net; Sat, 04 Apr 2015 19:35:14 +0000 Received: from mct2.qa.sw.ru ([10.29.1.63]) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id t34JDUJD024798; Sat, 4 Apr 2015 22:13:37 +0300 (MSK) From: Dmitry Monakhov To: linux-kernel@vger.kernel.org Date: Sat, 4 Apr 2015 23:13:13 +0400 Message-Id: <1428174805-853-5-git-send-email-dmonakhov@openvz.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1428174805-853-1-git-send-email-dmonakhov@openvz.org> References: <1428174805-853-1-git-send-email-dmonakhov@openvz.org> X-Spam-Score: 0.5 (/) X-Headers-End: 1YeTqa-0007rd-9n Cc: linux-fsdevel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, Dmitry Monakhov , viro@zeniv.linux.org.uk Subject: [V9fs-developer] [PATCH 04/16] 9p: use is_xxx_kiocb instead of filp->fl_flags X-BeenThere: v9fs-developer@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: v9fs-developer-bounces@lists.sourceforge.net 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 Cc: v9fs-developer@lists.sourceforge.net Signed-off-by: Dmitry Monakhov --- fs/9p/vfs_file.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index b401337..c2a120a 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c @@ -509,7 +509,8 @@ v9fs_file_write(struct file *filp, const char __user * data, loff_t origin = *offset; - retval = generic_write_checks(filp, &origin, &count, 0); + retval = __generic_write_checks(filp, &origin, &count, 0, + filp->f_flags & O_APPEND); if (retval) goto out;