|
@@ -76,15 +76,6 @@ static inline int dt_type(struct p9_wstat *mistat)
|
|
|
return rettype;
|
|
|
}
|
|
|
|
|
|
-static void p9stat_init(struct p9_wstat *stbuf)
|
|
|
-{
|
|
|
- stbuf->name = NULL;
|
|
|
- stbuf->uid = NULL;
|
|
|
- stbuf->gid = NULL;
|
|
|
- stbuf->muid = NULL;
|
|
|
- stbuf->extension = NULL;
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* v9fs_alloc_rdir_buf - Allocate buffer used for read and readdir
|
|
|
* @filp: opened file structure
|
|
@@ -145,12 +136,10 @@ static int v9fs_dir_readdir(struct file *file, struct dir_context *ctx)
|
|
|
rdir->tail = n;
|
|
|
}
|
|
|
while (rdir->head < rdir->tail) {
|
|
|
- p9stat_init(&st);
|
|
|
err = p9stat_read(fid->clnt, rdir->buf + rdir->head,
|
|
|
rdir->tail - rdir->head, &st);
|
|
|
if (err) {
|
|
|
p9_debug(P9_DEBUG_VFS, "returned %d\n", err);
|
|
|
- p9stat_free(&st);
|
|
|
return -EIO;
|
|
|
}
|
|
|
reclen = st.size+2;
|