Whamcloud - gitweb
LU-1883 osd: Fix niobuf_local offset usage
authorLi Wei <liwei@whamcloud.com>
Tue, 11 Sep 2012 15:02:13 +0000 (23:02 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 24 Sep 2012 06:25:35 +0000 (02:25 -0400)
commit687273b7bff7c8bf5ae6a5c912d46f529f4b0d1a
treeeb07521b158eb409244d54686d6e9ee657cfa11b
parent308459747b4be593cfa8e2108a3a17c4a4059e23
LU-1883 osd: Fix niobuf_local offset usage

osd-ldiskfs fills file offsets into niobuf_local::offset fields in
osd_map_remote_to_local(), while osd_write_prep() treats the values as
page offsets.  Random memory corruptions may occur as a result of this
offset usage inconsistency.  This patch fixes the issue and introduces
the Orion lnb_file_offset and lnb_page_offset names.

Change-Id: I76c555ddbe7f41271be4bebecbc41ce036747258
Signed-off-by: Li Wei <liwei@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/4051
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/include/obd.h
lustre/lvfs/fsfilt_ext3.c
lustre/obdclass/debug.c
lustre/obdecho/echo.c
lustre/obdfilter/filter_io.c
lustre/obdfilter/filter_io_26.c
lustre/osd-ldiskfs/osd_io.c
lustre/osd-zfs/osd_io.c
lustre/ost/ost_handler.c