• Linus Torvalds's avatar
    mm: simplify and improve print_vma_addr() output · de7e71ef
    Linus Torvalds authored
    Use '%pD' to print out the filename, and print out the actual offset
    within the file too, rather than just what the virtual address of the
    mapping is (which doesn't tell you anything about any mapping offsets).
    
    Also, use the exact vma_lookup() instead of find_vma() - the latter
    looks up any vma _after_ the address, which is of questionable value
    (yes, maybe you fell off the beginning, but you'd be more likely to fall
    off the end).
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    de7e71ef
memory.c 177 KB