patch-2.2.18 linux/net/unix/garbage.c

Next file: linux/net/x25/af_x25.c
Previous file: linux/net/unix/af_unix.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/net/unix/garbage.c linux/net/unix/garbage.c
@@ -108,6 +108,8 @@
 	return u_sock;
 }
 
+int unix_tot_inflight;
+
 /*
  *	Keep the number of times in flight count for the file
  *	descriptor if it is for an AF_UNIX socket.
@@ -116,15 +118,19 @@
 void unix_inflight(struct file *fp)
 {
 	unix_socket *s=unix_get_socket(fp);
-	if(s)
+	if (s) {
 		s->protinfo.af_unix.inflight++;
+		unix_tot_inflight++;
+	}
 }
 
 void unix_notinflight(struct file *fp)
 {
 	unix_socket *s=unix_get_socket(fp);
-	if(s)
+	if (s) {
 		s->protinfo.af_unix.inflight--;
+		unix_tot_inflight--;
+	}
 }
 
 

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