diff options
author | Mike Rapoport <rppt@linux.ibm.com> | 2019-09-23 15:39:31 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-09-24 15:54:12 -0700 |
commit | f3bc0dba3154fa7e4a728e0be8f37bd5fb9100fe (patch) | |
tree | 32475f75a260ca7611c16c26deece72ac76d7fc5 /virt | |
parent | 76f34950779f3d7847c94615232dff2cdc2f9844 (diff) | |
download | talos-op-linux-f3bc0dba3154fa7e4a728e0be8f37bd5fb9100fe.tar.gz talos-op-linux-f3bc0dba3154fa7e4a728e0be8f37bd5fb9100fe.zip |
mm/madvise: reduce code duplication in error handling paths
madvise_behavior() converts -ENOMEM to -EAGAIN in several places using
identical code.
Move that code to a common error handling path.
No functional changes.
Link: http://lkml.kernel.org/r/1564640896-1210-1-git-send-email-rppt@linux.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Acked-by: Pankaj Gupta <pagupta@redhat.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions