Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751746AbdGZNJL (ORCPT ); Wed, 26 Jul 2017 09:09:11 -0400 Received: from mail-ua0-f194.google.com ([209.85.217.194]:33169 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750928AbdGZNJJ (ORCPT ); Wed, 26 Jul 2017 09:09:09 -0400 MIME-Version: 1.0 In-Reply-To: <20170725145042.26219-2-jlayton@kernel.org> References: <20170725145042.26219-1-jlayton@kernel.org> <20170725145042.26219-2-jlayton@kernel.org> From: "Yan, Zheng" Date: Wed, 26 Jul 2017 21:09:08 +0800 Message-ID: Subject: Re: [PATCH 1/2] ceph: use errseq_t for writeback error reporting To: Jeff Layton Cc: "Yan, Zheng" , Sage Weil , Ilya Dryomov , ceph-devel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 943 Lines: 29 On Tue, Jul 25, 2017 at 10:50 PM, Jeff Layton wrote: > 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 > Reviewed-by: "Yan, Zheng"