diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-05-17 07:18:58 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-05-17 16:59:21 -0400 |
commit | 4065c802da7484fa36f8cdf10f18d087233ecb88 (patch) | |
tree | a81d1dae07945ce0e6afb22e87c65fe9a0d44be1 /fs/cifs/dir.c | |
parent | 84f30c66c3689745abbd3b9ce39816caeb9bec3b (diff) |
cifs: fix noserverino handling when unix extensions are enabled
The uniqueid field sent by the server when unix extensions are enabled
is currently used sometimes when it shouldn't be. The readdir codepath
is correct, but most others are not. Fix it.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r-- | fs/cifs/dir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 86d3c0c82f25..391816b461ca 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c | |||
@@ -248,6 +248,7 @@ int cifs_posix_open(char *full_path, struct inode **pinode, | |||
248 | 248 | ||
249 | /* get new inode and set it up */ | 249 | /* get new inode and set it up */ |
250 | if (*pinode == NULL) { | 250 | if (*pinode == NULL) { |
251 | cifs_fill_uniqueid(sb, &fattr); | ||
251 | *pinode = cifs_iget(sb, &fattr); | 252 | *pinode = cifs_iget(sb, &fattr); |
252 | if (!*pinode) { | 253 | if (!*pinode) { |
253 | rc = -ENOMEM; | 254 | rc = -ENOMEM; |