summaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin2018-04-14 00:35:23 +0200
committerLinus Torvalds2018-04-14 02:10:27 +0200
commitd081107867b85cc7454b9d4f5aea47f65bcf06d1 (patch)
tree4cd38640b68f5b53262a2a1e354e3c6efc131103 /mm/filemap.c
parentget_user_pages_fast(): return -EFAULT on access_ok failure (diff)
downloadkernel-qcow2-linux-d081107867b85cc7454b9d4f5aea47f65bcf06d1.tar.gz
kernel-qcow2-linux-d081107867b85cc7454b9d4f5aea47f65bcf06d1.tar.xz
kernel-qcow2-linux-d081107867b85cc7454b9d4f5aea47f65bcf06d1.zip
mm/gup.c: document return value
__get_user_pages_fast handles errors differently from get_user_pages_fast: the former always returns the number of pages pinned, the later might return a negative error code. Link: http://lkml.kernel.org/r/1522962072-182137-6-git-send-email-mst@redhat.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Huang Ying <ying.huang@intel.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Thorsten Leemhuis <regressions@leemhuis.info> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions