]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/xfs/xfs_icreate_item.c
xfs: refactor log recovery item sorting into a generic dispatch structure
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 May 2020 23:00:45 +0000 (16:00 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 8 May 2020 15:49:58 +0000 (08:49 -0700)
commit86ffa471d9ce6ac3fda66f704c3143c3d55181f5
tree2481f38cd59c876519a146001c0823706317bc54
parent35f4521fd3a001fb290a1780f8beeffb06d99a04
xfs: refactor log recovery item sorting into a generic dispatch structure

Create a generic dispatch structure to delegate recovery of different
log item types into various code modules.  This will enable us to move
code specific to a particular log item type out of xfs_log_recover.c and
into the log item source.

The first operation we virtualize is the log item sorting.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/Makefile
fs/xfs/libxfs/xfs_log_recover.h
fs/xfs/xfs_bmap_item.c
fs/xfs/xfs_buf_item_recover.c [new file with mode: 0644]
fs/xfs/xfs_dquot_item_recover.c [new file with mode: 0644]
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_icreate_item.c
fs/xfs/xfs_inode_item_recover.c [new file with mode: 0644]
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_refcount_item.c
fs/xfs/xfs_rmap_item.c