Arjan van de Ven wrote:
>
> I think that converting the switch to an if-construct would solve the
> compile-problem, but I don't know if the original author omitted the
> "break;" at the end of the first case on purpose..
I think the "break;" is ommited on purpose: readdir returns multiple
entries.
But:
a few lines later it call "read_lock(adfs_read_lock);", it acquires a
spinlock.
Then it calls filldir(), and filldir() calls put_user()/copy_to_user().
What about replacing the read_lock with a rw_semaphore?
-- Manfred- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:19 EST