ref                36 kernel/file.c      if(f->ref == 0){
ref                37 kernel/file.c        f->ref = 1;
ref                51 kernel/file.c    if(f->ref < 1)
ref                53 kernel/file.c    f->ref++;
ref                65 kernel/file.c    if(f->ref < 1)
ref                67 kernel/file.c    if(--f->ref > 0){
ref                72 kernel/file.c    f->ref = 0;
ref                 3 kernel/file.h    int ref; // reference count
ref                20 kernel/file.h    int ref;            // Reference count
ref               256 kernel/fs.c        if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
ref               257 kernel/fs.c          ip->ref++;
ref               261 kernel/fs.c        if(empty == 0 && ip->ref == 0)    // Remember empty slot.
ref               272 kernel/fs.c      ip->ref = 1;
ref               285 kernel/fs.c      ip->ref++;
ref               298 kernel/fs.c      if(ip == 0 || ip->ref < 1)
ref               323 kernel/fs.c      if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1)
ref               341 kernel/fs.c      if(ip->ref == 1 && ip->valid && ip->nlink == 0){
ref               360 kernel/fs.c      ip->ref--;