patch-2.3.1 linux/fs/hfs/bnode.c

Next file: linux/fs/hfs/btree.c
Previous file: linux/fs/hfs/ChangeLog
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/fs/hfs/bnode.c linux/fs/hfs/bnode.c
@@ -228,7 +228,7 @@
 			break;
 
 		case HFS_LOCK_NONE:
-			while (bn->lock || bn->wqueue) {
+			while (bn->lock || witqueue_active(&bn->wqueue)) {
 				hfs_sleep_on(&bn->rqueue);
 			}
 			++bn->count;
@@ -382,7 +382,7 @@
 	/* We update the lock state of the node if it is still in use
 	   or if it is "sticky" (such as the B-tree head and root).
 	   Otherwise we just delete it.	 */
-	if ((bn->count > 1) || (bn->rqueue) || (bn->sticky != HFS_NOT_STICKY)) {
+	if ((bn->count > 1) || (waitqueue_active(&bn->rqueue)) || (bn->sticky != HFS_NOT_STICKY)) {
 		hfs_bnode_lock(bnr, HFS_LOCK_NONE);
 	} else {
 		/* dirty buffer if we (might) have modified it */

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