Whamcloud - gitweb
LU-8370 dne: error in spliting update records 34/21334/6
authorLai Siyao <lai.siyao@intel.com>
Fri, 15 Jul 2016 08:53:18 +0000 (16:53 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 11 Aug 2016 05:49:34 +0000 (05:49 +0000)
commitaa5d6bc2aa9abc745e6f590048e270c59265f699
tree691d29187dd4cfd00dc1e9b7d6b516f0fbb89adf
parent45ce1044cd7b94621e1161cd23c600f8e1c18317
LU-8370 dne: error in spliting update records

sub_updates_write() needs to split update records if it exceeds
llog_chunk_size, current code is not accurate in offset
calculation, now it's changed to use the same set of functions to
estimate and set update llog size.

Besides, the padding size of each split llog should >=
LLOG_MIN_REC_SIZE, or exactly matches llog chunk size, otherwise
llog_osd_pad() will LASSERT.

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: I061c7808b26ce98967858bbed88b9e5180d88289
Reviewed-on: http://review.whamcloud.com/21334
Tested-by: Jenkins
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_update.h
lustre/target/update_trans.c