commit | 7360109c6507374639474a492449518846d37fc0 | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <djwong@kernel.org> | Mon Mar 06 19:54:34 2023 -0800 |
committer | Darrick J. Wong <djwong@kernel.org> | Mon Jan 08 18:16:43 2024 -0800 |
tree | c8d99a0020c3c5d7a3a063a6b43e5449f6c7fd8c | |
parent | 2597b8e6bc96b0f798851557861371c9ab98d062 [diff] |
xfile: implement write caching Mapping a page into the kernel's address space is expensive. Since the xfile contains an xfs_buf_cache object for xfbtrees and xfbtrees aren't the only user of xfiles, we could reuse that space for a simple MRU cache. When there's enough metadata records being put in an xfarray/xfblob and the fsck scans aren't IO bound, this cuts the runtime of online fsck by about 5%. Signed-off-by: Darrick J. Wong <djwong@kernel.org>