ext4: remove comment code ext4_discard_preallocations
authorKemeng Shi <shikemeng@huaweicloud.com>
Fri, 3 Mar 2023 17:21:19 +0000 (01:21 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Apr 2023 05:13:12 +0000 (01:13 -0400)
Just remove comment code in ext4_discard_preallocations.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://lore.kernel.org/r/20230303172120.3800725-20-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c

index 59aa42457fcaa96353d83f5b5894af3535e59118..4c02a9263eb96d9f1c3a10a333ef7050bc3ff585 100644 (file)
@@ -4926,7 +4926,6 @@ void ext4_discard_preallocations(struct inode *inode, unsigned int needed)
        int err;
 
        if (!S_ISREG(inode->i_mode)) {
-               /*BUG_ON(!list_empty(&ei->i_prealloc_list));*/
                return;
        }