[LU-154] Prototype of d_compare has changed in 2.6.38 Created: 24/Mar/11  Updated: 06/Aug/12  Resolved: 06/Aug/12

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Johann Lombardi (Inactive) Assignee: Johann Lombardi (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 10206

 Description   

The prototype of ->d_compare has changed in 2.6.38. See the kernel commit for more information.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=621e155a3591962420eacdd39f6f0aa29ceb221e



 Comments   
Comment by Build Master (Inactive) [ 24/Mar/11 ]

Integrated in reviews-centos5 #549
LU-154 Prototype of d_compare has changed in 2.6.38

Johann Lombardi : 2f305c87c2454498ec9583d7d78fc8e7000c7176
Files :

  • lustre/llite/dcache.c
  • lustre/autoconf/lustre-core.m4
Comment by Build Master (Inactive) [ 24/Mar/11 ]

Integrated in reviews-centos5 #551
LU-154 cleanup some dead code

Johann Lombardi : bd84f8e704cda8c7f9e9792d35fd71b84326b55d
Files :

  • lustre/llite/dcache.c
  • lustre/llite/symlink.c
  • lustre/llite/llite_internal.h
  • lustre/include/linux/lustre_acl.h
  • lustre/ldlm/ldlm_lock.c
  • lustre/llite/namei.c
  • lustre/include/linux/obd.h
  • lustre/lmv/lmv_intent.c
  • lustre/llite/file.c
  • lustre/include/lustre_mdc.h
  • lustre/obdclass/linux/linux-module.c
  • lustre/include/linux/lustre_mds.h
  • lustre/include/linux/lustre_intent.h
Comment by Wally Wang (Inactive) [ 15/Nov/11 ]

For the d_compare patch, there are more places need to be patched:

dcache.c:

For the couple of d_mountpoint(dchild) calls in ll_dcompare(), the compiler will complain about dchild since it has the extra const qualifier.

llite_internal.h:

The ll_dcompare() needs to be ifdef'd for the interface change.

Comment by Johann Lombardi (Inactive) [ 06/Aug/12 ]

I think Lai took care of this.

Generated at Sat Feb 10 01:04:17 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.