On Tue, 20 Dec 2022 00:05:44 +1100, Li Dongyang wrote: > When cloning multiply-claimed blocks for an inode, > clone_file() uses ext2fs_block_iterate3() to iterate > every block calling clone_file_block(). > clone_file_block() calls check_if_fs_cluster(), even > the block is not on the block_dup_map, which could take > a long time on a large device. > > [...] Applied, thanks! [1/1] e2fsck: optimize clone_file on large devices commit: 6cae615a47dfe37fe5fd096accb82579813a6366 Best regards, -- Theodore Ts'o <tytso@xxxxxxx>