Whamcloud - gitweb
LU-5837 llite: ll_getparent cleanup 27/12527/6
authorHenri Doreau <henri.doreau@cea.fr>
Fri, 31 Oct 2014 23:04:19 +0000 (00:04 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 Dec 2014 08:14:42 +0000 (08:14 +0000)
commit188325f9211b6f2b87a04ec1155b005b8af54c2b
treea1de6b1bb0905d3b2bca1329855d9760028768eb
parentfb259fe85813e0f28ac7f7410689e3856ef26316
LU-5837 llite: ll_getparent cleanup

Avoid unneeded allocation. Get read-only attributes from the user
getparent structure and write the modified attributes only, instead
of populating a whole structure in kernel and copying it back.

Signed-off-by: Henri Doreau <henri.doreau@cea.fr>
Change-Id: Ifc0632870f80733194384d02d1b4962cdcd75658
Reviewed-on: http://review.whamcloud.com/12527
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: frank zago <fzago@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/file.c
lustre/llite/llite_lib.c
lustre/utils/liblustreapi.c