Whamcloud - gitweb
LU-7918 mdd: no need to declare attr_set at create 32/19132/4
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Thu, 24 Mar 2016 20:55:49 +0000 (23:55 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 2 Jun 2016 04:44:44 +0000 (04:44 +0000)
commit4da593b06db960e5afef64e175d7e19281063e56
tree2a943ebab27ddbaca349311be80ddfaf9d666f87
parent5c50b8609e54cc6fa72253a4c0ceb9c77961da3c
LU-7918 mdd: no need to declare attr_set at create

as dt_create() will set the attributes we need. also, we can save
couple dt_record_write() in tgt_txn_start_cb() as one is not needed
with multislot enabled while another is not needed at all.
these changes decrease disk/memory reservation from ~33MB to 6MB.

Change-Id: I65e537dd053eb7b4e4d2cccab41973096072b1db
Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-on: http://review.whamcloud.com/19132
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/mdd/mdd_dir.c
lustre/target/tgt_lastrcvd.c