]> git.baikalelectronics.ru Git - kernel.git/commit
orangefs: migrate to generic_file_read_iter
authorMartin Brandenburg <martin@omnibond.com>
Fri, 16 Feb 2018 20:51:24 +0000 (20:51 +0000)
committerMike Marshall <hubcap@omnibond.com>
Fri, 3 May 2019 18:32:38 +0000 (14:32 -0400)
commit1c11e3cee512ed5ea668d8010555f75ad4b08167
tree69caa47318f5e229f894c4c0bd62665552b754ee
parentb1b705451908e4fb0be29b74c841dd14451327b6
orangefs: migrate to generic_file_read_iter

Remove orangefs_inode_read.  It was used by readpage.  Calling
wait_for_direct_io directly serves the purpose just as well.  There is
now no check of the bufmap size in the readpage path.  There are already
other places the bufmap size is assumed to be greater than PAGE_SIZE.

Important to call truncate_inode_pages now in the write path so a
subsequent read sees the new data.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/file.c
fs/orangefs/inode.c
fs/orangefs/orangefs-kernel.h