Whamcloud - gitweb
LU-5389: optimize ll_fid2path() 67/11167/7
authorFrank Zago <fzago@cray.com>
Sat, 19 Jul 2014 18:55:09 +0000 (13:55 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 25 Jul 2014 03:25:14 +0000 (03:25 +0000)
commit9104b6b5bde4be73c7ce19df29becdec76da36de
tree01b8550f4a6eb230d4b7e97615202736a92c7546
parent2df57a9de0a36a356240655c3c84ff96de4f63ae
LU-5389: 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.

Change-Id: I4baa941f0128f9bcc19fade112915f3c52cd5b8b
Signed-off-by: frank zago <fzago@cray.com>
Reviewed-on: http://review.whamcloud.com/11167
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/llite/file.c
lustre/llite/llite_internal.h