patch-2.1.45 linux/fs/nfsd/export.c

Next file: linux/fs/nfsd/vfs.c
Previous file: linux/fs/nfs/write.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.44/linux/fs/nfsd/export.c linux/fs/nfsd/export.c
@@ -331,7 +331,7 @@
 
 	if (!(exp = exp_get(clp, dev, ino)))
 		return -EPERM;
-	atomic_inc(&exp->ex_inode->i_count);
+	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