Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752612AbdGYOwC (ORCPT ); Tue, 25 Jul 2017 10:52:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:54212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752243AbdGYOup (ORCPT ); Tue, 25 Jul 2017 10:50:45 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8492322B4B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jlayton@kernel.org From: Jeff Layton To: "Yan, Zheng" , Sage Weil , Ilya Dryomov Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ceph: use errseq_t for writeback error reporting Date: Tue, 25 Jul 2017 10:50:41 -0400 Message-Id: <20170725145042.26219-2-jlayton@kernel.org> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170725145042.26219-1-jlayton@kernel.org> References: <20170725145042.26219-1-jlayton@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 745 Lines: 25 From: Jeff Layton Ensure that when writeback errors are marked that we report those to all file descriptions that were open at the time of the error. Signed-off-by: Jeff Layton --- fs/ceph/caps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 7007ae2a5ad2..13f6edf24acd 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -2110,7 +2110,7 @@ int ceph_fsync(struct file *file, loff_t start, loff_t end, int datasync) dout("fsync %p%s\n", inode, datasync ? " datasync" : ""); - ret = filemap_write_and_wait_range(inode->i_mapping, start, end); + ret = file_write_and_wait_range(file, start, end); if (ret < 0) goto out; -- 2.13.3