summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-05-28 23:13:14 +0000
committermidipix <writeonce@midipix.org>2024-05-28 23:25:30 +0000
commit5a35e13dc1ccc2ba97eb3a7d3b156866f1605492 (patch)
tree6f2bc35ecea21e547c0c222a74cc7a9c5070c60b /src/driver
parent4097babc0adfe909d91d18b36b5a35958bc598e0 (diff)
downloadtpax-5a35e13dc1ccc2ba97eb3a7d3b156866f1605492.tar.bz2
tpax-5a35e13dc1ccc2ba97eb3a7d3b156866f1605492.tar.xz
driver: internals: always allocate dirbuff, used in tpax_queue_item_full_path().
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/tpax_driver_ctx.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/driver/tpax_driver_ctx.c b/src/driver/tpax_driver_ctx.c
index 8ab684d..6ed71ab 100644
--- a/src/driver/tpax_driver_ctx.c
+++ b/src/driver/tpax_driver_ctx.c
@@ -301,12 +301,11 @@ static struct tpax_driver_ctx_impl * tpax_driver_ctx_alloc(
return 0;
}
- if (cctx->drvflags & TPAX_DRIVER_DIR_MEMBER_RECURSE)
- ictx->ctx.dirbuff = mmap(
- 0,TPAX_DIRENT_BUFLEN,
- PROT_READ|PROT_WRITE,
- MAP_PRIVATE|MAP_ANONYMOUS,
- -1,0);
+ ictx->ctx.dirbuff = mmap(
+ 0,TPAX_DIRENT_BUFLEN,
+ PROT_READ|PROT_WRITE,
+ MAP_PRIVATE|MAP_ANONYMOUS,
+ -1,0);
if (ictx->ctx.dirbuff == MAP_FAILED) {
munmap(ictx->ctx.bufaddr,ictx->ctx.bufsize);