From: Frank Zago Date: Fri, 15 Aug 2014 16:48:12 +0000 (-0400) Subject: staging/lustre/llite: optimize ll_fid2path() X-Git-Tag: fixes-for-v3.18-merge-window~15^2~1200 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b358b4ea5b2912726d872611089e790a8388b62;p=pandora-kernel.git staging/lustre/llite: optimize ll_fid2path() The only parameter from userspace that matters is the length of the buffer. We don't need to allocate then import the whole structure. By importing only that length, we can save a memory allocation. Add sparse annotations to that function. Signed-off-by: frank zago Reviewed-on: http://review.whamcloud.com/11167 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5389 Reviewed-by: John L. Hammond Reviewed-by: Andreas Dilger Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed