Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ext4: fix comments in ext4_can_extents_be_merged()

Since commit a9b8241594add, we are allowed to merge unwritten extents,
so here these comments are wrong, remove it.

Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>

authored by

Xiaoguang Wang and committed by
Theodore Ts'o
4255c224 80cfb71e

-6
-6
fs/ext4/extents.c
··· 1717 1717 { 1718 1718 unsigned short ext1_ee_len, ext2_ee_len; 1719 1719 1720 - /* 1721 - * Make sure that both extents are initialized. We don't merge 1722 - * unwritten extents so that we can be sure that end_io code has 1723 - * the extent that was written properly split out and conversion to 1724 - * initialized is trivial. 1725 - */ 1726 1720 if (ext4_ext_is_unwritten(ex1) != ext4_ext_is_unwritten(ex2)) 1727 1721 return 0; 1728 1722