]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Replace direct atomic operation for the file refcount witht the
authorattilio <attilio@FreeBSD.org>
Sun, 25 May 2008 14:57:43 +0000 (14:57 +0000)
committerattilio <attilio@FreeBSD.org>
Sun, 25 May 2008 14:57:43 +0000 (14:57 +0000)
commit4d240aa98e28b74ea9808f1ed3cd852399f4c1ba
treeefe0ea20cbccbb0a37624368357258c8142915a2
parent4789bb571576fe780e5fe461fafb8f80a4f043e1
Replace direct atomic operation for the file refcount witht the
refcount interface.
It also introduces the correct usage of memory barriers, as sometimes
fdrop() and fhold() are used with shared locks, which don't use any
release barrier.
sys/kern/kern_descrip.c
sys/sys/file.h