From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751806AbdFEKaL (ORCPT ); Mon, 5 Jun 2017 06:30:11 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:6940 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751707AbdFEKaI (ORCPT ); Mon, 5 Jun 2017 06:30:08 -0400 From: Chao Yu To: CC: , , , Chao Yu Subject: [PATCH 4/4] f2fs: use bio_set_op_attrs Date: Mon, 5 Jun 2017 18:29:09 +0800 Message-ID: <20170605102909.57625-4-yuchao0@huawei.com> X-Mailer: git-send-email 2.13.0.67.g10c78a162fa8 In-Reply-To: <20170605102909.57625-1-yuchao0@huawei.com> References: <20170605102909.57625-1-yuchao0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.120.216.130] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.59353292.019E,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: f903b46100b29ada6ab45c1854b28a9d Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Init bio->bi_opf with bio_set_op_attrs instead of opened code. Signed-off-by: Chao Yu --- fs/f2fs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 2ed90f5db832..204150cf6561 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1962,7 +1962,7 @@ static int f2fs_write_begin(struct file *file, struct address_space *mapping, err = PTR_ERR(bio); goto fail; } - bio->bi_opf = REQ_OP_READ; + bio_set_op_attrs(bio, REQ_OP_READ, 0); if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) { bio_put(bio); err = -EFAULT; -- 2.13.0.67.g10c78a162fa8