Lines Matching refs:ref_count
187 int ref_count; member
617 if (fs->ref_count == -1 || (fs->ref_count && mode & FMODE_EXCL)) in floppy_open()
621 fs->ref_count = -1; in floppy_open()
623 fs->ref_count++; in floppy_open()
652 if (fs->ref_count < 0) in floppy_open()
653 fs->ref_count = 0; in floppy_open()
654 else if (fs->ref_count > 0) in floppy_open()
655 --fs->ref_count; in floppy_open()
657 if (fs->ref_count == 0) in floppy_open()
679 if (fs->ref_count < 0) in floppy_release()
680 fs->ref_count = 0; in floppy_release()
681 else if (fs->ref_count > 0) in floppy_release()
682 --fs->ref_count; in floppy_release()
684 if (fs->ref_count == 0) in floppy_release()
700 if (fs->ref_count != 1) in floppy_ioctl()
764 fs->ref_count = 0; in swim_add_floppy()