Chao Yu
a49e402f23
f2fs: fix to reserve space for IO align feature
commit 300a842937fbcfb5a189cea9ba15374fdb0b5c6b upstream.
https://bugzilla.kernel.org/show_bug.cgi?id=204137
With below script, we will hit panic during new segment allocation:
DISK=bingo.img
MOUNT_DIR=/mnt/f2fs
dd if=/dev/zero of=$DISK bs=1M count=105
mkfs.f2fe -a 1 -o 19 -t 1 -z 1 -f -q $DISK
mount -t f2fs $DISK $MOUNT_DIR -o "noinline_dentry,flush_merge,noextent_cache,mode=lfs,io_bits=7,fsync_mode=strict"
for (( i = 0; i < 4096; i++ )); do
name=`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 10`
mkdir $MOUNT_DIR/$name
done
umount $MOUNT_DIR
rm $DISK
2022-01-27 10:54:31 +01:00
..
2020-09-14 11:15:37 -07:00
2020-05-08 06:55:55 -07:00
2022-01-11 15:24:58 +01:00
2022-01-27 10:54:31 +01:00
2021-09-18 13:40:16 +02:00
2021-01-06 14:56:54 +01:00
2021-09-18 13:40:13 +02:00
2020-09-10 14:03:30 -07:00
2022-01-27 10:54:31 +01:00
2021-09-18 13:40:16 +02:00
2022-01-27 10:53:41 +01:00
2020-09-11 11:11:15 -07:00
2020-06-09 11:28:59 -07:00
2021-05-19 10:13:00 +02:00
2021-11-18 14:04:29 +01:00
2020-05-11 20:36:46 -07:00
2020-01-17 16:48:07 -08:00
2021-11-18 14:04:29 +01:00
2021-12-01 09:19:08 +01:00
2021-01-06 14:56:54 +01:00
2021-07-19 09:45:03 +02:00
2021-05-19 10:13:02 +02:00
2022-01-27 10:54:31 +01:00
2021-01-06 14:56:54 +01:00
2022-01-27 10:54:31 +01:00
2022-01-27 10:54:31 +01:00
2019-03-05 19:58:06 -08:00
2020-05-08 06:55:55 -07:00
2021-05-11 14:47:34 +02:00
2021-12-29 12:26:05 +01:00
2020-05-26 18:56:10 -07:00