Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5853967imm; Mon, 23 Jul 2018 07:13:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc8B+nlLV/fbz3wBgRFb1TTn9eN1PmfZbDZPei1Y0syuZvAVTs1TMDLF4VAYF2V+VWfaHPO X-Received: by 2002:aa7:818b:: with SMTP id g11-v6mr13427243pfi.50.1532355180329; Mon, 23 Jul 2018 07:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532355180; cv=none; d=google.com; s=arc-20160816; b=xV7i9qIIrVRSYSSD0NFCSgAZ+FVhNJqlm3kRX2so3a4i1Aan+1eoyUT/72U6ZU2JRJ vZngf3DzsCPnEt9SIzPKajqj2QCGPtyOHCWbfkIPxOxiiPmka1hw5/f7MawCkx2qvCY8 saUTjThXf0nvOlYByg+LVis8nkU2BAWcQ3l0ZK6+Qs7AOKRFUL1aXprsPpPn6TLfK5Fd 8ibI3Eoy/KDi+46zGzQFoNTRqmJ49KTGgHPpEwH0fWKw9A5br83Hk+kq/D6bBCmsYyT6 iPpSNEaPvXk1aVurxPfW1kzIYcHUN0ia5b15GHNJlAIA0ETx3fjnn3sL0ROiO4gc+hgj 9ilw== 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=kDNaYgBKZflOHs9jqkxXOOosrHb0hfQGrOr5T00uiXM=; b=DF6PDrPqi5nGecZvtkL26dqBRS5r8LDTLc7OzXiuOYLJ680vLian+T8XYd603YkE6L 6M3OnqTSGvJPdayix4IukvZu6MBS62JZmPVNi560n8fSpq+UPAQpcTt9SGF3rvJZqdX4 t3QEuiC3xephhByQVDhSY6hgewqZRhskYLK2rZa7nzFMe7bTkgmdwT+04iRaE9ZGmYAA RSgwJmMfr4VTvpoyonbuzoX7W96ZPxV6bQGSNz5BcvE1wMjUoikbZxjwj54+bgvCAibS 0E3lpp2wgMjvP8EefKro2oZAsFhAaDeK70xsJP5G9gke8N91w8BDLhk9udE+JTaWGOtl c1dA== 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 w10-v6si8050870ply.482.2018.07.23.07.12.45; Mon, 23 Jul 2018 07:13:00 -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 S2388162AbeGWPML (ORCPT + 99 others); Mon, 23 Jul 2018 11:12:11 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9667 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388099AbeGWPML (ORCPT ); Mon, 23 Jul 2018 11:12:11 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 65D09ED36F85D; Mon, 23 Jul 2018 22:10:35 +0800 (CST) Received: from huawei.com (10.113.189.234) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.382.0; Mon, 23 Jul 2018 22:10:28 +0800 From: Yunlong Song To: , , , , CC: , , , , , Subject: [PATCH 0/5] f2fs: fix and improve for victim_secmap Date: Mon, 23 Jul 2018 22:10:17 +0800 Message-ID: <1532355022-163029-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 There are some fixes and improvements for using with victim_secmap. Yunlong Song (5): f2fs: clear victim_secmap when section has full valid blocks f2fs: add cur_victim_sec for BG_GC to avoid skipping BG_GC victim f2fs: clear_bit the SSR selected section in the victim_secmap f2fs: let BG_GC check every dirty segments and gc over a threshold f2fs: add proc entry to show victim_secmap bitmap fs/f2fs/f2fs.h | 5 ++++- fs/f2fs/gc.c | 39 ++++++++++++++++++++++++++++++--------- fs/f2fs/segment.c | 4 +++- fs/f2fs/segment.h | 12 +++++++++++- fs/f2fs/super.c | 3 ++- fs/f2fs/sysfs.c | 25 +++++++++++++++++++++++++ include/trace/events/f2fs.h | 18 ++++++++++++------ 7 files changed, 87 insertions(+), 19 deletions(-) -- 1.8.5.2