diff options
| author | Mikulas Patocka <[email protected]> | 2018-09-05 22:14:36 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-09-05 22:14:36 +0000 |
| commit | 8b2ded1c94c06f841f8c1612bcfa33c85012a36b (patch) | |
| tree | a53368fb013c47854de1fc6d18a97e59a1390232 /tools/testing/radix-tree/xarray.c | |
| parent | nbd: don't allow invalid blocksize settings (diff) | |
| download | kernel-8b2ded1c94c06f841f8c1612bcfa33c85012a36b.tar.gz kernel-8b2ded1c94c06f841f8c1612bcfa33c85012a36b.zip | |
block: don't warn when doing fsync on read-only devices
It is possible to call fsync on a read-only handle (for example, fsck.ext2
does it when doing read-only check), and this call results in kernel
warning.
The patch b089cfd95d32 ("block: don't warn for flush on read-only device")
attempted to disable the warning, but it is buggy and it doesn't
(op_is_flush tests flags, but bio_op strips off the flags).
Signed-off-by: Mikulas Patocka <[email protected]>
Fixes: 721c7fc701c7 ("block: fail op_is_write() requests to read-only partitions")
Cc: [email protected] # 4.18
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/xarray.c')
0 files changed, 0 insertions, 0 deletions
