From: Ned Bass Date: Thu, 9 Aug 2012 21:42:17 +0000 (-0700) Subject: LU-1730 obdclass: fix cfs_lockdep_set_class() typos X-Git-Tag: 2.3.53~37 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a0d49d7368d4f97cb1abc2afe6048da809edd4b2;p=fs%2Flustre-release.git LU-1730 obdclass: fix cfs_lockdep_set_class() typos During cl_object_header initialization, coh_attr_guard was mistakenly passed to cfs_lockdep_set_class() for all three spinlocks in cl_object_header. Signed-off-by: Ned Bass Change-Id: I725b4f463fc3cbf8a6a5254f910f0e35588a7969 Reviewed-on: http://review.whamcloud.com/3590 Reviewed-by: Jinshan Xiong Reviewed-by: Andreas Dilger Tested-by: Hudson Tested-by: Maloo --- diff --git a/lustre/obdclass/cl_object.c b/lustre/obdclass/cl_object.c index 5ab8a92..4b0e303 100644 --- a/lustre/obdclass/cl_object.c +++ b/lustre/obdclass/cl_object.c @@ -88,8 +88,8 @@ int cl_object_header_init(struct cl_object_header *h) cfs_spin_lock_init(&h->coh_page_guard); cfs_spin_lock_init(&h->coh_lock_guard); cfs_spin_lock_init(&h->coh_attr_guard); - cfs_lockdep_set_class(&h->coh_attr_guard, &cl_page_guard_class); - cfs_lockdep_set_class(&h->coh_attr_guard, &cl_lock_guard_class); + cfs_lockdep_set_class(&h->coh_page_guard, &cl_page_guard_class); + cfs_lockdep_set_class(&h->coh_lock_guard, &cl_lock_guard_class); cfs_lockdep_set_class(&h->coh_attr_guard, &cl_attr_guard_class); h->coh_pages = 0; /* XXX hard coded GFP_* mask. */