Diff for /src/sys/vfs/hpfs/hpfs_hash.c between versions 1.10 and 1.11

version 1.10, 2004/03/01 06:33:20 version 1.11, 2004/04/11 18:17:21
Line 63  struct lock hpfs_hphash_lock; Line 63  struct lock hpfs_hphash_lock;
  * Initialize inode hash table.   * Initialize inode hash table.
  */   */
 void  void
hpfs_hphashinit()hpfs_hphashinit(void)
 {  {
   
         lockinit (&hpfs_hphash_lock, 0, "hpfs_hphashlock", 0, 0);          lockinit (&hpfs_hphash_lock, 0, "hpfs_hphashlock", 0, 0);
Line 93  hpfs_hphash_uninit(struct vfsconf *vfc) Line 93  hpfs_hphash_uninit(struct vfsconf *vfc)
  * to it. If it is in core, return it, even if it is locked.   * to it. If it is in core, return it, even if it is locked.
  */   */
 struct hpfsnode *  struct hpfsnode *
hpfs_hphashlookup(dev, ino)hpfs_hphashlookup(dev_t dev, lsn_t ino)
        dev_t dev; 
        lsn_t ino; 
 {  {
         struct hpfsnode *hp;          struct hpfsnode *hp;
         lwkt_tokref ilock;          lwkt_tokref ilock;
Line 111  hpfs_hphashlookup(dev, ino) Line 109  hpfs_hphashlookup(dev, ino)
 }  }
   
 struct vnode *  struct vnode *
hpfs_hphashvget(dev, ino, td)hpfs_hphashvget(dev_t dev, lsn_t ino, struct thread *td)
        dev_t dev; 
        lsn_t ino; 
        struct thread *td; 
 {  {
         struct hpfsnode *hp;          struct hpfsnode *hp;
         lwkt_tokref ilock;          lwkt_tokref ilock;
Line 158  loop: Line 153  loop:
  * Insert the hpfsnode into the hash table.   * Insert the hpfsnode into the hash table.
  */   */
 void  void
hpfs_hphashins(hp)hpfs_hphashins(struct hpfsnode *hp)
        struct hpfsnode *hp; 
 {  {
         struct hphashhead *hpp;          struct hphashhead *hpp;
         lwkt_tokref ilock;          lwkt_tokref ilock;
Line 175  hpfs_hphashins(hp) Line 169  hpfs_hphashins(hp)
  * Remove the inode from the hash table.   * Remove the inode from the hash table.
  */   */
 void  void
hpfs_hphashrem(hp)hpfs_hphashrem(struct hpfsnode *hp)
        struct hpfsnode *hp; 
 {  {
         lwkt_tokref ilock;          lwkt_tokref ilock;
   

Removed from v.1.10  
changed lines
  Added in v.1.11