From: Kemeng Shi Date: Fri, 3 Mar 2023 17:21:19 +0000 (+0800) Subject: ext4: remove comment code ext4_discard_preallocations X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=46825e949057481ccb1f0e52c512fd52f1938cb3;p=linux.git ext4: remove comment code ext4_discard_preallocations Just remove comment code in ext4_discard_preallocations. Signed-off-by: Kemeng Shi Reviewed-by: Ojaswin Mujoo Link: https://lore.kernel.org/r/20230303172120.3800725-20-shikemeng@huaweicloud.com Signed-off-by: Theodore Ts'o --- diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 59aa42457fcaa..4c02a9263eb96 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -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; }