9p: rework client code to use new protocol support functions
[linux-2.6.git] / fs / 9p / vfs_dir.c
index d7d0ac5..276aed6 100644 (file)
@@ -85,8 +85,8 @@ static int v9fs_dir_readdir(struct file *filp, void *dirent, filldir_t filldir)
                return -ENOMEM;
 
        while (1) {
-               err = v9fs_file_readn(filp, statbuf, NULL, fid->rdir_fpos,
-                                                                       buflen);
+               err = v9fs_file_readn(filp, statbuf, NULL, buflen,
+                                                               fid->rdir_fpos);
                if (err <= 0)
                        break;