Diff for /src/sys/vfs/ntfs/ntfs_ihash.c between versions 1.8 and 1.9

version 1.8, 2004/03/01 06:33:22 version 1.9, 2004/04/20 19:59:30
Line 65  struct lock ntfs_hashlock; Line 65  struct lock ntfs_hashlock;
  * Initialize inode hash table.   * Initialize inode hash table.
  */   */
 void  void
ntfs_nthashinit()ntfs_nthashinit(void)
 {  {
         lockinit(&ntfs_hashlock, 0, "ntfs_nthashlock", 0, 0);          lockinit(&ntfs_hashlock, 0, "ntfs_nthashlock", 0, 0);
         ntfs_nthashtbl = HASHINIT(desiredvnodes, M_NTFSNTHASH, M_WAITOK,          ntfs_nthashtbl = HASHINIT(desiredvnodes, M_NTFSNTHASH, M_WAITOK,
Line 94  ntfs_nthash_uninit(struct vfsconf *vfc) Line 94  ntfs_nthash_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 ntnode *  struct ntnode *
ntfs_nthashlookup(dev, inum)ntfs_nthashlookup(dev_t dev, ino_t inum)
        dev_t dev; 
        ino_t inum; 
 {  {
         struct ntnode *ip;          struct ntnode *ip;
         lwkt_tokref ilock;          lwkt_tokref ilock;
Line 115  ntfs_nthashlookup(dev, inum) Line 113  ntfs_nthashlookup(dev, inum)
  * Insert the ntnode into the hash table.   * Insert the ntnode into the hash table.
  */   */
 void  void
ntfs_nthashins(ip)ntfs_nthashins(struct ntnode *ip)
        struct ntnode *ip; 
 {  {
         struct nthashhead *ipp;          struct nthashhead *ipp;
         lwkt_tokref ilock;          lwkt_tokref ilock;
Line 132  ntfs_nthashins(ip) Line 129  ntfs_nthashins(ip)
  * Remove the inode from the hash table.   * Remove the inode from the hash table.
  */   */
 void  void
ntfs_nthashrem(ip)ntfs_nthashrem(struct ntnode *ip)
        struct ntnode *ip; 
 {  {
         lwkt_tokref ilock;          lwkt_tokref ilock;
   

Removed from v.1.8  
changed lines
  Added in v.1.9