Avoid needless telldir() call.
authorNikolaus Rath <Nikolaus@rath.org>
Sat, 24 Nov 2018 20:27:12 +0000 (20:27 +0000)
committerNikolaus Rath <Nikolaus@rath.org>
Sat, 24 Nov 2018 20:55:23 +0000 (20:55 +0000)
example/passthrough_ll.c

index a745220dae78cbf020eddf93bc6905887f80708b..eadad3a0a3c8324c70531aab1b50066b99001648 100644 (file)
@@ -698,7 +698,7 @@ static void lo_do_readdir(fuse_req_t req, fuse_ino_t ino, size_t size,
                                break;
                        }
                }
-               nextoff = telldir(d->dp);
+               nextoff = d->entry->d_off;
                name = d->entry->d_name;
                fuse_ino_t entry_ino = 0;
                if (plus) {