• Liu Bo's avatar
    Btrfs: use larger limit for translation of logical to inode · 425d17a2
    Liu Bo authored
    This is the change of the kernel side.
    
    Translation of logical to inode used to have an upper limit 4k on
    inode container's size, but the limit is not large enough for a data
    with a great many of refs, so when resolving logical address,
    we can end up with
    "ioctl ret=0, bytes_left=0, bytes_missing=19944, cnt=510, missed=2493"
    
    This changes to regard 64k as the upper limit and use vmalloc instead of
    kmalloc to get memory more easily.
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    Signed-off-by: default avatarLiu Bo <bo.li.liu@oracle.com>
    425d17a2
backref.c 42.3 KB