patch-2.4.7 linux/fs/affs/dir.c

Next file: linux/fs/affs/file.c
Previous file: linux/fs/affs/amigaffs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/fs/affs/dir.c linux/fs/affs/dir.c
@@ -85,7 +85,7 @@
 		stored++;
 	}
 
-	down(&AFFS_INODE->i_hash_lock);
+	affs_lock_dir(inode);
 	chain_pos = (f_pos - 2) & 0xffff;
 	hash_pos  = (f_pos - 2) >> 16;
 	if (chain_pos == 0xffff) {
@@ -157,7 +157,7 @@
 readdir_out:
 	affs_brelse(dir_bh);
 	affs_brelse(fh_bh);
-	up(&AFFS_INODE->i_hash_lock);
+	affs_unlock_dir(inode);
 	pr_debug("AFFS: readdir()=%d\n", stored);
 	return res;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)