Files
mirror_zfs/config
Chunwei Chen 7a789346af Fix loop device becomes read-only
Commit 933ec99 removes read and write from f_op because the vfs layer will
select iter_write or aio_write automatically. However, for Linux <= 4.0,
loop_set_fd will actually check f_op->write and set read-only if not exists.
This patch add them back and use the generic do_sync_{read,write} for
aio_{read,write} and new_sync_{read,write} for {read,write}_iter.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes #5776 
Closes #5855
2017-03-06 09:20:20 -08:00
..
2010-08-31 13:41:27 -07:00
2011-04-19 10:10:47 -07:00
2017-01-03 11:31:18 -06:00
2012-10-14 13:06:48 -07:00
2016-11-04 10:46:40 -07:00
2017-01-03 11:31:18 -06:00
2017-02-08 09:27:48 -08:00
2017-02-08 09:27:48 -08:00
2013-03-18 15:33:17 -07:00
2016-03-16 13:46:16 -07:00
2016-03-09 10:39:22 -08:00
2016-04-28 09:27:40 -07:00
2016-03-18 13:31:11 -07:00
2016-03-18 13:31:11 -07:00