Whamcloud - gitweb
LU-1302 llog: simplify llog_setup functionality
authorMikhail Pershin <tappro@whamcloud.com>
Fri, 31 Aug 2012 05:18:35 +0000 (09:18 +0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Sep 2012 03:09:24 +0000 (23:09 -0400)
commit1d2bf12a7c3e954858e08134f4e7bc1fce9a5812
treeeaa35ab344d067f80a6e33e0e9df45c4984bcad4
parent3ff4a0744c229e0199bc7d93db9221c3bfb1f846
LU-1302 llog: simplify llog_setup functionality

llog catalog used llog_obd_origin_setup as llog_setup() function
It does actually setup, open and llog processing inside that
makes it different from plain llog and breaks new llog API

Patch does the following:

- llog operations are needed for both ctxt and handler, in ctxt
  there are disk and network operations possible, per-handle there
  are plain and catalog llogs. in-handle operations are taken from
  ctxt at first then updated for catalogs by the caller
- rework llog_setup, keep only ctxt allocation in it, remove unused
  parameters, remove llog_setup_named as name was never used

Signed-off-by: Mikhail Pershin <tappro@whamcloud.com>
Change-Id: I8641e697898a1a57bbc500b649f065ba3f2d41b0
Reviewed-on: http://review.whamcloud.com/3949
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
16 files changed:
lustre/include/lustre_log.h
lustre/lov/lov_log.c
lustre/mdc/mdc_request.c
lustre/mds/handler.c
lustre/mds/mds_log.c
lustre/mdt/mdt_handler.c
lustre/mgc/libmgc.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_handler.c
lustre/obdclass/llog_cat.c
lustre/obdclass/llog_internal.h
lustre/obdclass/llog_lvfs.c
lustre/obdclass/llog_obd.c
lustre/obdclass/llog_test.c
lustre/obdfilter/filter.c
lustre/osc/osc_request.c