patch-2.4.0-test2 linux/fs/nfs/proc.c
Next file: linux/fs/nfs/read.c
Previous file: linux/fs/nfs/nfs3proc.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Jun 23 21:12:53 2000
- Orig file:
v2.4.0-test1/linux/fs/nfs/proc.c
- Orig date:
Tue May 23 15:31:36 2000
diff -u --recursive --new-file v2.4.0-test1/linux/fs/nfs/proc.c linux/fs/nfs/proc.c
@@ -42,8 +42,6 @@
#include <linux/nfs2.h>
#include <linux/nfs_fs.h>
-#include <asm/segment.h>
-
#define NFSDBG_FACILITY NFSDBG_PROC
/*
@@ -203,7 +201,7 @@
if (S_ISFIFO(mode)) {
sattr->ia_mode = (mode & ~S_IFMT) | S_IFCHR;
sattr->ia_valid &= ~ATTR_SIZE;
- } else if (S_ISCHR(rdev) || S_ISBLK(rdev)) {
+ } else if (S_ISCHR(mode) || S_ISBLK(mode)) {
sattr->ia_valid |= ATTR_SIZE;
sattr->ia_size = rdev; /* get out your barf bag */
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)