lkml.org 
[lkml]   [2000]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.074 / U:0.928 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site