]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Documentation/filesystems/files.txt: remove rcuref_inc_lf() reverences
authorEric Dumazet <dada1@cosmosbay.com>
Fri, 19 Oct 2007 23:47:49 +0000 (01:47 +0200)
committerAdrian Bunk <bunk@kernel.org>
Fri, 19 Oct 2007 23:47:49 +0000 (01:47 +0200)
rcuref_inc_lf() is not used anymore. Replace it by atomic_inc_not_zero()

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Documentation/filesystems/files.txt

index 133e213ebb721912a79c2c6621ef30050941ce6e..bb0142f6108458f6ccd27b90e965a6bdf820e501 100644 (file)
@@ -76,13 +76,13 @@ the fdtable structure -
 5. Handling of the file structures is special. Since the look-up
    of the fd (fget()/fget_light()) are lock-free, it is possible
    that look-up may race with the last put() operation on the
-   file structure. This is avoided using the rcuref APIs
+   file structure. This is avoided using atomic_inc_not_zero()
    on ->f_count :
 
        rcu_read_lock();
        file = fcheck_files(files, fd);
        if (file) {
-               if (rcuref_inc_lf(&file->f_count))
+               if (atomic_inc_not_zero(&file->f_count))
                        *fput_needed = 1;
                else
                /* Didn't get the reference, someone's freed */
@@ -92,7 +92,7 @@ the fdtable structure -
        ....
        return file;
 
-   rcuref_inc_lf() detects if refcounts is already zero or
+   atomic_inc_not_zero() detects if refcounts is already zero or
    goes to zero during increment. If it does, we fail
    fget()/fget_light().