summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-08-24 10:03:42 +0300
committerJens Axboe <axboe@kernel.dk>2017-08-31 22:51:12 +0300
commit6c6b6f28b3335fd85ec833ee0005d9c9dca6c003 (patch)
tree47c20664f91ebd3591628a8ec52ca06b7dbbef76 /include/uapi/linux
parent8a0740c4109d646d8697d359962edea47301c652 (diff)
downloadlinux-6c6b6f28b3335fd85ec833ee0005d9c9dca6c003.tar.xz
loop: set physical block size to PAGE_SIZE
The physical block size is "the lowest possible sector size that the hardware can operate on without reverting to read-modify-write operations" (from the comment on blk_queue_physical_block_size()). Since loop does buffered I/O on the backing file by default, the RMW unit is a page. This isn't the case for direct I/O mode, but let's keep it simple. Reviewed-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions