Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754611AbbDGNMA (ORCPT ); Tue, 7 Apr 2015 09:12:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38493 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753925AbbDGNL4 (ORCPT ); Tue, 7 Apr 2015 09:11:56 -0400 Message-ID: <5523D793.7010008@redhat.com> Date: Tue, 07 Apr 2015 14:11:47 +0100 From: Steven Whitehouse User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Dmitry Monakhov , linux-kernel@vger.kernel.org CC: linux-fsdevel@vger.kernel.org, cluster-devel@redhat.com, viro@zeniv.linux.org.uk Subject: Re: [Cluster-devel] [PATCH 08/16] gfs2: use is_xxx_kiocb instead of filp->fl_flags References: <1428174805-853-1-git-send-email-dmonakhov@openvz.org> <1428174805-853-9-git-send-email-dmonakhov@openvz.org> In-Reply-To: <1428174805-853-9-git-send-email-dmonakhov@openvz.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 995 Lines: 32 Hi, On 04/04/15 20:13, Dmitry Monakhov wrote: > Cc: cluster-devel@redhat.com > Signed-off-by: Dmitry Monakhov Acked-by: Steven Whitehouse Steve. > --- > fs/gfs2/file.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c > index f6fc412..25da110 100644 > --- a/fs/gfs2/file.c > +++ b/fs/gfs2/file.c > @@ -709,7 +709,7 @@ static ssize_t gfs2_file_write_iter(struct kiocb *iocb, struct iov_iter *from) > > gfs2_size_hint(file, iocb->ki_pos, iov_iter_count(from)); > > - if (file->f_flags & O_APPEND) { > + if (is_append_kiocb(iocb)) { > struct gfs2_holder gh; > > ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &gh); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/