Received: by 10.213.65.68 with SMTP id h4csp3418163imn; Tue, 3 Apr 2018 04:44:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/I01U+lh1uQMjkVFqFQqD063qPlCv6IKOQHXP1WZkxoxYddC3Is/QC9+MoHgDkH+XODtgJ X-Received: by 2002:a17:902:c24:: with SMTP id 33-v6mr14055414pls.88.1522755894159; Tue, 03 Apr 2018 04:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522755894; cv=none; d=google.com; s=arc-20160816; b=k2dGHdsagSOhUbIxad9U8rUjhOyMKZw0ejMO7TDnNwRRgK8BppWbsHLoFMt76gNThE R63HjuW/zcmRt0b5pRA4qbQ6aLRfdbUpAVF9dopkzOOjykra8Cje118qhD2c8RuMXL+m SVZTWShGoIX0CmBo1ha5TsOH21cxSaABg2rI9jg1i3lSvRV4xa8NhceCkUx/pA2f/hir Q3POBuhBemg6aaoo8nE0yxoXr9RJ58XI3EU2l4tTW4zRNxAN06VRyirdSwJXy2O5juWb RHZaUitDiNeK6vmcHZ+BBxCl/O8TJuIlSGrIQsuzP7YTdWMmbTWhcP6Iuu+cMtJxxRTE FqdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=INZsrzySGmIhYw38tXT0Jow/h8QFtmwZUs4dn6lyfEE=; b=EwrnFaw5m1OR+IPrXf8GDqtdC9wN2VlFDmwMVLo5DZ9pBbhmM8tdVu0U7qU/mZooqO 2pD+IZYWjBlbkyVhebSxjMBA/cCnKKnXrbwW22g3sVi1e5lHgkFP7imkhbxmCktx7S94 HpP5AGG4LWNI75a18m1Vj1H7O6KGboeBoLspZz8gTFE6wTSCBM6cB/BV1QLA0URRr8DB kZiFSSFbE2cLQ7G+KscxO8+tmRzFDG2WzfkPXYlzz6eOu60GD0ALiogI8RCU1GWZ4CSB cb5nnpGNMv3SNVgVvF1wmt157vtx+LTzE8C29BtC2g4DiRaPUWMwsbfGQ/is/HiuqY4j 6Y6A== 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 38-v6si386453pld.640.2018.04.03.04.44.40; Tue, 03 Apr 2018 04:44:54 -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 S1755476AbeDCLnU (ORCPT + 99 others); Tue, 3 Apr 2018 07:43:20 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:6723 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755135AbeDCLnP (ORCPT ); Tue, 3 Apr 2018 07:43:15 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A503A769C98CA; Tue, 3 Apr 2018 19:43:01 +0800 (CST) Received: from huawei.com (10.113.189.234) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.361.1; Tue, 3 Apr 2018 19:42:52 +0800 From: Yunlong Song To: , , , , CC: , , , , , Subject: [PATCH] f2fs: remove unmatched zero_user_segment when convert inline dentry Date: Tue, 3 Apr 2018 19:42:41 +0800 Message-ID: <1522755761-131554-1-git-send-email-yunlong.song@huawei.com> X-Mailer: git-send-email 1.8.5.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.113.189.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the layout of regular dentry block is different from inline dentry block, zero_user_segment starting from MAX_INLINE_DATA(dir) is not correct for regular dentry block, besides, bitmap is already copied and used, so there is no necessary to zero page at all, so just remove the zero_user_segment is OK. Signed-off-by: Yunlong Song --- fs/f2fs/inline.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index 3b77d64..573ec2f 100644 --- a/fs/f2fs/inline.c +++ b/fs/f2fs/inline.c @@ -367,7 +367,6 @@ static int f2fs_move_inline_dirents(struct inode *dir, struct page *ipage, goto out; f2fs_wait_on_page_writeback(page, DATA, true); - zero_user_segment(page, MAX_INLINE_DATA(dir), PAGE_SIZE); dentry_blk = page_address(page); -- 1.8.5.2