gtfs: Fix has_children()
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 26 Jun 2018 22:36:56 +0000 (18:36 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 26 Jun 2018 22:36:56 +0000 (18:36 -0400)
commit13b523336daa5ff97308437a5b4f388881e7b622
treef0223a655d052fd5d1615b58366ccea612efcc85
parentf362b4c3c71b901e997567a3202d0616d7363aa3
gtfs: Fix has_children()

Two problems: the assert was clearly backwards, and we were using the
locked gtfs_read().  As mentioned in tree_file.h, all ops that take a
parent TF have the file qlocked.  gtfs uses that qlock for its backend
operations.  When we called gtfs_read(), we would deadlock.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/dev/gtfs.c