Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4591208yba; Tue, 7 May 2019 22:33:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxH1cl06Bbz6+47vpTIc9/m6AatbqfPZc2MSxVKLF8dvgfbzzMdMIxeiWrBsrF1mq2Ain1X X-Received: by 2002:a65:5241:: with SMTP id q1mr23387606pgp.298.1557293592640; Tue, 07 May 2019 22:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557293592; cv=none; d=google.com; s=arc-20160816; b=awCRFJG9PPdkjh1ULftldMO65EX1bBx2f/rqOM6souxMHR0kxXRwtbwK6lcLKJn0PY UWXWEnpOzEdo/INMPKI0ukagru6J8pZUpUfFX0nmW8PwV1yGNIluI8Wx8UMJAVIzMWHS JgDWwN7GLS+aSbNQNLW+wbnsDIPkadfuPlXKTGX9pewVY0KKBwFUxGTMFwhaFUwSyQ2X Z8r/Y1NsjoFyWvILspt3X4f1ubY94747RY1BkiJm1PsesgYLdqvXbHcAEdQKmNZbaio5 //3Fo+PIkHVsyW3MyBriz11q53C6kr69T6e0JXracJ3l7ajvHdL+IhbC2sRzc90iuzZD XScw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=smz+bszw8ocY1XTvR1CCaNpffJ/M0ASmW6gT7rFJGfw=; b=bBYE/0at0MKAXOQfu9cCqb0xLBzNz1bBLKfGkN+oJBZ65bJxueOwCKlaXkEMRPzbvK Cbm4ZCtmM6SS0vtpVMxdUN7FZY7vk+FhwbpzyczES+nXv4QBhIg9/d97PksttKI04+g6 5o8ZSuc+mMc0qm5hyeTGVjOmdFbTwAxif2HzLuVVtBNsRMHuqKrmOkxtg4bZtFAcQk2x nB4Vli8Nsjc+ueTxj3C2FUTATQpV/MWdItiyx49d3/MVuYdQkQj0mu2ROc+e1PUERSjN 3/Qbdj7KX2wDCoCwRooPmpqEf/mUH3JcxCUCsW4CEHvE4PVJ1y0RqfZM1FH9UPC3IhHq B6jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si22640344pgg.234.2019.05.07.22.32.43; Tue, 07 May 2019 22:33:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726464AbfEHFbW (ORCPT + 99 others); Wed, 8 May 2019 01:31:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36314 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbfEHFbV (ORCPT ); Wed, 8 May 2019 01:31:21 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1591930894F3; Wed, 8 May 2019 05:31:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B57C55DA38; Wed, 8 May 2019 05:31:20 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id ABC7718089C8; Wed, 8 May 2019 05:31:19 +0000 (UTC) Date: Wed, 8 May 2019 01:31:18 -0400 (EDT) From: Pankaj Gupta To: Jakub =?utf-8?Q?Staro=C5=84?= Cc: linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-acpi@vger.kernel.org, qemu-devel@nongnu.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, jack@suse.cz, mst@redhat.com, jasowang@redhat.com, david@fromorbit.com, lcapitulino@redhat.com, adilger kernel , zwisler@kernel.org, aarcange@redhat.com, dave jiang , darrick wong , vishal l verma , david@redhat.com, willy@infradead.org, hch@infradead.org, jmoyer@redhat.com, nilal@redhat.com, lenb@kernel.org, kilobyte@angband.pl, riel@surriel.com, yuval shaia , stefanha@redhat.com, pbonzini@redhat.com, dan j williams , kwolf@redhat.com, tytso@mit.edu, xiaoguangrong eric , cohuck@redhat.com, rjw@rjwysocki.net, imammedo@redhat.com, Stephen Barber Message-ID: <1853101606.27182251.1557293478937.JavaMail.zimbra@redhat.com> In-Reply-To: References: <20190426050039.17460-1-pagupta@redhat.com> <20190426050039.17460-5-pagupta@redhat.com> Subject: Re: [Qemu-devel] [PATCH v7 4/6] dax: check synchronous mapping is supported MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.65.16.19, 10.4.195.2] Thread-Topic: check synchronous mapping is supported Thread-Index: Xur19F6QrfsHdMS200ssdeInjhgH+Q== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Wed, 08 May 2019 05:31:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > From: Pankaj Gupta > Date: Thu, Apr 25, 2019 at 10:00 PM > > > +static inline bool daxdev_mapping_supported(struct vm_area_struct *vma, > > + struct dax_device *dax_dev) > > +{ > > + return !(vma->flags & VM_SYNC); > > +} > > Shouldn't it be rather `return !(vma->vm_flags & VM_SYNC);`? There is > no field named `flags` in `struct vm_area_struct`. Thanks for catching. Sorry! for this. Will correct in v8. Thank you, Pankaj > > Thank you, > Jakub >