Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2541500imm; Sat, 30 Jun 2018 23:36:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJZ3R7mHXKTKQVLNWw7Fo8b/lrb2Jz2row83yjISARDxvQawk4KVkdrThQ9DJ90nYO7aEVK X-Received: by 2002:a65:4ecd:: with SMTP id w13-v6mr17859105pgq.214.1530426984182; Sat, 30 Jun 2018 23:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530426984; cv=none; d=google.com; s=arc-20160816; b=F+BArDSHTt+Yy0VLF/1Dhl0UjtY8lZR5KZ9ErYSGpLKbi2saBbd9q1ZgZwyn6pyNqG gi0eAYuuQpEP1qHWFJUUkLJy2Env+dfQL4UGDa4C1U/Omk9f3ALDdvLQYgBCKpUDWAY7 kA7JTWeOwvoGFGcw8fC0/LfodMicUdXIHZGW4ggewIOEY1gSZAB1lYOHy0klWcpp0GPN KaY5vJMvU1KXxLUBeY1iGf6KqL3exCwUuyGPEUp/Mpcqi8xakcVc/Wq1ihPW5/dL9qDJ TTNwzkCLs9QXGI86o3iM7HFP6old0gxBokhkBujDGxOQo/wKZBxqGRst+uWES/2MyT27 VgcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:domainkey-signature:arc-authentication-results; bh=YU9raAQ5VTpgJZTVYRdZrCLw35jeR6VuCUcrArRR2GU=; b=EQ81dgPgcw1RooO5ZcfBqGBW4C5n4wGSV7i9C6PF6o6PNMVxW+utabSZD6FJMjGpEU rpkj0tcSen8Cn/0hz89fWGuybzMIrm/+SdDN8kHxkUaLBtDZqqRV5n51bA1kb6sl6Q5H dIEuyFKmxmSCVIZJXABSEC9nDyAh2eRBovjwDEjG96rVhPpJGrjoL4s2FOvX2S6/pUo3 DvAxf/xFITJ5WfjoKEgOdLhX/i317FWoeEhmVCv7qrLM9d81j/rcWwVQ4S5+Z1J5+Qrq d5zkR/coT7js7WqC2nWabJhQnW3++PVOAO6EtJw/cj81krSRGJo09n097Iz/y2X0p8sH Gwmg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1-v6si11356728pgr.469.2018.06.30.23.36.09; Sat, 30 Jun 2018 23:36:24 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752119AbeGAGfZ (ORCPT + 99 others); Sun, 1 Jul 2018 02:35:25 -0400 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25333 "EHLO sender-pp-092.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751463AbeGAGfW (ORCPT ); Sun, 1 Jul 2018 02:35:22 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=fVbwKyfytxdcVSjRkdAi1yC6jFdkgLicWrVmuinO5AkyOGs93PBOT296Xyw9a1tSaJI847crsjGP p5VnYoJto0sLBzYTGwLSKCEp8WT/Viy3kOYm5TIrHpf7yBsNy2VP Received: from YEHS1XR956R00D1.lenovo.com (111.197.253.128 [111.197.253.128]) by mx.zohomail.com with SMTPS id 1530425986938903.8361140701428; Sat, 30 Jun 2018 23:19:46 -0700 (PDT) From: Huaisheng Ye To: dan.j.williams@intel.com Cc: dave.jiang@intel.com, willy@infradead.org, ross.zwisler@linux.intel.com, vishal.l.verma@intel.com, jack@suse.com, chengnt@lenovo.com, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, Huaisheng Ye Subject: [PATCH 2/3] fs/ext2/inode: Fix a type cast error for fsdax Date: Sun, 1 Jul 2018 14:18:47 +0800 Message-Id: <20180701061848.7036-2-yehs2007@zoho.com> X-Mailer: git-send-email 2.17.0.windows.1 In-Reply-To: <20180701061848.7036-1-yehs2007@zoho.com> References: <20180701061848.7036-1-yehs2007@zoho.com> X-ZohoMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huaisheng Ye The type of offset within struct iomap is loff_t, which represents file offset of mapping. In ext2_iomap_begin, iomap->offset shall be given a type cast as loff_t instead of u64. Signed-off-by: Huaisheng Ye --- fs/ext2/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 7163590..ca211bd 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -816,7 +816,7 @@ static int ext2_iomap_begin(struct inode *inode, loff_t offset, loff_t length, iomap->flags = 0; iomap->bdev = inode->i_sb->s_bdev; - iomap->offset = (u64)first_block << blkbits; + iomap->offset = (loff_t)first_block << blkbits; iomap->dax_dev = sbi->s_daxdev; if (ret == 0) { -- 1.8.3.1