mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 07:31:41 +00:00
[PATCH] f_count may wrap around
make it atomic_long_t; while we are at it, get rid of useless checks in affs, hfs and hpfs - ->open() always has it equal to 1, ->release() - to 0. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
3c333937ee
commit
516e0cc564
11 changed files with 27 additions and 39 deletions
|
@ -51,7 +51,7 @@ struct unix_sock {
|
|||
struct sock *peer;
|
||||
struct sock *other;
|
||||
struct list_head link;
|
||||
atomic_t inflight;
|
||||
atomic_long_t inflight;
|
||||
spinlock_t lock;
|
||||
unsigned int gc_candidate : 1;
|
||||
wait_queue_head_t peer_wait;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue