Home
last modified time | relevance | path

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

/linux-2.6.39/fs/reiserfs/
Dfile.c41 if (atomic_add_unless(&REISERFS_I(inode)->openers, -1, 1)) in reiserfs_file_release()
46 if (!atomic_dec_and_test(&REISERFS_I(inode)->openers)) { in reiserfs_file_release()
120 if (!atomic_inc_not_zero(&REISERFS_I(inode)->openers)) { in reiserfs_file_open()
123 atomic_inc(&REISERFS_I(inode)->openers); in reiserfs_file_open()
Dsuper.c527 atomic_set(&ei->openers, 0); in reiserfs_alloc_inode()
/linux-2.6.39/drivers/ide/
Dide-gd.c198 idkp->openers++;
200 if ((drive->dev_flags & IDE_DFLAG_REMOVABLE) && idkp->openers == 1) {
236 idkp->openers--;
261 if (idkp->openers == 1)
264 if ((drive->dev_flags & IDE_DFLAG_REMOVABLE) && idkp->openers == 1) {
269 idkp->openers--;
Dide-gd.h21 unsigned int openers; /* protected by BKL for now */ member
Dide-floppy_ioctl.c145 if (floppy->openers > 1) { in ide_floppy_format_unit()
242 if (floppy->openers > 1) in ide_floppy_lockdoor()
/linux-2.6.39/include/linux/
Dreiserfs_fs_i.h55 atomic_t openers; member
/linux-2.6.39/drivers/scsi/
Dsd.h60 atomic_t openers; member
Dsd.c977 if ((atomic_inc_return(&sdkp->openers) == 1) && sdev->removable) { in sd_open()
1011 if (atomic_dec_return(&sdkp->openers) == 0 && sdev->removable) { in sd_release()
2565 atomic_set(&sdkp->openers, 0); in sd_probe()
/linux-2.6.39/drivers/md/
Dmd.h258 atomic_t openers; /* number of active opens */ member
Dmd.c550 atomic_set(&mddev->openers, 0); in mddev_init()
3440 if (atomic_read(&mddev->openers) > 0) in array_state_store()
3447 if (atomic_read(&mddev->openers) > 0) in array_state_store()
4785 if (atomic_read(&mddev->openers) > is_open) { in md_set_readonly()
4817 if (atomic_read(&mddev->openers) > is_open || in do_md_stop()
6027 atomic_inc(&mddev->openers); in md_open()
6040 atomic_dec(&mddev->openers); in md_release()