Home
last modified time | relevance | path

Searched refs:openers (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/ide/
Dide-gd.c199 idkp->openers++;
201 if ((drive->dev_flags & IDE_DFLAG_REMOVABLE) && idkp->openers == 1) {
241 idkp->openers--;
266 if (idkp->openers == 1)
269 if ((drive->dev_flags & IDE_DFLAG_REMOVABLE) && idkp->openers == 1) {
274 idkp->openers--;
Dide-gd.h22 unsigned int openers; /* protected by BKL for now */ member
Dide-floppy_ioctl.c147 if (floppy->openers > 1) { in ide_floppy_format_unit()
244 if (floppy->openers > 1) in ide_floppy_lockdoor()
/kernel/linux/linux-5.10/fs/reiserfs/
Dfile.c41 if (!atomic_dec_and_mutex_lock(&REISERFS_I(inode)->openers, in reiserfs_file_release()
122 if (!atomic_inc_not_zero(&REISERFS_I(inode)->openers)) { in reiserfs_file_open()
124 atomic_inc(&REISERFS_I(inode)->openers); in reiserfs_file_open()
Dsuper.c645 atomic_set(&ei->openers, 0); in reiserfs_alloc_inode()
Dreiserfs.h96 atomic_t openers; member
/kernel/linux/linux-5.10/drivers/scsi/
Dsd.h91 atomic_t openers; member
Dsd.c1473 if ((atomic_inc_return(&sdkp->openers) == 1) && sdev->removable) { in sd_open()
1505 if (atomic_dec_return(&sdkp->openers) == 0 && sdev->removable) { in sd_release()
3435 atomic_set(&sdkp->openers, 0); in sd_probe()
/kernel/linux/linux-5.10/drivers/md/
Dmd.h406 atomic_t openers; /* number of active opens */ member
Dmd.c698 atomic_set(&mddev->openers, 0); in mddev_init()
6328 if ((mddev->pers && atomic_read(&mddev->openers) > !!bdev) || in md_set_readonly()
6389 if ((mddev->pers && atomic_read(&mddev->openers) > !!bdev) || in do_md_stop()
7579 if (mddev->pers && atomic_read(&mddev->openers) > 1) { in md_ioctl()
7840 atomic_inc(&mddev->openers); in md_open()
7855 atomic_dec(&mddev->openers); in md_release()