Commit 382dd788 authored by Zhang Yi's avatar Zhang Yi Committed by Theodore Ts'o
Browse files

ext4: drop the TODO comment in ext4_es_insert_extent()



Now we have ext4_es_cache_extent() to cache on-disk extents instead of
ext4_es_insert_extent(), so drop the TODO comment.

Signed-off-by: default avatarZhang Yi <yi.zhang@huawei.com>
Reviewed-by: default avatarBaokun Li <libaokun1@huawei.com>
Message-ID: <20251129103247.686136-15-yi.zhang@huaweicloud.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent a5567347
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -898,7 +898,8 @@ static int __es_insert_extent(struct inode *inode, struct extent_status *newes,

/*
 * ext4_es_insert_extent() adds information to an inode's extent
 * status tree.
 * status tree. This interface is used for modifying extents. To cache
 * on-disk extents, use ext4_es_cache_extent() instead.
 */
void ext4_es_insert_extent(struct inode *inode, ext4_lblk_t lblk,
			   ext4_lblk_t len, ext4_fsblk_t pblk,
@@ -977,10 +978,6 @@ void ext4_es_insert_extent(struct inode *inode, ext4_lblk_t lblk,
		}
		pending = err3;
	}
	/*
	 * TODO: For cache on-disk extents, there is no need to increment
	 * the sequence counter, this requires future optimization.
	 */
	ext4_es_inc_seq(inode);
error:
	write_unlock(&EXT4_I(inode)->i_es_lock);