fs: support IOCB_NOWAIT in generic_file_buffered_read
authorMilosz Tanski <milosz@adfin.com>
Tue, 29 Aug 2017 14:13:19 +0000 (16:13 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Sep 2017 23:04:22 +0000 (19:04 -0400)
commit3239d834847627b6634a4139cf1dc58f6f137a46
tree7fb8e4424d69ecd3cc0d4d151464f513942d7bfb
parent47c27bc46946dea543196a92061da14c6da9889e
fs: support IOCB_NOWAIT in generic_file_buffered_read

Allow generic_file_buffered_read to bail out early instead of waiting for
the page lock or reading a page if IOCB_NOWAIT is specified.

Signed-off-by: Milosz Tanski <milosz@adfin.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Acked-by: Sage Weil <sage@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/filemap.c