Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp120383rwb; Wed, 14 Dec 2022 14:53:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf6yWWSTXrX1GVTzJhuXuzfoEFHCl5Xm21kbL4ib2CpAu7nyFNid/qCPyVcCRn8qL+bG1J6k X-Received: by 2002:a62:ed03:0:b0:56b:9b71:ca2f with SMTP id u3-20020a62ed03000000b0056b9b71ca2fmr22564871pfh.11.1671058437885; Wed, 14 Dec 2022 14:53:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671058437; cv=none; d=google.com; s=arc-20160816; b=wumLgGH7C//SDn+XhBCx1b1N+VpvZS2huB1SmblTPZ0j6pNf1pCtLqT5Gs1oaNrQRv Cxxp2I958gePgd2wID8w+uGYQh8b9OFJBofXcyAEYcGxZxUt6j5c1MwW+eJ/e4sy03Bm 0fexcbCAsQxoNus5zDFKx6EBAZEWQy2AMa9CfZ7m/cZH8ILovOwwwbIiOvNYmlYGdUI4 4TPSDdTfYBOpNzgLVWqq9bJUKhuuSX5PWFYa0ZCmbYyYiIQmudljvUHLhAO8z1POZkK+ PL7eAl25hjB6T/dzYvuMBZmX9GZbL7kPv9RizvHAAsHJUv8VCdtztbyLvrpiObDlmHZw lYlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=ntWk/X/it6Sf4w3U2hbc+t0EZZDICNT5YpcoeqPPiPo=; b=psnNcezXmNEGPPqqdqj4YKduTFNZ8wjH71LHFKsyEhZDqQsZC/Wpc/TxJeKRVgn4+n WzWYxW/DoWX7Iei+N93MGl8X9i109tv9LGUfsXBvJ9vcJB8ZFqfrH6seKFHCHAGY7OKL /no/WvCpYuDfRBiWKL20/7JnrcGloeAJctIVUSTMRvRY4IvCfhmp9CRCiecmDgASjhOW WVCbEBtBsHq5WJPwFqofPLu6YB3xLECYqKwM5JQHub7nHHVpQVQlFh7lrCBGfACSyHe1 9BUNc7yJLALB05X0Ojoz51s/txehqYi8cyYAjx9SfIEnBrEg1KAkM0tgdxd3Bo5r9vgD MOIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=amMEOg+r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a056a00194c00b0054764d871b5si1142400pfk.230.2022.12.14.14.53.48; Wed, 14 Dec 2022 14:53:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=amMEOg+r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229501AbiLNWj3 (ORCPT + 70 others); Wed, 14 Dec 2022 17:39:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiLNWj1 (ORCPT ); Wed, 14 Dec 2022 17:39:27 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0706736C69 for ; Wed, 14 Dec 2022 14:39:27 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8561961C19 for ; Wed, 14 Dec 2022 22:39:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C10A8C433EF; Wed, 14 Dec 2022 22:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671057565; bh=Di2ZPe2udn9/VzfMzwcmiI7C0GUupTC5E62CQVDZYck=; h=Date:From:To:Cc:Subject:From; b=amMEOg+rntwdS5vKFvDbAAsz0ZBc3NTRSpZOQGUPPQkZghvyfTOwWpYOsqB20tRMX EaBhLiswQgdujhwvwkQG+536FKq2JAcjs5tNBcLqLhg7/n1zSTQ8ySWCl5M0W0UXPm 6BljjHJRFlPlGZdXNFO7/Dbcm+kYPjggYynFpfdHsegKn2DvclY1kOCT2YNmmEROXx l8xTOwD30eLVjBDGIEHwQH1TibV67zod+bh67CL4tT3zBhfzg2s6eIem8ZIZ2QRbZg WwyL2EE9yaPY5vSaSQ+h5lImgcEhKGaVAfVL3pOYJ0frLCDk4Q1X3XhjCfWwhMEnFv b7szYOvVyp+ww== Date: Wed, 14 Dec 2022 14:39:24 -0800 From: Jaegeuk Kim To: Linus Torvalds Cc: Linux Kernel Mailing List , Linux F2FS Dev Mailing List Subject: [GIT PULL] f2fs update for 6.2-rc1 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, Could you please consider this pull request? Note that, since I attached Reviewed-by to some recent committed patches, they show quite new in the git log, but have been soaked in linux-next for a while. In addition, one patch on top of the tree is still quite new, but it should be a low risk of change. Hence, I added. The following changes since commit bbb8ceb5e2421184db9560e9d2cfaf858e1db616: Merge tag 'v6.1-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 (2022-10-17 10:20:04 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git tags/f2fs-for-6.2-rc1 for you to fetch changes up to 26a8057a1ada97b528b93fdf3ac4fd03170f1900: f2fs: reset wait_ms to default if any of the victims have been selected (2022-12-12 15:18:36 -0800) ---------------------------------------------------------------- f2fs-for-6.2-rc1 In this round, we've added two features: 1) F2FS_IOC_START_ATOMIC_REPLACE and 2) per-block age-based extent cache. 1) is a variant of the previous atomic write feature which guarantees a per-file atomicity. It would be more efficient than AtomicFile implementation in Android framework. 2) implements another type of extent cache in memory which keeps the per-block age in a file, so that block allocator could split the hot and cold data blocks more accurately. Enhancement: - introduce F2FS_IOC_START_ATOMIC_REPLACE - refactor extent_cache to add a new per-block-age-based extent cache support - introduce discard_urgent_util, gc_mode, max_ordered_discard sysfs knobs - add proc entry to show discard_plist info - optimize iteration over sparse directories - add barrier mount option Bug fix - avoid victim selection from previous victim section - fix to enable compress for newly created file if extension matches - set zstd compress level correctly - initialize locks early in f2fs_fill_super() to fix bugs reported by syzbot - correct i_size change for atomic writes - allow to read node block after shutdown - allow to set compression for inlined file - fix gc mode when gc_urgent_high_remaining is 1 - should put a page when checking the summary info Minor fixes and various clean-ups in GC, discard, debugfs, sysfs, and doc. ---------------------------------------------------------------- Chao Yu (8): f2fs: fix to invalidate dcc->f2fs_issue_discard in error path f2fs: support fault injection for f2fs_is_valid_blkaddr() f2fs: fix to destroy sbi->post_read_wq in error path of f2fs_fill_super() f2fs: fix to avoid accessing uninitialized spinlock f2fs: optimize iteration over sparse directories f2fs: fix to do sanity check on i_extra_isize in is_alive() f2fs: truncate blocks in batch in __complete_revoke_list() MAINTAINERS: Add f2fs bug tracker link Christoph Hellwig (3): f2fs: remove struct segment_allocation default_salloc_ops f2fs: open code allocate_segment_by_default f2fs: remove the unused flush argument to change_curseg Colin Ian King (1): f2fs: Fix spelling mistake in label: free_bio_enrty_cache -> free_bio_entry_cache Daeho Jeong (2): f2fs: correct i_size change for atomic writes f2fs: introduce F2FS_IOC_START_ATOMIC_REPLACE Dongdong Zhang (1): f2fs: fix normal discard process Jaegeuk Kim (11): f2fs: let's avoid to get cp_rwsem twice by f2fs_evict_inode by d_invalidate f2fs: allow to set compression for inlined file f2fs: use sysfs_emit instead of sprintf f2fs: add missing bracket in doc f2fs: allow to read node block after shutdown f2fs: specify extent cache for read explicitly f2fs: move internal functions into extent_cache.c f2fs: remove unnecessary __init_extent_tree f2fs: refactor extent_cache to support for read and more f2fs: allocate the extent_cache by default f2fs: add block_age-based extent cache Keoseong Park (1): f2fs: Fix typo in comments Mukesh Ojha (2): f2fs: fix the assign logic of iocb f2fs: fix the msg data type Pavel Machek (1): f2fs: should put a page when checking the summary info Sheng Yong (3): f2fs: set zstd compress level correctly f2fs: fix to enable compress for newly created file if extension matches f2fs: move set_file_temperature into f2fs_new_inode Tetsuo Handa (1): f2fs: initialize locks earlier in f2fs_fill_super() Yangtao Li (22): f2fs: remove batched_trim_sections node f2fs: fix gc mode when gc_urgent_high_remaining is 1 f2fs: cleanup in f2fs_create_flush_cmd_control() f2fs: add barrier mount option f2fs: introduce max_ordered_discard sysfs node f2fs: fix return val in f2fs_start_ckpt_thread() f2fs: introduce gc_mode sysfs node f2fs: replace gc_urgent_high_remaining with gc_remaining_trials f2fs: add proc entry to show discard_plist info f2fs: fix to set flush_merge opt and show noflush_merge f2fs: remove submit label in __submit_discard_cmd() f2fs: fix description about discard_granularity node f2fs: make __queue_discard_cmd() return void f2fs: init discard policy after thread wakeup f2fs: define MIN_DISCARD_GRANULARITY macro f2fs: introduce discard_urgent_util sysfs node f2fs: do some cleanup for f2fs module init f2fs: remove F2FS_SET_FEATURE() and F2FS_CLEAR_FEATURE() macro f2fs: introduce f2fs_is_readonly() for readability f2fs: fix iostat parameter for discard f2fs: don't call f2fs_issue_discard_timeout() when discard_cmd_cnt is 0 in f2fs_put_super() f2fs: fix some format WARNING in debug.c and sysfs.c Yonggil Song (1): f2fs: avoid victim selection from previous victim section Yuwei Guan (4): f2fs: fix to alloc_mode changed after remount on a small volume device f2fs: cleanup for 'f2fs_tuning_parameters' function f2fs: change type for 'sbi->readdir_ra' f2fs: reset wait_ms to default if any of the victims have been selected Zhang Qilong (1): f2fs: Fix the race condition of resize flag between resizefs wangkailong@jari.cn (1): f2fs: replace ternary operator with max() Documentation/ABI/testing/sysfs-fs-f2fs | 47 ++- Documentation/filesystems/f2fs.rst | 13 +- MAINTAINERS | 1 + fs/f2fs/checkpoint.c | 9 +- fs/f2fs/compress.c | 48 +-- fs/f2fs/data.c | 54 +-- fs/f2fs/debug.c | 131 ++++-- fs/f2fs/dir.c | 36 +- fs/f2fs/extent_cache.c | 693 +++++++++++++++++++++++--------- fs/f2fs/f2fs.h | 278 +++++++------ fs/f2fs/file.c | 46 ++- fs/f2fs/gc.c | 79 ++-- fs/f2fs/inode.c | 20 +- fs/f2fs/namei.c | 391 +++++++++--------- fs/f2fs/node.c | 19 +- fs/f2fs/node.h | 3 +- fs/f2fs/recovery.c | 4 +- fs/f2fs/segment.c | 201 +++++---- fs/f2fs/segment.h | 6 - fs/f2fs/shrinker.c | 25 +- fs/f2fs/super.c | 126 +++--- fs/f2fs/sysfs.c | 164 ++++++-- include/trace/events/f2fs.h | 176 ++++++-- include/uapi/linux/f2fs.h | 1 + 24 files changed, 1643 insertions(+), 928 deletions(-)