• Linus Torvalds's avatar
    fremap: get rid of broken 'end' variable · e92b05de
    Linus Torvalds authored
    Thomas Pollet points out that the 'end' variable is broken.  It was
    computed based on start/size before they were page-aligned, and as such
    doesn't actually match any of the other actions we take.  The overflow
    test on end was also redundant, since we had already tested it with the
    properly aligned version.
    
    So just get rid of it entirely.  The one remaining use for that broken
    variable can just use 'start+size' like all the other cases already did.
    Reported-by: default avatarThomas Pollet <thomas.pollet@gmail.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    e92b05de
fremap.c 6.65 KB