diff options
author | 2019-08-11 16:27:41 -0400 | |
---|---|---|
committer | 2019-08-11 16:27:41 -0400 | |
commit | 4e34323135ec0752af152ac588a4f96495074849 (patch) | |
tree | c114f464dd3cfe40db1715d04398f310d42b01ca /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 5.3-rc4 (diff) | |
download | wireguard-linux-4e34323135ec0752af152ac588a4f96495074849.tar.xz wireguard-linux-4e34323135ec0752af152ac588a4f96495074849.zip |
ext4: fix warning when turn on dioread_nolock and inline_data
mkfs.ext4 -O inline_data /dev/vdb
mount -o dioread_nolock /dev/vdb /mnt
echo "some inline data..." >> /mnt/test-file
echo "some inline data..." >> /mnt/test-file
sync
The above script will trigger "WARN_ON(!io_end->handle && sbi->s_journal)"
because ext4_should_dioread_nolock() returns false for a file with inline
data. Move the check to a place after we have already removed the inline
data and prepared inode to write normal pages.
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: yangerkun <yangerkun@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions