diff options
| author | Zhang Yi <yi.zhang@huawei.com> | 2025-11-29 13:32:46 +0300 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2026-01-18 19:23:34 +0300 |
| commit | 382dd788cb8b25dff007fb45d064ba8b1095685a (patch) | |
| tree | c2bd56c65a154837ffaa3db45ce7e459af44a43c | |
| parent | a5567347b6f5e888c56274d710b8f9525dbd57d0 (diff) | |
| download | linux-382dd788cb8b25dff007fb45d064ba8b1095685a.tar.xz | |
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: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Baokun Li <libaokun1@huawei.com>
Message-ID: <20251129103247.686136-15-yi.zhang@huaweicloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
| -rw-r--r-- | fs/ext4/extents_status.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/ext4/extents_status.c b/fs/ext4/extents_status.c index 0529c603ee88..fc83e7e2ca9e 100644 --- a/fs/ext4/extents_status.c +++ b/fs/ext4/extents_status.c @@ -898,7 +898,8 @@ out: /* * 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 @@ retry: } 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); |
