Lines Matching refs:ref_count
195 int ref_count; member
900 if (fs->ref_count != 1) in floppy_locked_ioctl()
931 if (fs->ref_count == 0) { in floppy_open()
960 } else if (fs->ref_count == -1 || mode & BLK_OPEN_EXCL) in floppy_open()
979 if (fs->ref_count == 0) { in floppy_open()
988 fs->ref_count = -1; in floppy_open()
990 ++fs->ref_count; in floppy_open()
1012 if (fs->ref_count > 0) in floppy_release()
1013 --fs->ref_count; in floppy_release()
1014 else if (fs->ref_count == -1) in floppy_release()
1015 fs->ref_count = 0; in floppy_release()
1016 if (fs->ref_count == 0) { in floppy_release()