]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Make this work with Linux 2.2 kernels again. In particular,
authorGarry Zacheiss <zacheiss@mit.edu>
Wed, 20 Nov 2002 03:18:47 +0000 (03:18 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Wed, 20 Nov 2002 03:18:47 +0000 (03:18 +0000)
commit7af9691f58013e0afdcb8e798e292349bcf73fb3
tree9e1e891d6b334ce8d07f907e386d9446ef6eb8ed
parentc136c332508705b013def8bdf45ee1176b2c39ed
Make this work with Linux 2.2 kernels again.  In particular,

- Use the DCOUNT() macro from afs.h instead of atomic_read, because
  the d_count member of a struct dentry is an int in the 2.2 series,
  not an atomic_t.

- Use list_del() + INIT_LIST_HEAD() on 2.2, which doesn't have list_del_init().

- BUG() only exists on 2.4 kernels.  Just don't use it on 2.2.

(cherry picked from commit f8d781408717fbf65837fc69d4b4edda2349df4f)
src/afs/afs_vcache.c