• Jan Kara's avatar
    udf: Fix off-by-one error when discarding preallocation · f54aa97f
    Jan Kara authored
    The condition determining whether the preallocation can be used had
    an off-by-one error so we didn't discard preallocation when new
    allocation was just following it. This can then confuse code in
    inode_getblk().
    
    CC: stable@vger.kernel.org
    Fixes: 16d05565 ("udf: Discard preallocation before extending file with a hole")
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    f54aa97f
inode.c 65.1 KB