Whamcloud - gitweb
LU-6565 llog: Do not update the whole llog header 78/14678/8
authorwang di <di.wang@intel.com>
Tue, 5 May 2015 04:15:37 +0000 (21:15 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 28 May 2015 17:05:22 +0000 (17:05 +0000)
commitbf26627764d7e82d9e132de47b40dbda6ec4e261
tree42064a92c0ef427a64ef19093b7680460e2001aa
parentc19992eb6809170acf885f1895fec628982b05ad
LU-6565 llog: Do not update the whole llog header

During adding llog record ( see llog_osd_write_rec()),
do not update the whole llog header, but only update
the byte where the bit locates and the counter.

So cross-MDT operation, which needs to write all of
updates of the operation in the llog record, does not
have to write the whole llog header(8K bytes) into
the update record, instead only writing a few bytes.
It will save a lot space for update logs and
ptlrpc request, and help to pack more updates into
the update log.

Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I777afbb111da6c1bc291735f9c4f105c48b3966b
Reviewed-on: http://review.whamcloud.com/14678
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/obdclass/llog_osd.c