patch-2.1.43 linux/fs/nfsd/export.c
Next file: linux/fs/nfsd/nfsctl.c
Previous file: linux/fs/nfs/write.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Thu Jun 12 16:22:09 1997
-  Orig file: 
v2.1.42/linux/fs/nfsd/export.c
-  Orig date: 
Mon Apr  7 11:35:31 1997
diff -u --recursive --new-file v2.1.42/linux/fs/nfsd/export.c linux/fs/nfsd/export.c
@@ -331,7 +331,7 @@
 
 	if (!(exp = exp_get(clp, dev, ino)))
 		return -EPERM;
-	exp->ex_inode->i_count++;
+	atomic_inc(&exp->ex_inode->i_count);
 	fh_compose(&fh, exp, exp->ex_inode);
 	memcpy(f, &fh.fh_handle, sizeof(struct knfs_fh));
 	fh_put(&fh);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov