patch-2.4.22 linux-2.4.22/fs/nfsd/vfs.c

Next file: linux-2.4.22/fs/nls/Config.in
Previous file: linux-2.4.22/fs/nfsd/nfsfh.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/fs/nfsd/vfs.c linux-2.4.22/fs/nfsd/vfs.c
@@ -1151,7 +1151,9 @@
 				iap->ia_mode = (iap->ia_mode&S_IALLUGO)
 					| S_IFLNK;
 				err = notify_change(dnew, iap);
-				if (!err && EX_ISSYNC(fhp->fh_export))
+				if (err)
+					err = nfserrno(err);
+				else if (EX_ISSYNC(fhp->fh_export))
 					write_inode_now(dentry->d_inode, 1);
 		       }
 		}

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