From 9b16014bd6efdefd4d1790e68f0928d39662dd60 Mon Sep 17 00:00:00 2001 From: vs Date: Thu, 23 Oct 2008 14:19:33 +0000 Subject: [PATCH] b=11063 i=green,vitaly this patch reverses https://bugzilla.lustre.org/attachment.cgi?id=7933 https://bugzilla.lustre.org/attachment.cgi?id=7882 https://bugzilla.lustre.org/attachment.cgi?id=15831 and replaces them with setting mtime to past under extent lock sanity test (39c) is added to check original problem i=adilger,grev --- lustre/include/obd_class.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lustre/include/obd_class.h b/lustre/include/obd_class.h index e9b9d71..c6d49c5 100644 --- a/lustre/include/obd_class.h +++ b/lustre/include/obd_class.h @@ -1245,6 +1245,20 @@ static inline int obd_merge_lvb(struct obd_export *exp, RETURN(rc); } +static inline int obd_update_lvb(struct obd_export *exp, + struct lov_stripe_md *lsm, + struct ost_lvb *lvb, obd_flag valid) +{ + int rc; + ENTRY; + + OBD_CHECK_OP(exp->exp_obd, update_lvb, -EOPNOTSUPP); + EXP_COUNTER_INCREMENT(exp, update_lvb); + + rc = OBP(exp->exp_obd, update_lvb)(exp, lsm, lvb, valid); + RETURN(rc); +} + static inline int obd_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm, obd_off size, int shrink) -- 1.8.3.1