]> git.baikalelectronics.ru Git - kernel.git/commit
staging/lustre/llite: optimize ll_fid2path()
authorFrank Zago <fzago@cray.com>
Fri, 15 Aug 2014 16:48:12 +0000 (12:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Aug 2014 16:38:43 +0000 (09:38 -0700)
commit49b75bfe1d9953511f041a90ba7833b9fecdf3de
treecfcdf1bc24bd414f608d124d02f315aa687ce093
parent4fa0241b7637aeef63b1b00a5f8afd1036ef2286
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 <fzago@cray.com>
Reviewed-on: http://review.whamcloud.com/11167
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5389
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/file.c
drivers/staging/lustre/lustre/llite/llite_internal.h