]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: use larger limit for translation of logical to inode
authorLiu Bo <bo.li.liu@oracle.com>
Sat, 8 Sep 2012 02:01:30 +0000 (20:01 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:19:19 +0000 (15:19 -0400)
commit6b1b7fa5a5a31f4aeb44a4e57cda19ef950ca849
tree9bc771d91851db6f0655f23fdb3b7fd3e127cb52
parenta98bb4198313c0b0ae9b7832a9558d554f89a9a8
Btrfs: use larger limit for translation of logical to inode

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: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
fs/btrfs/backref.c
fs/btrfs/ioctl.c