]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_inode_fork.c
xfs: optimize inline symlinks
authorChristoph Hellwig <hch@lst.de>
Tue, 21 Jun 2016 06:36:51 +0000 (16:36 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 21 Jun 2016 06:36:51 +0000 (16:36 +1000)
commit4cab415fc9e9b7d7b365c2e222b90b88a3053f01
tree5096b9d25f523b1acc958a1d2b69d20ec20b14d3
parent219eec760c348188b869768ad9700dd0994949c4
xfs: optimize inline symlinks

Source kernel commit 30ee052e12b97c190b27fe6f20e3ac3047df7b5c

By overallocating the in-core inode fork data buffer and zero
terminating the link target in xfs_init_local_fork we can avoid
the memory allocation in ->follow_link.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_inode_fork.c