Messages in this thread | | | Date | Sat, 11 Mar 2000 12:08:13 +0100 | From | Manfred Spraul <> | Subject | Re: ADFS -> undefined reference to __cmpdi2 (2.3.51) |
| |
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/
| |