aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/tests/fpga-bridge-test.c
diff options
context:
space:
mode:
authorBrian Geffon <[email protected]>2022-10-03 10:48:32 -0400
committerAndrew Morton <[email protected]>2022-10-12 18:51:50 -0700
commit94541bc3fbde45bbd40e7989995246b22732679a (patch)
tree2ffdc0f4f3fb09860a15bc1406ff7588c21ec394 /drivers/fpga/tests/fpga-bridge-test.c
parent14c2ac36811b82479b1138383b2c9ff1ab6ba47d (diff)
zram: always expose rw_page
Currently zram will adjust its fops to a version which does not contain rw_page when a backing device has been assigned. This is done to prevent upper layers from assuming a synchronous operation when a page may have been written back. This forces every operation through bio which has overhead associated with bio_alloc/frees. The code can be simplified to always expose an rw_page method and only in the rare event that a page is written back we instead will return -EOPNOTSUPP forcing the upper layer to fallback to bio. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Brian Geffon <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Nitin Gupta <[email protected]> Cc: Rom Lemarchand <[email protected]> Cc: Suleiman Souhlal <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions