Whamcloud - gitweb
LU-7050 llog: record the minimum record size 03/16103/6
authorwang di <di.wang@intel.com>
Mon, 24 Aug 2015 17:28:03 +0000 (10:28 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 10 Sep 2015 04:06:56 +0000 (04:06 +0000)
commitf61148f758b30de91684c58053e4dad6159f8858
treed0ec0a24d56cdd3d866e3c8778dd938d1753f8ca
parenta99e42c9fa47677cd2468abfa9378d776cc40803
LU-7050 llog: record the minimum record size

Remember the minimum record size in llog header, so in
llog_skip_over, it can skip the records properly. In current
implementation, it will use LLOG_MIN_REC_SIZE, only 24 bytes,
which too less for update records(usually more than 1000 bytes),
and cause update recovery reading a lot useless update records
from other MDTs.

The minimum record size will be recorded in llh_size, which is
only used by fixed size record llog now, and also add another
flag LLOG_F_IS_FIXSIZE to indicate the fix size record llog.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Ia62684d1fb744e3aca74107f22683b2ee63a2d16
Reviewed-on: http://review.whamcloud.com/16103
Tested-by: Jenkins
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/obdclass/llog.c
lustre/obdclass/llog_osd.c
lustre/obdclass/llog_test.c