git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NFS: Fix the type of struct nfs_fattr->mode
[pandora-kernel.git]
/
fs
/
nfs
/
getroot.c
diff --git
a/fs/nfs/getroot.c
b/fs/nfs/getroot.c
index
b7c9b2d
..
46177cb
100644
(file)
--- a/
fs/nfs/getroot.c
+++ b/
fs/nfs/getroot.c
@@
-156,7
+156,7
@@
int nfs4_path_walk(struct nfs_server *server,
return ret;
}
return ret;
}
- if (
fattr.type != NFDIR
) {
+ if (
!S_ISDIR(fattr.mode)
) {
printk(KERN_ERR "nfs4_get_root:"
" getroot encountered non-directory\n");
return -ENOTDIR;
printk(KERN_ERR "nfs4_get_root:"
" getroot encountered non-directory\n");
return -ENOTDIR;
@@
-213,7
+213,7
@@
eat_dot_dir:
return ret;
}
return ret;
}
- if (
fattr.type != NFDIR
) {
+ if (
!S_ISDIR(fattr.mode)
) {
printk(KERN_ERR "nfs4_get_root:"
" lookupfh encountered non-directory\n");
return -ENOTDIR;
printk(KERN_ERR "nfs4_get_root:"
" lookupfh encountered non-directory\n");
return -ENOTDIR;