FMODE_WRITE 122 arch/s390/hypfs/inode.c if (filp->f_mode & FMODE_WRITE) { FMODE_WRITE 195 arch/um/drivers/hostaudio_kern.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 256 arch/um/drivers/hostaudio_kern.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 40 arch/um/drivers/random.c if ((filp->f_mode & FMODE_WRITE) != 0) FMODE_WRITE 1624 arch/x86/kernel/apm_32.c as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE; FMODE_WRITE 130 arch/x86/kernel/msr.c if (!(file->f_mode & FMODE_WRITE)) { FMODE_WRITE 394 block/blk-zoned.c if (!(mode & FMODE_WRITE)) FMODE_WRITE 210 block/ioctl.c if (!(mode & FMODE_WRITE)) FMODE_WRITE 241 block/ioctl.c if (!(mode & FMODE_WRITE)) FMODE_WRITE 209 block/scsi_ioctl.c if (test_bit(cmd[0], filter->write_ok) && (mode & FMODE_WRITE)) FMODE_WRITE 1110 drivers/auxdisplay/panel.c if (file->f_mode & FMODE_WRITE) /* device is read-only */ FMODE_WRITE 1672 drivers/block/amiflop.c if (mode & (FMODE_READ|FMODE_WRITE)) { FMODE_WRITE 1674 drivers/block/amiflop.c if (mode & FMODE_WRITE) { FMODE_WRITE 1911 drivers/block/ataflop.c if (mode & (FMODE_READ|FMODE_WRITE)) { FMODE_WRITE 1913 drivers/block/ataflop.c if (mode & FMODE_WRITE) { FMODE_WRITE 1924 drivers/block/drbd/drbd_main.c if (mode & FMODE_WRITE) FMODE_WRITE 1715 drivers/block/drbd/drbd_nl.c FMODE_READ | FMODE_WRITE | FMODE_EXCL, claim_ptr); FMODE_WRITE 1727 drivers/block/drbd/drbd_nl.c blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); FMODE_WRITE 1775 drivers/block/drbd/drbd_nl.c blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); FMODE_WRITE 3441 drivers/block/floppy.c if (((cmd & 0x40) && !(mode & (FMODE_WRITE | FMODE_WRITE_IOCTL))) || FMODE_WRITE 3686 drivers/block/floppy.c if (!(mode & (FMODE_WRITE | FMODE_WRITE_IOCTL))) FMODE_WRITE 4067 drivers/block/floppy.c if (mode & (FMODE_READ|FMODE_WRITE)) { FMODE_WRITE 4077 drivers/block/floppy.c if ((mode & FMODE_WRITE) && FMODE_WRITE 998 drivers/block/loop.c if (!(file->f_mode & FMODE_WRITE) || !(mode & FMODE_WRITE) || FMODE_WRITE 1626 drivers/block/loop.c if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) { FMODE_WRITE 1635 drivers/block/loop.c if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) { FMODE_WRITE 1645 drivers/block/loop.c if (!(mode & FMODE_WRITE) && !capable(CAP_SYS_ADMIN)) FMODE_WRITE 341 drivers/block/paride/pf.c if ((pf->media_status == PF_RO) && (mode & FMODE_WRITE)) FMODE_WRITE 682 drivers/block/paride/pt.c if ((!(tape->flags & PT_WRITE_OK)) && (file->f_mode & FMODE_WRITE)) FMODE_WRITE 2276 drivers/block/pktcdvd.c if ((mode & FMODE_WRITE) && FMODE_WRITE 2282 drivers/block/pktcdvd.c ret = pkt_open_dev(pd, mode & FMODE_WRITE); FMODE_WRITE 640 drivers/block/swim.c if (mode & (FMODE_READ|FMODE_WRITE)) { FMODE_WRITE 642 drivers/block/swim.c if ((mode & FMODE_WRITE) && fs->write_protected) { FMODE_WRITE 947 drivers/block/swim3.c && (mode & (FMODE_READ|FMODE_WRITE))) { FMODE_WRITE 953 drivers/block/swim3.c if (err == 0 && (mode & FMODE_WRITE)) { FMODE_WRITE 449 drivers/block/xen-blkback/xenbus.c blkdev_put(vbd->bdev, vbd->readonly ? FMODE_READ : FMODE_WRITE); FMODE_WRITE 469 drivers/block/xen-blkback/xenbus.c FMODE_READ : FMODE_WRITE, NULL); FMODE_WRITE 401 drivers/block/zram/zram_drv.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_WRITE 491 drivers/block/zram/zram_drv.c err = blkdev_get(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL, zram); FMODE_WRITE 540 drivers/block/zram/zram_drv.c blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); FMODE_WRITE 1173 drivers/cdrom/cdrom.c if (mode & FMODE_WRITE) { FMODE_WRITE 367 drivers/char/apm-emulation.c as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE; FMODE_WRITE 263 drivers/char/hpet.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 177 drivers/char/hw_random/core.c if (filp->f_mode & FMODE_WRITE) FMODE_WRITE 368 drivers/char/nvram.c (file->f_mode & FMODE_WRITE) && (nvram_open_mode & NVRAM_WRITE)) { FMODE_WRITE 376 drivers/char/nvram.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 394 drivers/char/nvram.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 1158 drivers/char/xillybus/xillybus_core.c if (!(filp->f_mode & FMODE_WRITE)) FMODE_WRITE 1451 drivers/char/xillybus/xillybus_core.c if ((filp->f_mode & FMODE_WRITE) && (!channel->num_rd_buffers)) FMODE_WRITE 1462 drivers/char/xillybus/xillybus_core.c if ((filp->f_mode & FMODE_WRITE) && (filp->f_flags & O_NONBLOCK) && FMODE_WRITE 1482 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_WRITE) { FMODE_WRITE 1495 drivers/char/xillybus/xillybus_core.c if ((filp->f_mode & FMODE_WRITE) && FMODE_WRITE 1527 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_WRITE) { FMODE_WRITE 1549 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_WRITE) FMODE_WRITE 1572 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_WRITE) { FMODE_WRITE 264 drivers/ide/ide-floppy_ioctl.c if (!(mode & FMODE_WRITE)) FMODE_WRITE 217 drivers/ide/ide-gd.c if ((drive->dev_flags & IDE_DFLAG_WP) && (mode & FMODE_WRITE)) { FMODE_WRITE 1281 drivers/md/bcache/super.c blkdev_put(dc->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_WRITE 2143 drivers/md/bcache/super.c blkdev_put(ca->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_WRITE 2288 drivers/md/bcache/super.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_WRITE 2406 drivers/md/bcache/super.c FMODE_READ|FMODE_WRITE|FMODE_EXCL, FMODE_WRITE 2472 drivers/md/bcache/super.c blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); FMODE_WRITE 2128 drivers/md/dm-cache-target.c r = dm_get_device(ca->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, FMODE_WRITE 2151 drivers/md/dm-cache-target.c r = dm_get_device(ca->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, FMODE_WRITE 2170 drivers/md/dm-cache-target.c r = dm_get_device(ca->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, FMODE_WRITE 1701 drivers/md/dm-clone-target.c r = dm_get_device(clone->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, FMODE_WRITE 1721 drivers/md/dm-clone-target.c r = dm_get_device(clone->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, FMODE_WRITE 1443 drivers/md/dm-era-target.c r = dm_get_device(ti, argv[0], FMODE_READ | FMODE_WRITE, &era->metadata_dev); FMODE_WRITE 1450 drivers/md/dm-era-target.c r = dm_get_device(ti, argv[1], FMODE_READ | FMODE_WRITE, &era->origin_dev); FMODE_WRITE 763 drivers/md/dm-ioctl.c if (!(dm_table_get_mode(table) & FMODE_WRITE)) FMODE_WRITE 1077 drivers/md/dm-ioctl.c if (dm_table_get_mode(new_map) & FMODE_WRITE) FMODE_WRITE 1262 drivers/md/dm-ioctl.c fmode_t mode = FMODE_READ | FMODE_WRITE; FMODE_WRITE 1249 drivers/md/dm-snap.c origin_mode = FMODE_WRITE; FMODE_WRITE 745 drivers/md/dm-table.c if (dm_target_always_writeable(tgt->type) && !(t->mode & FMODE_WRITE)) { FMODE_WRITE 3344 drivers/md/dm-thin.c metadata_mode = FMODE_READ | ((pf.mode == PM_READ_ONLY) ? 0 : FMODE_WRITE); FMODE_WRITE 3352 drivers/md/dm-thin.c r = dm_get_device(ti, argv[1], FMODE_READ | FMODE_WRITE, &data_dev); FMODE_WRITE 2405 drivers/md/md.c bdev = blkdev_get_by_dev(dev, FMODE_READ|FMODE_WRITE|FMODE_EXCL, FMODE_WRITE 2419 drivers/md/md.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_WRITE 6844 drivers/md/md.c } else if (!(f->f_mode & FMODE_WRITE)) { FMODE_WRITE 191 drivers/memstick/core/mspro_block.c if ((mode & FMODE_WRITE) && msb->read_only) FMODE_WRITE 315 drivers/mmc/core/block.c if ((mode & FMODE_WRITE) && md->read_only) { FMODE_WRITE 209 drivers/mtd/devices/block2mtd.c blkdev_put(dev->blkdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_WRITE 222 drivers/mtd/devices/block2mtd.c const fmode_t mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; FMODE_WRITE 286 drivers/mtd/mtdblock.c if (mbd->file_mode & FMODE_WRITE) FMODE_WRITE 58 drivers/mtd/mtdchar.c if ((file->f_mode & FMODE_WRITE) && (minor & 1)) FMODE_WRITE 75 drivers/mtd/mtdchar.c if ((file->f_mode & FMODE_WRITE) && !(mtd->flags & MTD_WRITEABLE)) { FMODE_WRITE 107 drivers/mtd/mtdchar.c if ((file->f_mode & FMODE_WRITE)) FMODE_WRITE 357 drivers/mtd/mtdchar.c if (!(file->f_mode & FMODE_WRITE)) FMODE_WRITE 691 drivers/mtd/mtdchar.c if(!(file->f_mode & FMODE_WRITE)) FMODE_WRITE 238 drivers/mtd/ubi/block.c if (mode & FMODE_WRITE) { FMODE_WRITE 101 drivers/mtd/ubi/cdev.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 4716 drivers/net/wireless/cisco/airo.c if (file->f_mode&FMODE_WRITE) { FMODE_WRITE 5451 drivers/net/wireless/cisco/airo.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 55 drivers/nvme/target/io-cmd-bdev.c FMODE_READ | FMODE_WRITE, NULL); FMODE_WRITE 73 drivers/nvme/target/io-cmd-bdev.c blkdev_put(ns->bdev, FMODE_WRITE | FMODE_READ); FMODE_WRITE 54 drivers/parisc/eisa_eeprom.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 3339 drivers/s390/block/dasd.c if ((mode & FMODE_WRITE) && FMODE_WRITE 589 drivers/sbus/char/openprom.c if ((file->f_mode & FMODE_WRITE) == 0) FMODE_WRITE 624 drivers/sbus/char/openprom.c if ((file->f_mode & FMODE_WRITE) == 0) FMODE_WRITE 1370 drivers/scsi/sd.c if (sdkp->write_prot && (mode & FMODE_WRITE)) FMODE_WRITE 451 drivers/staging/gasket/apex_driver.c return !!(filp->f_mode & FMODE_WRITE); FMODE_WRITE 1190 drivers/staging/gasket/gasket_core.c (filp->f_mode & FMODE_WRITE), is_root); FMODE_WRITE 1193 drivers/staging/gasket/gasket_core.c if (!(filp->f_mode & FMODE_WRITE)) { FMODE_WRITE 1268 drivers/staging/gasket/gasket_core.c (file->f_mode & FMODE_WRITE), is_root); FMODE_WRITE 1272 drivers/staging/gasket/gasket_core.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 234 drivers/staging/gasket/gasket_ioctl.c write = !!(filp->f_mode & FMODE_WRITE); FMODE_WRITE 243 drivers/staging/isdn/hysdn/hysdn_procconf.c if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { FMODE_WRITE 255 drivers/staging/isdn/hysdn/hysdn_procconf.c } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { FMODE_WRITE 317 drivers/staging/isdn/hysdn/hysdn_procconf.c if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { FMODE_WRITE 327 drivers/staging/isdn/hysdn/hysdn_procconf.c } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { FMODE_WRITE 207 drivers/staging/isdn/hysdn/hysdn_proclog.c if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { FMODE_WRITE 210 drivers/staging/isdn/hysdn/hysdn_proclog.c } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { FMODE_WRITE 246 drivers/staging/isdn/hysdn/hysdn_proclog.c if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { FMODE_WRITE 291 drivers/staging/isdn/hysdn/hysdn_proclog.c if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) FMODE_WRITE 95 drivers/target/target_core_iblock.c mode |= FMODE_WRITE; FMODE_WRITE 162 drivers/target/target_core_iblock.c blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); FMODE_WRITE 187 drivers/target/target_core_iblock.c blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); FMODE_WRITE 375 drivers/target/target_core_pscsi.c FMODE_WRITE|FMODE_READ|FMODE_EXCL, pdv); FMODE_WRITE 385 drivers/target/target_core_pscsi.c blkdev_put(pdv->pdv_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); FMODE_WRITE 574 drivers/target/target_core_pscsi.c FMODE_WRITE|FMODE_READ|FMODE_EXCL); FMODE_WRITE 2494 drivers/usb/core/devio.c if (!(file->f_mode & FMODE_WRITE)) FMODE_WRITE 2730 drivers/usb/core/devio.c if (file->f_mode & FMODE_WRITE && !list_empty(&ps->async_completed)) FMODE_WRITE 204 drivers/usb/gadget/function/storage_common.c if (!(filp->f_mode & FMODE_WRITE)) FMODE_WRITE 140 fs/afs/file.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 173 fs/afs/file.c if ((file->f_mode & FMODE_WRITE)) FMODE_WRITE 1562 fs/aio.c if (unlikely(!(file->f_mode & FMODE_WRITE))) FMODE_WRITE 1542 fs/block_dev.c if (mode & FMODE_WRITE) FMODE_WRITE 1729 fs/block_dev.c if (!res && (mode & FMODE_WRITE) && !bdev->bd_write_holder && FMODE_WRITE 1774 fs/block_dev.c if ((mode & FMODE_WRITE) && bdev_read_only(bdev)) { FMODE_WRITE 198 fs/btrfs/dev-replace.c bdev = blkdev_get_by_path(device_path, FMODE_WRITE | FMODE_EXCL, FMODE_WRITE 1489 fs/btrfs/super.c mode |= FMODE_WRITE; FMODE_WRITE 2611 fs/btrfs/volumes.c bdev = blkdev_get_by_path(device_path, FMODE_WRITE | FMODE_EXCL, FMODE_WRITE 370 fs/ceph/file.c if (ceph_snap(inode) != CEPH_NOSNAP && (file->f_mode & FMODE_WRITE)) FMODE_WRITE 324 fs/cifs/dir.c if (OPEN_FMODE(oflags) & FMODE_WRITE) FMODE_WRITE 1963 fs/cifs/file.c if (OPEN_FMODE(open_file->f_flags) & FMODE_WRITE) { FMODE_WRITE 2629 fs/cifs/file.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 4515 fs/cifs/file.c if (OPEN_FMODE(open_file->f_flags) & FMODE_WRITE) { FMODE_WRITE 89 fs/cifs/ioctl.c if (!(dst_file->f_mode & FMODE_WRITE)) { FMODE_WRITE 406 fs/configfs/file.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 150 fs/debugfs/file.c !(filp->f_mode & FMODE_WRITE) && FMODE_WRITE 142 fs/ext2/file.c if (filp->f_mode & FMODE_WRITE) { FMODE_WRITE 93 fs/ext4/file.c if ((filp->f_mode & FMODE_WRITE) && FMODE_WRITE 468 fs/ext4/file.c if (filp->f_mode & FMODE_WRITE) { FMODE_WRITE 959 fs/ext4/ioctl.c !(filp->f_mode & FMODE_WRITE)) FMODE_WRITE 971 fs/ext4/ioctl.c if (!(donor.file->f_mode & FMODE_WRITE)) { FMODE_WRITE 1053 fs/ext4/ioctl.c if (!(filp->f_mode & FMODE_WRITE)) FMODE_WRITE 889 fs/ext4/super.c bdev = blkdev_get_by_dev(dev, FMODE_READ|FMODE_WRITE|FMODE_EXCL, sb); FMODE_WRITE 905 fs/ext4/super.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_WRITE 1634 fs/f2fs/file.c if (!(filp->f_mode & FMODE_WRITE) || FMODE_WRITE 2687 fs/f2fs/file.c !(filp->f_mode & FMODE_WRITE)) FMODE_WRITE 2698 fs/f2fs/file.c if (!(dst.file->f_mode & FMODE_WRITE)) { FMODE_WRITE 186 fs/fat/file.c if ((filp->f_mode & FMODE_WRITE) && FMODE_WRITE 204 fs/file_table.c if ((file->f_mode & FMODE_WRITE) && FMODE_WRITE 209 fs/file_table.c if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) FMODE_WRITE 287 fs/file_table.c if ((mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) FMODE_WRITE 212 fs/fuse/file.c if ((file->f_mode & FMODE_WRITE) && fc->writeback_cache) FMODE_WRITE 681 fs/gfs2/file.c if (!(file->f_mode & FMODE_WRITE)) FMODE_WRITE 306 fs/hostfs/hostfs_kern.c mode = file->f_mode & (FMODE_READ | FMODE_WRITE); FMODE_WRITE 317 fs/hostfs/hostfs_kern.c if (mode & FMODE_WRITE) FMODE_WRITE 589 fs/hostfs/hostfs_kern.c HOSTFS_I(inode)->mode = FMODE_READ | FMODE_WRITE; FMODE_WRITE 1473 fs/io_uring.c if (unlikely(!(file->f_mode & FMODE_WRITE))) FMODE_WRITE 59 fs/jfs/file.c if (S_ISREG(inode->i_mode) && file->f_mode & FMODE_WRITE && FMODE_WRITE 1111 fs/jfs/jfs_logmgr.c bdev = blkdev_get_by_dev(sbi->logdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL, FMODE_WRITE 1152 fs/jfs/jfs_logmgr.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_WRITE 1495 fs/jfs/jfs_logmgr.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_WRITE 636 fs/kernfs/file.c if ((file->f_mode & FMODE_WRITE) && FMODE_WRITE 713 fs/kernfs/file.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 1819 fs/locks.c if (filp->f_mode & FMODE_WRITE) FMODE_WRITE 2231 fs/locks.c !(f.file->f_mode & (FMODE_READ|FMODE_WRITE))) FMODE_WRITE 2463 fs/locks.c if (!(fl->fl_file->f_mode & FMODE_WRITE)) FMODE_WRITE 38 fs/nfs/blocklayout/dev.c blkdev_put(dev->bdev, FMODE_READ | FMODE_WRITE); FMODE_WRITE 246 fs/nfs/blocklayout/dev.c bdev = blkdev_get_by_dev(dev, FMODE_READ | FMODE_WRITE, NULL); FMODE_WRITE 319 fs/nfs/blocklayout/dev.c bdev = blkdev_get_by_path(devname, FMODE_READ | FMODE_WRITE, NULL); FMODE_WRITE 346 fs/nfs/blocklayout/dev.c bdev = blkdev_get_by_path(devname, FMODE_READ | FMODE_WRITE, NULL); FMODE_WRITE 396 fs/nfs/blocklayout/dev.c blkdev_put(d->bdev, FMODE_READ | FMODE_WRITE); FMODE_WRITE 53 fs/nfs/callback_proc.c if (delegation == NULL || (delegation->type & FMODE_WRITE) == 0) FMODE_WRITE 628 fs/nfs/callback_proc.c flags |= FMODE_WRITE; FMODE_WRITE 72 fs/nfs/delegation.c flags &= FMODE_READ|FMODE_WRITE; FMODE_WRITE 400 fs/nfs/delegation.c !(delegation->type & FMODE_WRITE)) { FMODE_WRITE 637 fs/nfs/delegation.c !nfs4_check_delegation(inode, FMODE_WRITE)) FMODE_WRITE 724 fs/nfs/delegation.c if ((delegation->type == (FMODE_READ|FMODE_WRITE)) && !(flags & FMODE_WRITE)) FMODE_WRITE 1218 fs/nfs/delegation.c flags &= FMODE_READ|FMODE_WRITE; FMODE_WRITE 1248 fs/nfs/delegation.c if (delegation == NULL || !(delegation->type & FMODE_WRITE)) FMODE_WRITE 1484 fs/nfs/dir.c res |= FMODE_WRITE; FMODE_WRITE 147 fs/nfs/file.c if ((file->f_mode & FMODE_WRITE) == 0) FMODE_WRITE 385 fs/nfs/filelayout/filelayout.c hdr->args.lock_context, FMODE_WRITE) == -EIO) FMODE_WRITE 936 fs/nfs/inode.c if (!(ctx->mode & FMODE_WRITE)) FMODE_WRITE 1066 fs/nfs/inode.c if ((pos->mode & (FMODE_READ|FMODE_WRITE)) != mode) FMODE_WRITE 42 fs/nfs/nfs42proc.c lock, FMODE_WRITE); FMODE_WRITE 250 fs/nfs/nfs42proc.c dst_lock, FMODE_WRITE); FMODE_WRITE 866 fs/nfs/nfs42proc.c dst_lock, FMODE_WRITE); FMODE_WRITE 116 fs/nfs/nfs4file.c if ((file->f_mode & FMODE_WRITE) == 0) FMODE_WRITE 1202 fs/nfs/nfs4proc.c return ctx->mode & (FMODE_READ|FMODE_WRITE|FMODE_EXEC); FMODE_WRITE 1207 fs/nfs/nfs4proc.c fmode_t ret = ctx->mode & (FMODE_READ|FMODE_WRITE); FMODE_WRITE 1218 fs/nfs/nfs4proc.c switch (fmode & (FMODE_READ | FMODE_WRITE)) { FMODE_WRITE 1222 fs/nfs/nfs4proc.c case FMODE_WRITE: FMODE_WRITE 1225 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_WRITE 1302 fs/nfs/nfs4proc.c p->o_arg.fmode = fmode & (FMODE_READ|FMODE_WRITE); FMODE_WRITE 1403 fs/nfs/nfs4proc.c switch(fmode & (FMODE_READ|FMODE_WRITE)) { FMODE_WRITE 1404 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_WRITE 1406 fs/nfs/nfs4proc.c case FMODE_WRITE: FMODE_WRITE 1429 fs/nfs/nfs4proc.c switch (mode & (FMODE_READ|FMODE_WRITE)) { FMODE_WRITE 1434 fs/nfs/nfs4proc.c case FMODE_WRITE: FMODE_WRITE 1438 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_WRITE 1471 fs/nfs/nfs4proc.c case FMODE_WRITE: FMODE_WRITE 1477 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_WRITE 1576 fs/nfs/nfs4proc.c switch (fmode & (FMODE_READ|FMODE_WRITE)) { FMODE_WRITE 1577 fs/nfs/nfs4proc.c case FMODE_WRITE: FMODE_WRITE 1689 fs/nfs/nfs4proc.c case FMODE_WRITE: FMODE_WRITE 1692 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_WRITE 1741 fs/nfs/nfs4proc.c fmode &= (FMODE_READ|FMODE_WRITE); FMODE_WRITE 1807 fs/nfs/nfs4proc.c fmode &= FMODE_READ|FMODE_WRITE; FMODE_WRITE 2046 fs/nfs/nfs4proc.c ctx = nfs4_state_find_open_context_mode(state, FMODE_READ|FMODE_WRITE); FMODE_WRITE 2049 fs/nfs/nfs4proc.c ctx = nfs4_state_find_open_context_mode(state, FMODE_WRITE); FMODE_WRITE 2103 fs/nfs/nfs4proc.c ret = nfs4_open_recover_helper(opendata, FMODE_READ|FMODE_WRITE); FMODE_WRITE 2106 fs/nfs/nfs4proc.c ret = nfs4_open_recover_helper(opendata, FMODE_WRITE); FMODE_WRITE 2251 fs/nfs/nfs4proc.c err = nfs4_open_recover_helper(opendata, FMODE_READ|FMODE_WRITE); FMODE_WRITE 2256 fs/nfs/nfs4proc.c err = nfs4_open_recover_helper(opendata, FMODE_WRITE); FMODE_WRITE 3247 fs/nfs/nfs4proc.c if (nfs4_copy_delegation_stateid(inode, FMODE_WRITE, &arg->stateid, &delegation_cred)) { FMODE_WRITE 3256 fs/nfs/nfs4proc.c status = nfs4_select_rw_stateid(ctx->state, FMODE_WRITE, l_ctx, FMODE_WRITE 3319 fs/nfs/nfs4proc.c if (state && !(state->state & FMODE_WRITE)) { FMODE_WRITE 3547 fs/nfs/nfs4proc.c calldata->arg.fmode |= FMODE_WRITE; FMODE_WRITE 3548 fs/nfs/nfs4proc.c if (calldata->arg.fmode != (FMODE_READ|FMODE_WRITE)) FMODE_WRITE 3551 fs/nfs/nfs4proc.c calldata->arg.fmode |= FMODE_READ|FMODE_WRITE; FMODE_WRITE 5264 fs/nfs/nfs4proc.c FMODE_WRITE)) FMODE_WRITE 7202 fs/nfs/nfs4proc.c if (!(filp->f_mode & FMODE_WRITE)) FMODE_WRITE 685 fs/nfs/nfs4state.c if ((fmode & FMODE_WRITE) != (state->state & FMODE_WRITE)) { FMODE_WRITE 686 fs/nfs/nfs4state.c if (fmode & FMODE_WRITE) FMODE_WRITE 784 fs/nfs/nfs4state.c switch (fmode & (FMODE_READ | FMODE_WRITE)) { FMODE_WRITE 788 fs/nfs/nfs4state.c case FMODE_WRITE: FMODE_WRITE 791 fs/nfs/nfs4state.c case FMODE_READ|FMODE_WRITE: FMODE_WRITE 794 fs/nfs/nfs4state.c newstate = FMODE_READ|FMODE_WRITE; FMODE_WRITE 802 fs/nfs/nfs4state.c newstate &= ~FMODE_WRITE; FMODE_WRITE 320 fs/nfs/nfs4trace.h { ((__force unsigned long)FMODE_WRITE), "WRITE" }, \ FMODE_WRITE 1474 fs/nfs/nfs4xdr.c case FMODE_WRITE|FMODE_READ: FMODE_WRITE 5039 fs/nfs/nfs4xdr.c res->delegation_type = FMODE_WRITE|FMODE_READ; FMODE_WRITE 366 fs/nfs/nfstrace.h TRACE_DEFINE_ENUM(FMODE_WRITE); FMODE_WRITE 372 fs/nfs/nfstrace.h { ((__force unsigned long)FMODE_WRITE), "WRITE" }, \ FMODE_WRITE 1385 fs/nfs/pnfs.c if (nfs4_check_delegation(ino, FMODE_WRITE)) FMODE_WRITE 1395 fs/nfs/pnfs.c if (state->state & FMODE_WRITE) FMODE_WRITE 1994 fs/nfs/pnfs.c iomode == IOMODE_RW ? FMODE_WRITE : FMODE_READ, FMODE_WRITE 2170 fs/nfs/pnfs.c .iomode = (data->o_arg.fmode & FMODE_WRITE) ? FMODE_WRITE 2202 fs/nfs/pnfs.c .iomode = (data->o_arg.fmode & FMODE_WRITE) ? FMODE_WRITE 110 fs/nfs/write.c p->rw_mode = FMODE_WRITE; FMODE_WRITE 771 fs/nfs/write.c NFS_PROTO(inode)->have_delegation(inode, FMODE_WRITE)) FMODE_WRITE 1333 fs/nfs/write.c if (NFS_PROTO(inode)->have_delegation(inode, FMODE_WRITE)) FMODE_WRITE 224 fs/nfsd/filecache.c if (!file || !(file->f_mode & FMODE_WRITE)) FMODE_WRITE 236 fs/nfsd/filecache.c if (!file || !(file->f_mode & FMODE_WRITE)) FMODE_WRITE 1274 fs/nilfs2/super.c mode |= FMODE_WRITE; FMODE_WRITE 1519 fs/ocfs2/cluster/heartbeat.c blkdev_put(reg->hr_bdev, FMODE_READ|FMODE_WRITE); FMODE_WRITE 1806 fs/ocfs2/cluster/heartbeat.c ret = blkdev_get(reg->hr_bdev, FMODE_WRITE | FMODE_READ, NULL); FMODE_WRITE 1920 fs/ocfs2/cluster/heartbeat.c blkdev_put(reg->hr_bdev, FMODE_READ|FMODE_WRITE); FMODE_WRITE 94 fs/ocfs2/file.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 2013 fs/ocfs2/file.c if (!(file->f_mode & FMODE_WRITE)) FMODE_WRITE 1000 fs/ocfs2/move_extents.c if ((!S_ISREG(inode->i_mode)) || !(filp->f_mode & FMODE_WRITE)) { FMODE_WRITE 177 fs/open.c if (!S_ISREG(inode->i_mode) || !(f.file->f_mode & FMODE_WRITE)) FMODE_WRITE 266 fs/open.c if (!(file->f_mode & FMODE_WRITE)) FMODE_WRITE 762 fs/open.c if (f->f_mode & FMODE_WRITE && !special_file(inode->i_mode)) { FMODE_WRITE 802 fs/open.c if ((f->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) FMODE_WRITE 807 fs/open.c if ((f->f_mode & FMODE_WRITE) && FMODE_WRITE 826 fs/open.c if ((f->f_mode & FMODE_WRITE) && filemap_nr_thps(inode->i_mapping)) FMODE_WRITE 731 fs/overlayfs/copy_up.c if (flags && ((OPEN_FMODE(flags) & FMODE_WRITE) || (flags & O_TRUNC))) FMODE_WRITE 200 fs/overlayfs/overlayfs.h return ((OPEN_FMODE(flags) & FMODE_WRITE) || (flags & O_TRUNC)); FMODE_WRITE 557 fs/pipe.c if (filp->f_mode & FMODE_WRITE) { FMODE_WRITE 593 fs/pipe.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 616 fs/pipe.c if ((filp->f_mode & FMODE_WRITE) && retval >= 0) { FMODE_WRITE 934 fs/pipe.c filp->f_mode &= (FMODE_READ | FMODE_WRITE); FMODE_WRITE 959 fs/pipe.c case FMODE_WRITE: FMODE_WRITE 979 fs/pipe.c case FMODE_READ | FMODE_WRITE: FMODE_WRITE 2093 fs/proc/base.c ((mode & FMODE_WRITE) ? S_IWUSR : 0)); FMODE_WRITE 2923 fs/proc/base.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 110 fs/proc/fd.c if (f_mode & FMODE_WRITE) FMODE_WRITE 66 fs/proc/proc_net.c if (file->f_mode & FMODE_WRITE && !PDE(inode)->write) FMODE_WRITE 2161 fs/quota/dquot.c if (!error && (file->f_mode & FMODE_WRITE)) FMODE_WRITE 546 fs/read_write.c if (!(file->f_mode & FMODE_WRITE)) FMODE_WRITE 957 fs/read_write.c if (!(file->f_mode & FMODE_WRITE)) FMODE_WRITE 1433 fs/read_write.c if (!(out.file->f_mode & FMODE_WRITE)) FMODE_WRITE 2089 fs/read_write.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 2603 fs/reiserfs/journal.c fmode_t blkdev_mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; FMODE_WRITE 1054 fs/splice.c if (unlikely(!(out->f_mode & FMODE_WRITE))) FMODE_WRITE 1117 fs/splice.c if (!(out->f_mode & FMODE_WRITE)) FMODE_WRITE 1142 fs/splice.c if (unlikely(!(out->f_mode & FMODE_WRITE))) FMODE_WRITE 1320 fs/splice.c if (f.file->f_mode & FMODE_WRITE) { FMODE_WRITE 1432 fs/splice.c if (out.file->f_mode & FMODE_WRITE) FMODE_WRITE 1781 fs/splice.c if (out.file->f_mode & FMODE_WRITE) FMODE_WRITE 1287 fs/super.c mode |= FMODE_WRITE; FMODE_WRITE 1373 fs/super.c mode |= FMODE_WRITE; FMODE_WRITE 229 fs/udf/file.c if (filp->f_mode & FMODE_WRITE && FMODE_WRITE 299 fs/verity/open.c if (filp->f_mode & FMODE_WRITE) { FMODE_WRITE 215 fs/xfs/xfs_ioctl.c (fmode & FMODE_WRITE) && IS_APPEND(inode)) { FMODE_WRITE 220 fs/xfs/xfs_ioctl.c if ((fmode & FMODE_WRITE) && IS_IMMUTABLE(inode)) { FMODE_WRITE 226 fs/xfs/xfs_ioctl.c if (S_ISDIR(inode->i_mode) && (fmode & FMODE_WRITE)) { FMODE_WRITE 606 fs/xfs/xfs_ioctl.c if (!(filp->f_mode & FMODE_WRITE)) FMODE_WRITE 1951 fs/xfs/xfs_ioctl.c if (!(f.file->f_mode & FMODE_WRITE) || FMODE_WRITE 1964 fs/xfs/xfs_ioctl.c if (!(tmp.file->f_mode & FMODE_WRITE) || FMODE_WRITE 636 fs/xfs/xfs_super.c *bdevp = blkdev_get_by_path(name, FMODE_READ|FMODE_WRITE|FMODE_EXCL, FMODE_WRITE 651 fs/xfs/xfs_super.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_WRITE 284 include/linux/fsnotify.h __u32 mask = (mode & FMODE_WRITE) ? FS_CLOSE_WRITE : FS_CLOSE_NOWRITE; FMODE_WRITE 1019 ipc/mqueue.c if (unlikely(!(f.file->f_mode & FMODE_WRITE))) { FMODE_WRITE 344 kernel/power/swap.c res = blkdev_get(hib_resume_bdev, FMODE_WRITE, NULL); FMODE_WRITE 350 kernel/power/swap.c blkdev_put(hib_resume_bdev, FMODE_WRITE); FMODE_WRITE 436 kernel/power/swap.c swsusp_close(FMODE_WRITE); FMODE_WRITE 501 kernel/power/swap.c swsusp_close(FMODE_WRITE); FMODE_WRITE 235 kernel/time/posix-clock.c if ((cd.fp->f_mode & FMODE_WRITE) == 0) { FMODE_WRITE 297 kernel/time/posix-clock.c if ((cd.fp->f_mode & FMODE_WRITE) == 0) { FMODE_WRITE 3591 kernel/trace/ftrace.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 5043 kernel/trace/ftrace.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 5230 kernel/trace/ftrace.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 5261 kernel/trace/ftrace.c if (ret < 0 && file->f_mode & FMODE_WRITE) FMODE_WRITE 5350 kernel/trace/ftrace.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 6582 kernel/trace/ftrace.c if ((file->f_mode & FMODE_WRITE) && FMODE_WRITE 4271 kernel/trace/trace.c if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { FMODE_WRITE 7163 kernel/trace/trace.c if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) FMODE_WRITE 181 kernel/trace/trace_dynevent.c if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { FMODE_WRITE 1809 kernel/trace/trace_events.c if ((file->f_mode & FMODE_WRITE) && FMODE_WRITE 1830 kernel/trace/trace_events.c if ((file->f_mode & FMODE_WRITE) && FMODE_WRITE 1506 kernel/trace/trace_events_hist.c if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { FMODE_WRITE 191 kernel/trace/trace_events_trigger.c if ((file->f_mode & FMODE_WRITE) && FMODE_WRITE 966 kernel/trace/trace_kprobe.c if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { FMODE_WRITE 770 kernel/trace/trace_uprobe.c if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { FMODE_WRITE 3062 mm/filemap.c !(file_out->f_mode & FMODE_WRITE) || FMODE_WRITE 176 mm/memfd.c if (!(file->f_mode & FMODE_WRITE)) FMODE_WRITE 1491 mm/mmap.c if (!(file->f_mode & FMODE_WRITE)) FMODE_WRITE 1501 mm/mmap.c if (IS_APPEND(inode) && (file->f_mode & FMODE_WRITE)) FMODE_WRITE 1511 mm/mmap.c if (!(file->f_mode & FMODE_WRITE)) FMODE_WRITE 861 mm/nommu.c !(file->f_mode & FMODE_WRITE)) FMODE_WRITE 865 mm/nommu.c (file->f_mode & FMODE_WRITE)) FMODE_WRITE 2665 mm/swapfile.c blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); FMODE_WRITE 2881 mm/swapfile.c FMODE_READ | FMODE_WRITE | FMODE_EXCL, p); FMODE_WRITE 3319 mm/swapfile.c blkdev_put(p->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); FMODE_WRITE 1031 net/sunrpc/cache.c if (filp->f_mode & FMODE_WRITE) FMODE_WRITE 1062 net/sunrpc/cache.c if (filp->f_mode & FMODE_WRITE) { FMODE_WRITE 231 net/sunrpc/rpc_pipe.c if (filp->f_mode & FMODE_WRITE) FMODE_WRITE 258 net/sunrpc/rpc_pipe.c if (filp->f_mode & FMODE_WRITE) FMODE_WRITE 221 security/apparmor/include/file.h if (file->f_mode & FMODE_WRITE) FMODE_WRITE 117 security/integrity/ima/ima_main.c if (mode & FMODE_WRITE) { FMODE_WRITE 152 security/integrity/ima/ima_main.c if (!(mode & FMODE_WRITE)) FMODE_WRITE 364 security/integrity/ima/ima_main.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 2011 security/selinux/hooks.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 6715 security/selinux/hooks.c if (fmode & FMODE_WRITE) FMODE_WRITE 1860 security/smack/smack_lsm.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 2487 security/tomoyo/common.c if (!(file->f_mode & FMODE_WRITE)) { FMODE_WRITE 2392 sound/core/oss/pcm_oss.c if ((f_mode & (FMODE_WRITE|FMODE_READ)) == (FMODE_WRITE|FMODE_READ) && FMODE_WRITE 2394 sound/core/oss/pcm_oss.c f_mode = FMODE_WRITE; FMODE_WRITE 2403 sound/core/oss/pcm_oss.c if (! (f_mode & FMODE_WRITE)) FMODE_WRITE 2475 sound/core/oss/pcm_oss.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 65 sound/core/rawmidi.c switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { FMODE_WRITE 66 sound/core/rawmidi.c case FMODE_WRITE: FMODE_WRITE 77 sound/core/seq/seq_clientmgr.c switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { FMODE_WRITE 78 sound/core/seq/seq_clientmgr.c case FMODE_WRITE: FMODE_WRITE 203 sound/isa/msnd/msnd.c if (!(chip->mode & FMODE_WRITE) || !test_bit(F_WRITING, &chip->flags)) FMODE_WRITE 229 sound/isa/msnd/msnd.c if ((file ? file->f_mode : chip->mode) & FMODE_WRITE) { FMODE_WRITE 238 sound/isa/msnd/msnd.c chip->mode &= ~FMODE_WRITE; FMODE_WRITE 683 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE ) FMODE_WRITE 685 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE) FMODE_WRITE 756 sound/oss/dmasound/dmasound_core.c #define write_sq_wake_up(file) sq_wake_up(&write_sq, file, FMODE_WRITE) FMODE_WRITE 760 sound/oss/dmasound/dmasound_core.c sq_open2(&write_sq, file, FMODE_WRITE, numWriteBufs, writeBufSize ) FMODE_WRITE 886 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 1016 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 1038 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 1116 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 1129 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE) { FMODE_WRITE 37 tools/perf/tests/bpf-script-test-prologue.c if (f_mode & FMODE_WRITE)