Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:27753 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759131AbdEYKh3 (ORCPT ); Thu, 25 May 2017 06:37:29 -0400 From: Jeff Layton To: Al Viro Cc: Jan Kara , Matthew Wilcox , Christoph Hellwig , linux-fsdevel@vger.kernel.org Subject: [PATCH] buffer: use mapping_set_error instead of setting the flag Date: Thu, 25 May 2017 06:37:28 -0400 Message-Id: <20170525103728.7006-1-jlayton@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: In later patches, we'll need to use the helper function here instead of twiddling the bits directly. Signed-off-by: Jeff Layton Reviewed-by: Jan Kara Reviewed-by: Matthew Wilcox Reviewed-by: Christoph Hellwig --- fs/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/buffer.c b/fs/buffer.c index 161be58c5cb0..4be8b914a222 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -482,7 +482,7 @@ static void __remove_assoc_queue(struct buffer_head *bh) list_del_init(&bh->b_assoc_buffers); WARN_ON(!bh->b_assoc_map); if (buffer_write_io_error(bh)) - set_bit(AS_EIO, &bh->b_assoc_map->flags); + mapping_set_error(bh->b_assoc_map, -EIO); bh->b_assoc_map = NULL; } -- 2.9.4