ref 33 file.c if(f->ref == 0){ ref 34 file.c f->ref = 1; ref 48 file.c if(f->ref < 1) ref 50 file.c f->ref++; ref 62 file.c if(f->ref < 1) ref 64 file.c if(--f->ref > 0){ ref 69 file.c f->ref = 0; ref 3 file.h int ref; // reference count ref 16 file.h int ref; // Reference count ref 251 fs.c if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ ref 252 fs.c ip->ref++; ref 256 fs.c if(empty == 0 && ip->ref == 0) // Remember empty slot. ref 267 fs.c ip->ref = 1; ref 280 fs.c ip->ref++; ref 293 fs.c if(ip == 0 || ip->ref < 1) ref 318 fs.c if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1) ref 337 fs.c int r = ip->ref; ref 350 fs.c ip->ref--;