FMODE_READ 2161 arch/ia64/kernel/perfmon.c file = alloc_file(&path, FMODE_READ, &pfm_file_ops); FMODE_READ 126 arch/s390/hypfs/inode.c if (filp->f_mode & FMODE_READ) { FMODE_READ 193 arch/um/drivers/hostaudio_kern.c if (file->f_mode & FMODE_READ) FMODE_READ 254 arch/um/drivers/hostaudio_kern.c if (file->f_mode & FMODE_READ) FMODE_READ 38 arch/um/drivers/random.c if ((filp->f_mode & FMODE_READ) == 0) FMODE_READ 1625 arch/x86/kernel/apm_32.c as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; FMODE_READ 114 arch/x86/kernel/msr.c if (!(file->f_mode & FMODE_READ)) { FMODE_READ 655 block/genhd.c err = blkdev_get(bdev, FMODE_READ, NULL); FMODE_READ 658 block/genhd.c blkdev_put(bdev, FMODE_READ); FMODE_READ 716 drivers/auxdisplay/charlcd.c if (file->f_mode & FMODE_READ) /* device is write-only */ FMODE_READ 1672 drivers/block/amiflop.c if (mode & (FMODE_READ|FMODE_WRITE)) { FMODE_READ 1911 drivers/block/ataflop.c if (mode & (FMODE_READ|FMODE_WRITE)) { FMODE_READ 1715 drivers/block/drbd/drbd_nl.c FMODE_READ | FMODE_WRITE | FMODE_EXCL, claim_ptr); FMODE_READ 1727 drivers/block/drbd/drbd_nl.c blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); FMODE_READ 1775 drivers/block/drbd/drbd_nl.c blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); FMODE_READ 4067 drivers/block/floppy.c if (mode & (FMODE_READ|FMODE_WRITE)) { FMODE_READ 2183 drivers/block/pktcdvd.c ret = blkdev_get(pd->bdev, FMODE_READ | FMODE_EXCL, pd); FMODE_READ 2229 drivers/block/pktcdvd.c blkdev_put(pd->bdev, FMODE_READ | FMODE_EXCL); FMODE_READ 2246 drivers/block/pktcdvd.c blkdev_put(pd->bdev, FMODE_READ | FMODE_EXCL); FMODE_READ 2593 drivers/block/pktcdvd.c ret = blkdev_get(bdev, FMODE_READ | FMODE_NDELAY, NULL); FMODE_READ 2597 drivers/block/pktcdvd.c blkdev_put(bdev, FMODE_READ | FMODE_NDELAY); FMODE_READ 2622 drivers/block/pktcdvd.c blkdev_put(bdev, FMODE_READ | FMODE_NDELAY); FMODE_READ 2821 drivers/block/pktcdvd.c blkdev_put(pd->bdev, FMODE_READ | FMODE_NDELAY); FMODE_READ 640 drivers/block/swim.c if (mode & (FMODE_READ|FMODE_WRITE)) { FMODE_READ 947 drivers/block/swim3.c && (mode & (FMODE_READ|FMODE_WRITE))) { FMODE_READ 449 drivers/block/xen-blkback/xenbus.c blkdev_put(vbd->bdev, vbd->readonly ? FMODE_READ : FMODE_WRITE); FMODE_READ 469 drivers/block/xen-blkback/xenbus.c FMODE_READ : FMODE_WRITE, NULL); FMODE_READ 401 drivers/block/zram/zram_drv.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_READ 491 drivers/block/zram/zram_drv.c err = blkdev_get(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL, zram); FMODE_READ 540 drivers/block/zram/zram_drv.c blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); FMODE_READ 368 drivers/char/apm-emulation.c as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; FMODE_READ 175 drivers/char/hw_random/core.c if ((filp->f_mode & FMODE_READ) == 0) FMODE_READ 1448 drivers/char/xillybus/xillybus_core.c if ((filp->f_mode & FMODE_READ) && (!channel->num_wr_buffers)) FMODE_READ 1454 drivers/char/xillybus/xillybus_core.c if ((filp->f_mode & FMODE_READ) && (filp->f_flags & O_NONBLOCK) && FMODE_READ 1476 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_READ) { FMODE_READ 1488 drivers/char/xillybus/xillybus_core.c if ((filp->f_mode & FMODE_READ) && FMODE_READ 1502 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_READ) { FMODE_READ 1552 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_READ) FMODE_READ 1591 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_READ) { FMODE_READ 1281 drivers/md/bcache/super.c blkdev_put(dc->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_READ 2143 drivers/md/bcache/super.c blkdev_put(ca->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_READ 2288 drivers/md/bcache/super.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_READ 2406 drivers/md/bcache/super.c FMODE_READ|FMODE_WRITE|FMODE_EXCL, FMODE_READ 2472 drivers/md/bcache/super.c blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); FMODE_READ 2128 drivers/md/dm-cache-target.c r = dm_get_device(ca->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, FMODE_READ 2151 drivers/md/dm-cache-target.c r = dm_get_device(ca->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, FMODE_READ 2170 drivers/md/dm-cache-target.c r = dm_get_device(ca->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, FMODE_READ 1701 drivers/md/dm-clone-target.c r = dm_get_device(clone->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, FMODE_READ 1721 drivers/md/dm-clone-target.c r = dm_get_device(clone->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, FMODE_READ 1743 drivers/md/dm-clone-target.c r = dm_get_device(clone->ti, dm_shift_arg(as), FMODE_READ, FMODE_READ 1443 drivers/md/dm-era-target.c r = dm_get_device(ti, argv[0], FMODE_READ | FMODE_WRITE, &era->metadata_dev); FMODE_READ 1450 drivers/md/dm-era-target.c r = dm_get_device(ti, argv[1], FMODE_READ | FMODE_WRITE, &era->origin_dev); FMODE_READ 1262 drivers/md/dm-ioctl.c fmode_t mode = FMODE_READ | FMODE_WRITE; FMODE_READ 1265 drivers/md/dm-ioctl.c mode = FMODE_READ; FMODE_READ 1239 drivers/md/dm-snap.c fmode_t origin_mode = FMODE_READ; FMODE_READ 3344 drivers/md/dm-thin.c metadata_mode = FMODE_READ | ((pf.mode == PM_READ_ONLY) ? 0 : FMODE_WRITE); FMODE_READ 3352 drivers/md/dm-thin.c r = dm_get_device(ti, argv[1], FMODE_READ | FMODE_WRITE, &data_dev); FMODE_READ 4228 drivers/md/dm-thin.c r = dm_get_device(ti, argv[2], FMODE_READ, &origin_dev); FMODE_READ 611 drivers/md/dm-verity-fec.c r = dm_get_device(ti, arg_value, FMODE_READ, &v->fec->dev); FMODE_READ 971 drivers/md/dm-verity-target.c if ((dm_table_get_mode(ti->table) & ~FMODE_READ)) { FMODE_READ 991 drivers/md/dm-verity-target.c r = dm_get_device(ti, argv[1], FMODE_READ, &v->data_dev); FMODE_READ 997 drivers/md/dm-verity-target.c r = dm_get_device(ti, argv[2], FMODE_READ, &v->hash_dev); FMODE_READ 2405 drivers/md/md.c bdev = blkdev_get_by_dev(dev, FMODE_READ|FMODE_WRITE|FMODE_EXCL, FMODE_READ 2419 drivers/md/md.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_READ 209 drivers/mtd/devices/block2mtd.c blkdev_put(dev->blkdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_READ 222 drivers/mtd/devices/block2mtd.c const fmode_t mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; FMODE_READ 5452 drivers/net/wireless/cisco/airo.c if (!(file->f_mode & FMODE_READ)) { FMODE_READ 55 drivers/nvme/target/io-cmd-bdev.c FMODE_READ | FMODE_WRITE, NULL); FMODE_READ 73 drivers/nvme/target/io-cmd-bdev.c blkdev_put(ns->bdev, FMODE_WRITE | FMODE_READ); FMODE_READ 111 drivers/s390/block/dasd_genhd.c rc = blkdev_get(bdev, FMODE_READ, NULL); FMODE_READ 170 drivers/s390/block/dasd_genhd.c blkdev_put(bdev, FMODE_READ); FMODE_READ 582 drivers/sbus/char/openprom.c if ((file->f_mode & FMODE_READ) == 0) FMODE_READ 598 drivers/sbus/char/openprom.c if ((file->f_mode & FMODE_READ) == 0) FMODE_READ 610 drivers/sbus/char/openprom.c if ((file->f_mode & FMODE_READ) == 0) FMODE_READ 619 drivers/sbus/char/openprom.c if ((file->f_mode & FMODE_READ) == 0) FMODE_READ 233 drivers/staging/gasket/gasket_ioctl.c read = !!(filp->f_mode & FMODE_READ); FMODE_READ 216 drivers/staging/isdn/hysdn/hysdn_procconf.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 243 drivers/staging/isdn/hysdn/hysdn_procconf.c if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { FMODE_READ 255 drivers/staging/isdn/hysdn/hysdn_procconf.c } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { FMODE_READ 317 drivers/staging/isdn/hysdn/hysdn_procconf.c if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { FMODE_READ 327 drivers/staging/isdn/hysdn/hysdn_procconf.c } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { FMODE_READ 207 drivers/staging/isdn/hysdn/hysdn_proclog.c if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { FMODE_READ 210 drivers/staging/isdn/hysdn/hysdn_proclog.c } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { FMODE_READ 246 drivers/staging/isdn/hysdn/hysdn_proclog.c if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { FMODE_READ 291 drivers/staging/isdn/hysdn/hysdn_proclog.c if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) FMODE_READ 93 drivers/target/target_core_iblock.c mode = FMODE_READ|FMODE_EXCL; FMODE_READ 162 drivers/target/target_core_iblock.c blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); FMODE_READ 187 drivers/target/target_core_iblock.c blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); FMODE_READ 375 drivers/target/target_core_pscsi.c FMODE_WRITE|FMODE_READ|FMODE_EXCL, pdv); FMODE_READ 385 drivers/target/target_core_pscsi.c blkdev_put(pdv->pdv_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); FMODE_READ 574 drivers/target/target_core_pscsi.c FMODE_WRITE|FMODE_READ|FMODE_EXCL); FMODE_READ 149 drivers/tty/tty_jobctrl.c if (filp->f_mode & FMODE_READ) FMODE_READ 379 drivers/tty/tty_jobctrl.c if ((file->f_mode & FMODE_READ) == 0 && !capable(CAP_SYS_ADMIN)) { FMODE_READ 1208 drivers/usb/mon/mon_bin.c if (file->f_mode & FMODE_READ) FMODE_READ 1533 fs/aio.c if (unlikely(!(file->f_mode & FMODE_READ))) FMODE_READ 1540 fs/block_dev.c if (mode & FMODE_READ) FMODE_READ 1485 fs/btrfs/super.c fmode_t mode = FMODE_READ; FMODE_READ 2193 fs/btrfs/super.c device = btrfs_scan_one_device(vol->name, FMODE_READ, FMODE_READ 2203 fs/btrfs/super.c device = btrfs_scan_one_device(vol->name, FMODE_READ, FMODE_READ 2399 fs/btrfs/volumes.c ret = btrfs_get_bdev_and_sb(device_path, FMODE_READ, FMODE_READ 2416 fs/btrfs/volumes.c blkdev_put(bdev, FMODE_READ); FMODE_READ 6935 fs/btrfs/volumes.c ret = open_fs_devices(fs_devices, FMODE_READ, fs_info->bdev_holder); FMODE_READ 322 fs/cifs/dir.c if (OPEN_FMODE(oflags) & FMODE_READ) FMODE_READ 359 fs/cifs/file.c if (file->f_mode & FMODE_READ) FMODE_READ 1901 fs/cifs/file.c if (OPEN_FMODE(open_file->f_flags) & FMODE_READ) { FMODE_READ 419 fs/configfs/file.c if (file->f_mode & FMODE_READ) { FMODE_READ 958 fs/ext4/ioctl.c if (!(filp->f_mode & FMODE_READ) || FMODE_READ 889 fs/ext4/super.c bdev = blkdev_get_by_dev(dev, FMODE_READ|FMODE_WRITE|FMODE_EXCL, sb); FMODE_READ 905 fs/ext4/super.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_READ 2686 fs/f2fs/file.c if (!(filp->f_mode & FMODE_READ) || FMODE_READ 201 fs/file_table.c if ((file->f_mode & FMODE_READ) && FMODE_READ 209 fs/file_table.c if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) FMODE_READ 287 fs/file_table.c if ((mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) FMODE_READ 306 fs/hostfs/hostfs_kern.c mode = file->f_mode & (FMODE_READ | FMODE_WRITE); FMODE_READ 315 fs/hostfs/hostfs_kern.c if (mode & FMODE_READ) FMODE_READ 589 fs/hostfs/hostfs_kern.c HOSTFS_I(inode)->mode = FMODE_READ | FMODE_WRITE; FMODE_READ 1408 fs/io_uring.c if (unlikely(!(file->f_mode & FMODE_READ))) FMODE_READ 1111 fs/jfs/jfs_logmgr.c bdev = blkdev_get_by_dev(sbi->logdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL, FMODE_READ 1152 fs/jfs/jfs_logmgr.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_READ 1495 fs/jfs/jfs_logmgr.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_READ 640 fs/kernfs/file.c if ((file->f_mode & FMODE_READ) && FMODE_READ 1821 fs/locks.c else if (filp->f_mode & FMODE_READ) FMODE_READ 2231 fs/locks.c !(f.file->f_mode & (FMODE_READ|FMODE_WRITE))) FMODE_READ 2459 fs/locks.c if (!(fl->fl_file->f_mode & FMODE_READ)) FMODE_READ 38 fs/nfs/blocklayout/dev.c blkdev_put(dev->bdev, FMODE_READ | FMODE_WRITE); FMODE_READ 246 fs/nfs/blocklayout/dev.c bdev = blkdev_get_by_dev(dev, FMODE_READ | FMODE_WRITE, NULL); FMODE_READ 319 fs/nfs/blocklayout/dev.c bdev = blkdev_get_by_path(devname, FMODE_READ | FMODE_WRITE, NULL); FMODE_READ 346 fs/nfs/blocklayout/dev.c bdev = blkdev_get_by_path(devname, FMODE_READ | FMODE_WRITE, NULL); FMODE_READ 396 fs/nfs/blocklayout/dev.c blkdev_put(d->bdev, FMODE_READ | FMODE_WRITE); FMODE_READ 626 fs/nfs/callback_proc.c flags = FMODE_READ; FMODE_READ 72 fs/nfs/delegation.c flags &= FMODE_READ|FMODE_WRITE; FMODE_READ 724 fs/nfs/delegation.c if ((delegation->type == (FMODE_READ|FMODE_WRITE)) && !(flags & FMODE_WRITE)) FMODE_READ 1218 fs/nfs/delegation.c flags &= FMODE_READ|FMODE_WRITE; FMODE_READ 84 fs/nfs/delegation.h return NFS_PROTO(inode)->have_delegation(inode, FMODE_READ) && FMODE_READ 1221 fs/nfs/dir.c if (NFS_PROTO(dir)->have_delegation(inode, FMODE_READ)) FMODE_READ 1482 fs/nfs/dir.c res |= FMODE_READ; FMODE_READ 1659 fs/nfs/dir.c if (NFS_PROTO(dir)->have_delegation(inode, FMODE_READ)) FMODE_READ 308 fs/nfs/file.c if (file->f_mode & FMODE_READ) FMODE_READ 671 fs/nfs/file.c if (NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) FMODE_READ 754 fs/nfs/file.c if (!NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) { FMODE_READ 287 fs/nfs/filelayout/filelayout.c hdr->args.lock_context, FMODE_READ) == -EIO) FMODE_READ 192 fs/nfs/inode.c if (NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) FMODE_READ 201 fs/nfs/inode.c bool have_delegation = NFS_PROTO(inode)->have_delegation(inode, FMODE_READ); FMODE_READ 941 fs/nfs/inode.c if (NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) FMODE_READ 1066 fs/nfs/inode.c if ((pos->mode & (FMODE_READ|FMODE_WRITE)) != mode) FMODE_READ 1403 fs/nfs/inode.c if (NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) FMODE_READ 240 fs/nfs/nfs42proc.c src_lock, FMODE_READ); FMODE_READ 485 fs/nfs/nfs42proc.c lock, FMODE_READ); FMODE_READ 861 fs/nfs/nfs42proc.c src_lock, FMODE_READ); FMODE_READ 284 fs/nfs/nfs4proc.c if (!inode || !nfs4_have_delegation(inode, FMODE_READ)) FMODE_READ 1202 fs/nfs/nfs4proc.c return ctx->mode & (FMODE_READ|FMODE_WRITE|FMODE_EXEC); FMODE_READ 1207 fs/nfs/nfs4proc.c fmode_t ret = ctx->mode & (FMODE_READ|FMODE_WRITE); FMODE_READ 1209 fs/nfs/nfs4proc.c return (ctx->mode & FMODE_EXEC) ? FMODE_READ | ret : ret; FMODE_READ 1218 fs/nfs/nfs4proc.c switch (fmode & (FMODE_READ | FMODE_WRITE)) { FMODE_READ 1219 fs/nfs/nfs4proc.c case FMODE_READ: FMODE_READ 1225 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_READ 1302 fs/nfs/nfs4proc.c p->o_arg.fmode = fmode & (FMODE_READ|FMODE_WRITE); FMODE_READ 1403 fs/nfs/nfs4proc.c switch(fmode & (FMODE_READ|FMODE_WRITE)) { FMODE_READ 1404 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_READ 1408 fs/nfs/nfs4proc.c case FMODE_READ: FMODE_READ 1429 fs/nfs/nfs4proc.c switch (mode & (FMODE_READ|FMODE_WRITE)) { FMODE_READ 1430 fs/nfs/nfs4proc.c case FMODE_READ: FMODE_READ 1438 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_READ 1474 fs/nfs/nfs4proc.c case FMODE_READ: FMODE_READ 1477 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_READ 1576 fs/nfs/nfs4proc.c switch (fmode & (FMODE_READ|FMODE_WRITE)) { FMODE_READ 1580 fs/nfs/nfs4proc.c case FMODE_READ: FMODE_READ 1686 fs/nfs/nfs4proc.c case FMODE_READ: FMODE_READ 1692 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_READ 1741 fs/nfs/nfs4proc.c fmode &= (FMODE_READ|FMODE_WRITE); FMODE_READ 1807 fs/nfs/nfs4proc.c fmode &= FMODE_READ|FMODE_WRITE; FMODE_READ 2046 fs/nfs/nfs4proc.c ctx = nfs4_state_find_open_context_mode(state, FMODE_READ|FMODE_WRITE); FMODE_READ 2052 fs/nfs/nfs4proc.c return nfs4_state_find_open_context_mode(state, FMODE_READ); FMODE_READ 2103 fs/nfs/nfs4proc.c ret = nfs4_open_recover_helper(opendata, FMODE_READ|FMODE_WRITE); FMODE_READ 2109 fs/nfs/nfs4proc.c ret = nfs4_open_recover_helper(opendata, FMODE_READ); FMODE_READ 2251 fs/nfs/nfs4proc.c err = nfs4_open_recover_helper(opendata, FMODE_READ|FMODE_WRITE); FMODE_READ 2261 fs/nfs/nfs4proc.c err = nfs4_open_recover_helper(opendata, FMODE_READ); FMODE_READ 2583 fs/nfs/nfs4proc.c } else if ((fmode & FMODE_READ) && !opendata->file_created) FMODE_READ 3543 fs/nfs/nfs4proc.c calldata->arg.fmode |= FMODE_READ; FMODE_READ 3548 fs/nfs/nfs4proc.c if (calldata->arg.fmode != (FMODE_READ|FMODE_WRITE)) FMODE_READ 3551 fs/nfs/nfs4proc.c calldata->arg.fmode |= FMODE_READ|FMODE_WRITE; FMODE_READ 3577 fs/nfs/nfs4proc.c if (calldata->arg.fmode == 0 || calldata->arg.fmode == FMODE_READ) { FMODE_READ 3579 fs/nfs/nfs4proc.c if (!nfs4_have_delegation(inode, FMODE_READ)) FMODE_READ 4359 fs/nfs/nfs4proc.c if (!nfs4_have_delegation(inode, FMODE_READ)) { FMODE_READ 4460 fs/nfs/nfs4proc.c ctx = alloc_nfs_open_context(dentry, FMODE_READ, NULL); FMODE_READ 5181 fs/nfs/nfs4proc.c FMODE_READ)) FMODE_READ 5289 fs/nfs/nfs4proc.c return nfs4_have_delegation(hdr->inode, FMODE_READ) == 0; FMODE_READ 7198 fs/nfs/nfs4proc.c if (!(filp->f_mode & FMODE_READ)) FMODE_READ 784 fs/nfs/nfs4state.c switch (fmode & (FMODE_READ | FMODE_WRITE)) { FMODE_READ 785 fs/nfs/nfs4state.c case FMODE_READ: FMODE_READ 791 fs/nfs/nfs4state.c case FMODE_READ|FMODE_WRITE: FMODE_READ 794 fs/nfs/nfs4state.c newstate = FMODE_READ|FMODE_WRITE; FMODE_READ 797 fs/nfs/nfs4state.c newstate &= ~FMODE_READ; FMODE_READ 319 fs/nfs/nfs4trace.h { ((__force unsigned long)FMODE_READ), "READ" }, \ FMODE_READ 1471 fs/nfs/nfs4xdr.c case FMODE_READ: FMODE_READ 1474 fs/nfs/nfs4xdr.c case FMODE_WRITE|FMODE_READ: FMODE_READ 5036 fs/nfs/nfs4xdr.c res->delegation_type = FMODE_READ; FMODE_READ 5039 fs/nfs/nfs4xdr.c res->delegation_type = FMODE_WRITE|FMODE_READ; FMODE_READ 365 fs/nfs/nfstrace.h TRACE_DEFINE_ENUM(FMODE_READ); FMODE_READ 371 fs/nfs/nfstrace.h { ((__force unsigned long)FMODE_READ), "READ" }, \ FMODE_READ 1384 fs/nfs/pnfs.c if (nfs4_check_delegation(ino, FMODE_READ)) { FMODE_READ 1397 fs/nfs/pnfs.c if (state->state & FMODE_READ) FMODE_READ 1994 fs/nfs/pnfs.c iomode == IOMODE_RW ? FMODE_WRITE : FMODE_READ, FMODE_READ 43 fs/nfs/read.c p->rw_mode = FMODE_READ; FMODE_READ 340 fs/nfs/read.c ctx = nfs_find_open_context(inode, NULL, FMODE_READ); FMODE_READ 426 fs/nfs/read.c desc.ctx = nfs_find_open_context(inode, NULL, FMODE_READ); FMODE_READ 1269 fs/nilfs2/super.c fmode_t mode = FMODE_READ | FMODE_EXCL; FMODE_READ 1519 fs/ocfs2/cluster/heartbeat.c blkdev_put(reg->hr_bdev, FMODE_READ|FMODE_WRITE); FMODE_READ 1806 fs/ocfs2/cluster/heartbeat.c ret = blkdev_get(reg->hr_bdev, FMODE_WRITE | FMODE_READ, NULL); FMODE_READ 1920 fs/ocfs2/cluster/heartbeat.c blkdev_put(reg->hr_bdev, FMODE_READ|FMODE_WRITE); FMODE_READ 802 fs/open.c if ((f->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) FMODE_READ 804 fs/open.c if ((f->f_mode & FMODE_READ) && FMODE_READ 551 fs/pipe.c if (filp->f_mode & FMODE_READ) { FMODE_READ 591 fs/pipe.c if (file->f_mode & FMODE_READ) FMODE_READ 614 fs/pipe.c if (filp->f_mode & FMODE_READ) FMODE_READ 618 fs/pipe.c if (retval < 0 && (filp->f_mode & FMODE_READ)) FMODE_READ 934 fs/pipe.c filp->f_mode &= (FMODE_READ | FMODE_WRITE); FMODE_READ 937 fs/pipe.c case FMODE_READ: FMODE_READ 979 fs/pipe.c case FMODE_READ | FMODE_WRITE: FMODE_READ 2092 fs/proc/base.c ((mode & FMODE_READ ) ? S_IRUSR : 0) | FMODE_READ 108 fs/proc/fd.c if (f_mode & FMODE_READ) FMODE_READ 450 fs/read_write.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 920 fs/read_write.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 1410 fs/read_write.c if (!(in.file->f_mode & FMODE_READ)) FMODE_READ 2156 fs/read_write.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 2603 fs/reiserfs/journal.c fmode_t blkdev_mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; FMODE_READ 2613 fs/reiserfs/journal.c blkdev_mode = FMODE_READ; FMODE_READ 862 fs/splice.c if (unlikely(!(in->f_mode & FMODE_READ))) FMODE_READ 1114 fs/splice.c if (!(in->f_mode & FMODE_READ)) FMODE_READ 1322 fs/splice.c } else if (f.file->f_mode & FMODE_READ) { FMODE_READ 1429 fs/splice.c if (in.file->f_mode & FMODE_READ) { FMODE_READ 1778 fs/splice.c if (in.file->f_mode & FMODE_READ) { FMODE_READ 1283 fs/super.c fmode_t mode = FMODE_READ | FMODE_EXCL; FMODE_READ 1369 fs/super.c fmode_t mode = FMODE_READ | FMODE_EXCL; FMODE_READ 1952 fs/xfs/xfs_ioctl.c !(f.file->f_mode & FMODE_READ) || FMODE_READ 1965 fs/xfs/xfs_ioctl.c !(tmp.file->f_mode & FMODE_READ) || FMODE_READ 636 fs/xfs/xfs_super.c *bdevp = blkdev_get_by_path(name, FMODE_READ|FMODE_WRITE|FMODE_EXCL, FMODE_READ 651 fs/xfs/xfs_super.c blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); FMODE_READ 1132 ipc/mqueue.c if (unlikely(!(f.file->f_mode & FMODE_READ))) { FMODE_READ 679 kernel/power/hibernate.c swsusp_close(FMODE_READ); FMODE_READ 885 kernel/power/hibernate.c swsusp_close(FMODE_READ); FMODE_READ 921 kernel/power/hibernate.c swsusp_close(FMODE_READ); FMODE_READ 1514 kernel/power/swap.c FMODE_READ, NULL); FMODE_READ 1536 kernel/power/swap.c blkdev_put(hib_resume_bdev, FMODE_READ); FMODE_READ 937 kernel/relay.c if (filp->f_mode & FMODE_READ) { FMODE_READ 3610 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { FMODE_READ 4686 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { FMODE_READ 5028 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { FMODE_READ 5247 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { FMODE_READ 5340 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { FMODE_READ 5468 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { FMODE_READ 4209 kernel/trace/trace.c if (!(file->f_mode & FMODE_READ)) { FMODE_READ 4286 kernel/trace/trace.c if (file->f_mode & FMODE_READ) { FMODE_READ 4419 kernel/trace/trace.c if (file->f_mode & FMODE_READ) FMODE_READ 6695 kernel/trace/trace.c if (file->f_mode & FMODE_READ) { FMODE_READ 6815 kernel/trace/trace.c if (file->f_mode & FMODE_READ) FMODE_READ 7166 kernel/trace/trace.c if (file->f_mode & FMODE_READ) { FMODE_READ 7191 kernel/trace/trace.c if (file->f_mode & FMODE_READ) FMODE_READ 204 kernel/trace/trace_events_trigger.c if (file->f_mode & FMODE_READ) { FMODE_READ 283 kernel/trace/trace_events_trigger.c if (file->f_mode & FMODE_READ) FMODE_READ 3061 mm/filemap.c if (!(file_in->f_mode & FMODE_READ) || FMODE_READ 1516 mm/mmap.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 855 mm/nommu.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 585 mm/readahead.c if (!f.file || !(f.file->f_mode & FMODE_READ)) FMODE_READ 2665 mm/swapfile.c blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); FMODE_READ 2881 mm/swapfile.c FMODE_READ | FMODE_WRITE | FMODE_EXCL, p); FMODE_READ 3319 mm/swapfile.c blkdev_put(p->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); FMODE_READ 1018 net/sunrpc/cache.c if (filp->f_mode & FMODE_READ) { FMODE_READ 229 net/sunrpc/rpc_pipe.c if (filp->f_mode & FMODE_READ) FMODE_READ 260 net/sunrpc/rpc_pipe.c if (filp->f_mode & FMODE_READ) { FMODE_READ 223 security/apparmor/include/file.h if (file->f_mode & FMODE_READ) FMODE_READ 195 security/integrity/iint.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 427 security/integrity/ima/ima_crypto.c if (!(file->f_mode & FMODE_READ)) { FMODE_READ 439 security/integrity/ima/ima_crypto.c f->f_mode |= FMODE_READ; FMODE_READ 459 security/integrity/ima/ima_crypto.c f->f_mode &= ~FMODE_READ; FMODE_READ 2009 security/selinux/hooks.c if (file->f_mode & FMODE_READ) FMODE_READ 6713 security/selinux/hooks.c if (fmode & FMODE_READ) FMODE_READ 1858 security/smack/smack_lsm.c if (file->f_mode & FMODE_READ) FMODE_READ 2470 security/tomoyo/common.c if (!(file->f_mode & FMODE_READ)) { FMODE_READ 2392 sound/core/oss/pcm_oss.c if ((f_mode & (FMODE_WRITE|FMODE_READ)) == (FMODE_WRITE|FMODE_READ) && FMODE_READ 2406 sound/core/oss/pcm_oss.c if (! (f_mode & FMODE_READ)) FMODE_READ 2478 sound/core/oss/pcm_oss.c if (file->f_mode & FMODE_READ) FMODE_READ 65 sound/core/rawmidi.c switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { FMODE_READ 68 sound/core/rawmidi.c case FMODE_READ: FMODE_READ 77 sound/core/seq/seq_clientmgr.c switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { FMODE_READ 80 sound/core/seq/seq_clientmgr.c case FMODE_READ: FMODE_READ 218 sound/isa/msnd/msnd.c if ((file ? file->f_mode : chip->mode) & FMODE_READ) { FMODE_READ 225 sound/isa/msnd/msnd.c chip->mode &= ~FMODE_READ; FMODE_READ 775 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_READ) {