summaryrefslogtreecommitdiffstats
path: root/fs/cifs/dir.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2010-05-17 13:18:58 +0200
committerSteve French <sfrench@us.ibm.com>2010-05-17 22:59:21 +0200
commit4065c802da7484fa36f8cdf10f18d087233ecb88 (patch)
treea81d1dae07945ce0e6afb22e87c65fe9a0d44be1 /fs/cifs/dir.c
parentcifs: don't update uniqueid in cifs_fattr_to_inode (diff)
downloadlinux-4065c802da7484fa36f8cdf10f18d087233ecb88.tar.xz
linux-4065c802da7484fa36f8cdf10f18d087233ecb88.zip
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.c1
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,
/* get new inode and set it up */
if (*pinode == NULL) {
+ cifs_fill_uniqueid(sb, &fattr);
*pinode = cifs_iget(sb, &fattr);
if (!*pinode) {
rc = -ENOMEM;