diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 939be9df0207..d26b3fe38bd9 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -1069,7 +1069,8 @@ next_step: if (phase == 3) { inode = f2fs_iget(sb, dni.ino); - if (IS_ERR(inode) || is_bad_inode(inode)) + if (IS_ERR(inode) || is_bad_inode(inode) || + special_file(inode->i_mode)) continue; if (!down_write_trylock(