diff options
author | Sripathi Kodi <sripathik@in.ibm.com> | 2010-03-05 13:50:14 -0500 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2010-03-05 16:04:42 -0500 |
commit | 342fee1d5c7dfa05f4e14ec1e583df4553b09776 (patch) | |
tree | 87931dea926f16b44374db8a849ef131cd6ff3de /fs | |
parent | 0fb80abd911a7cb1e6548b5279568dc1e8949702 (diff) |
9P2010.L handshake: Remove "dotu" variable
Removes 'dotu' variable and make everything dependent
on 'proto_version' field.
Signed-off-by: Sripathi Kodi <sripathik@in.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/9p/v9fs.c | 2 | ||||
-rw-r--r-- | fs/9p/vfs_dir.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index 247f10a934ed..6c7f6a251115 100644 --- a/fs/9p/v9fs.c +++ b/fs/9p/v9fs.c | |||
@@ -262,7 +262,7 @@ struct p9_fid *v9fs_session_init(struct v9fs_session_info *v9ses, | |||
262 | goto error; | 262 | goto error; |
263 | } | 263 | } |
264 | 264 | ||
265 | if (!v9ses->clnt->dotu) | 265 | if (!p9_is_proto_dotu(v9ses->clnt)) |
266 | v9ses->flags &= ~V9FS_PROTO_2000U; | 266 | v9ses->flags &= ~V9FS_PROTO_2000U; |
267 | 267 | ||
268 | v9ses->maxdata = v9ses->clnt->msize - P9_IOHDRSZ; | 268 | v9ses->maxdata = v9ses->clnt->msize - P9_IOHDRSZ; |
diff --git a/fs/9p/vfs_dir.c b/fs/9p/vfs_dir.c index 15cce53bf61e..6580aa449541 100644 --- a/fs/9p/vfs_dir.c +++ b/fs/9p/vfs_dir.c | |||
@@ -135,7 +135,7 @@ static int v9fs_dir_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
135 | while (rdir->head < rdir->tail) { | 135 | while (rdir->head < rdir->tail) { |
136 | err = p9stat_read(rdir->buf + rdir->head, | 136 | err = p9stat_read(rdir->buf + rdir->head, |
137 | buflen - rdir->head, &st, | 137 | buflen - rdir->head, &st, |
138 | fid->clnt->dotu); | 138 | fid->clnt->proto_version); |
139 | if (err) { | 139 | if (err) { |
140 | P9_DPRINTK(P9_DEBUG_VFS, "returned %d\n", err); | 140 | P9_DPRINTK(P9_DEBUG_VFS, "returned %d\n", err); |
141 | err = -EIO; | 141 | err = -EIO; |