tag | line | file | source code |
i_mode | 142 | fs/exec.c | if (!S_ISREG(inode->i_mode)) |
i_mode | 555 | fs/exec.c | if (!S_ISREG(bprm.inode->i_mode)) { /* must be regular file */ |
i_mode | 567 | fs/exec.c | i = bprm.inode->i_mode; |
i_mode | 587 | fs/exec.c | !((bprm.inode->i_mode & 0111) && suser())) { |
i_mode | 72 | fs/ext/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 86 | fs/ext/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 87 | fs/ext/file.c | printk("ext_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 207 | fs/ext/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 208 | fs/ext/file.c | printk("ext_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 293 | fs/ext/freelists.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
i_mode | 174 | fs/ext/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 175 | fs/ext/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 362 | fs/ext/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 369 | fs/ext/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 375 | fs/ext/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 377 | fs/ext/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 379 | fs/ext/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 381 | fs/ext/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 383 | fs/ext/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 385 | fs/ext/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 400 | fs/ext/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 406 | fs/ext/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 167 | fs/ext/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 326 | fs/ext/namei.c | inode->i_mode = mode; |
i_mode | 364 | fs/ext/namei.c | inode->i_mode = mode; |
i_mode | 366 | fs/ext/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 368 | fs/ext/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 370 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 371 | fs/ext/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 373 | fs/ext/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 375 | fs/ext/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 377 | fs/ext/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 379 | fs/ext/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 450 | fs/ext/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 451 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 452 | fs/ext/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 546 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 553 | fs/ext/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 599 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 603 | fs/ext/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 639 | fs/ext/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 687 | fs/ext/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 791 | fs/ext/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 807 | fs/ext/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 812 | fs/ext/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 816 | fs/ext/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 62 | fs/ext/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 91 | fs/ext/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 228 | fs/ext/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 229 | fs/ext/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 26 | fs/ext2/acl.c | unsigned short mode = inode->i_mode; |
i_mode | 102 | fs/ext2/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 91 | fs/ext2/file.c | if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) { |
i_mode | 93 | fs/ext2/file.c | inode->i_mode); |
i_mode | 220 | fs/ext2/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 222 | fs/ext2/file.c | inode->i_mode); |
i_mode | 171 | fs/ext2/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 172 | fs/ext2/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 175 | fs/ext2/fsync.c | if (S_ISLNK(inode->i_mode) && !(inode->i_blocks)) |
i_mode | 260 | fs/ext2/ialloc.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 465 | fs/ext2/ialloc.c | inode->i_mode = mode; |
i_mode | 471 | fs/ext2/ialloc.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
i_mode | 361 | fs/ext2/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 382 | fs/ext2/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 391 | fs/ext2/inode.c | else if (S_ISREG(inode->i_mode)) |
i_mode | 393 | fs/ext2/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 395 | fs/ext2/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 397 | fs/ext2/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 399 | fs/ext2/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 401 | fs/ext2/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 443 | fs/ext2/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 460 | fs/ext2/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 127 | fs/ext2/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 332 | fs/ext2/namei.c | inode->i_mode = mode; |
i_mode | 380 | fs/ext2/namei.c | inode->i_mode = mode; |
i_mode | 382 | fs/ext2/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 384 | fs/ext2/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 386 | fs/ext2/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 387 | fs/ext2/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 389 | fs/ext2/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 391 | fs/ext2/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 393 | fs/ext2/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 395 | fs/ext2/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 483 | fs/ext2/namei.c | inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->umask); |
i_mode | 484 | fs/ext2/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 485 | fs/ext2/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 594 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 599 | fs/ext2/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 667 | fs/ext2/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 676 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 725 | fs/ext2/namei.c | inode->i_mode = S_IFLNK | S_IRWXUGO; |
i_mode | 799 | fs/ext2/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 916 | fs/ext2/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 932 | fs/ext2/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 934 | fs/ext2/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
i_mode | 947 | fs/ext2/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 951 | fs/ext2/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 953 | fs/ext2/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
i_mode | 64 | fs/ext2/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 99 | fs/ext2/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 294 | fs/ext2/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 295 | fs/ext2/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 97 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
i_mode | 624 | fs/hpfs/hpfs_fs.c | inode->i_mode = 0; |
i_mode | 638 | fs/hpfs/hpfs_fs.c | inode->i_mode = s->s_hpfs_mode; |
i_mode | 653 | fs/hpfs/hpfs_fs.c | inode->i_mode |= S_IFDIR; |
i_mode | 655 | fs/hpfs/hpfs_fs.c | inode->i_mode |= S_IFREG; |
i_mode | 656 | fs/hpfs/hpfs_fs.c | inode->i_mode &= ~0111; |
i_mode | 674 | fs/hpfs/hpfs_fs.c | if (S_ISREG(inode->i_mode)) { |
i_mode | 689 | fs/hpfs/hpfs_fs.c | inode->i_mode = 0; |
i_mode | 870 | fs/hpfs/hpfs_fs.c | if (inode == 0 || !S_ISREG(inode->i_mode)) |
i_mode | 1113 | fs/hpfs/hpfs_fs.c | if (!S_ISDIR(dir->i_mode)) |
i_mode | 1163 | fs/hpfs/hpfs_fs.c | inode->i_mode &= ~0222; |
i_mode | 1338 | fs/hpfs/hpfs_fs.c | || !S_ISDIR(inode->i_mode)) |
i_mode | 202 | fs/inode.c | if (S_ISREG(file->f_inode->i_mode) && (file->f_mode & 2)) |
i_mode | 308 | fs/inode.c | inode->i_ino, inode->i_mode); |
i_mode | 410 | fs/inode.c | inode->i_mode |= S_IFIFO | S_IRUSR | S_IWUSR; |
i_mode | 91 | fs/ioctl.c | if (filp->f_inode && S_ISREG(filp->f_inode->i_mode)) |
i_mode | 79 | fs/isofs/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 128 | fs/isofs/file.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) { |
i_mode | 129 | fs/isofs/file.c | printk("isofs_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 354 | fs/isofs/inode.c | inode->i_mode = S_IRUGO; /* Everybody gets to read the file. */ |
i_mode | 358 | fs/isofs/inode.c | inode->i_mode = S_IRUGO | S_IXUGO | S_IFDIR; |
i_mode | 362 | fs/isofs/inode.c | inode->i_mode = S_IRUGO; /* Everybody gets to read the file. */ |
i_mode | 364 | fs/isofs/inode.c | inode->i_mode |= S_IFREG; |
i_mode | 370 | fs/isofs/inode.c | inode->i_mode |= S_IXUGO; /* execute permission */ |
i_mode | 470 | fs/isofs/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 472 | fs/isofs/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 474 | fs/isofs/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 476 | fs/isofs/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 478 | fs/isofs/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 480 | fs/isofs/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 223 | fs/isofs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 281 | fs/isofs/rock.c | inode->i_mode = isonum_733(rr->u.PX.mode); |
i_mode | 341 | fs/isofs/rock.c | inode->i_mode = reloc->i_mode; |
i_mode | 60 | fs/isofs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 86 | fs/isofs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 203 | fs/locks.c | if (!S_ISREG(filp->f_inode->i_mode)) |
i_mode | 217 | fs/minix/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
i_mode | 66 | fs/minix/dir.c | if (!inode || !inode->i_sb || !S_ISDIR(inode->i_mode)) |
i_mode | 80 | fs/minix/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 81 | fs/minix/file.c | printk("minix_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 199 | fs/minix/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 200 | fs/minix/file.c | printk("minix_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 148 | fs/minix/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 149 | fs/minix/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 328 | fs/minix/inode.c | inode->i_mode = 0; |
i_mode | 344 | fs/minix/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 351 | fs/minix/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 356 | fs/minix/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 358 | fs/minix/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 360 | fs/minix/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 362 | fs/minix/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 364 | fs/minix/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 366 | fs/minix/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 392 | fs/minix/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 398 | fs/minix/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 121 | fs/minix/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 230 | fs/minix/namei.c | inode->i_mode = mode; |
i_mode | 269 | fs/minix/namei.c | inode->i_mode = mode; |
i_mode | 271 | fs/minix/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 273 | fs/minix/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 275 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 276 | fs/minix/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 278 | fs/minix/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 280 | fs/minix/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 282 | fs/minix/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 284 | fs/minix/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 352 | fs/minix/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
i_mode | 353 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 354 | fs/minix/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 446 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 453 | fs/minix/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 502 | fs/minix/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 511 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 551 | fs/minix/namei.c | inode->i_mode = S_IFLNK | 0777; |
i_mode | 600 | fs/minix/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 701 | fs/minix/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 717 | fs/minix/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 719 | fs/minix/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
i_mode | 732 | fs/minix/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 736 | fs/minix/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 738 | fs/minix/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
i_mode | 56 | fs/minix/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 85 | fs/minix/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 171 | fs/minix/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 172 | fs/minix/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 65 | fs/msdos/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) return -EBADF; |
i_mode | 244 | fs/msdos/fat.c | if (inode->i_ino == MSDOS_ROOT_INO || (S_ISDIR(inode->i_mode) && |
i_mode | 94 | fs/msdos/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 95 | fs/msdos/file.c | printk("msdos_file_read: mode = %07o\n",inode->i_mode); |
i_mode | 148 | fs/msdos/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 149 | fs/msdos/file.c | printk("msdos_file_write: mode = %07o\n",inode->i_mode); |
i_mode | 318 | fs/msdos/inode.c | inode->i_mode = (S_IRWXUGO & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
i_mode | 342 | fs/msdos/inode.c | inode->i_mode = MSDOS_MKMODE(raw_entry->attr,S_IRWXUGO & |
i_mode | 367 | fs/msdos/inode.c | inode->i_mode = MSDOS_MKMODE(raw_entry->attr,(IS_NOEXEC(inode) |
i_mode | 404 | fs/msdos/inode.c | if (S_ISDIR(inode->i_mode)) { |
i_mode | 412 | fs/msdos/inode.c | raw_entry->attr |= MSDOS_MKATTR(inode->i_mode) | |
i_mode | 436 | fs/msdos/inode.c | if (inode->i_mode & ~MSDOS_VALID_MODE) { |
i_mode | 437 | fs/msdos/inode.c | inode->i_mode &= MSDOS_VALID_MODE; |
i_mode | 440 | fs/msdos/inode.c | if (IS_NOEXEC(inode) && !S_ISDIR(inode->i_mode)) |
i_mode | 441 | fs/msdos/inode.c | inode->i_mode &= S_IFMT | S_IRUGO | S_IWUGO; |
i_mode | 442 | fs/msdos/inode.c | else inode->i_mode |= S_IXUGO; |
i_mode | 443 | fs/msdos/inode.c | inode->i_mode = ((inode->i_mode & S_IFMT) | ((((inode->i_mode & S_IRWXU |
i_mode | 193 | fs/msdos/misc.c | if (S_ISDIR(inode->i_mode)) { |
i_mode | 460 | fs/msdos/misc.c | if (!S_ISDIR(dir->i_mode)) panic("Non-directory fed to m_p_i"); |
i_mode | 115 | fs/msdos/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 342 | fs/msdos/namei.c | if (!S_ISDIR(inode->i_mode)) goto rmdir_done; |
i_mode | 378 | fs/msdos/namei.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 416 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ? |
i_mode | 424 | fs/msdos/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
i_mode | 493 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ? |
i_mode | 520 | fs/msdos/namei.c | if (exists && S_ISDIR(new_inode->i_mode)) { |
i_mode | 539 | fs/msdos/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 76 | fs/namei.c | int mode = inode->i_mode; |
i_mode | 340 | fs/namei.c | if (S_ISDIR(inode->i_mode) && (flag & 2)) { |
i_mode | 348 | fs/namei.c | if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode)) { |
i_mode | 98 | fs/nfs/dir.c | if (!inode || !S_ISDIR(inode->i_mode)) { |
i_mode | 296 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 337 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 371 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 402 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 426 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 446 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 468 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 501 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
i_mode | 526 | fs/nfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) { |
i_mode | 532 | fs/nfs/dir.c | if (!new_dir || !S_ISDIR(new_dir->i_mode)) { |
i_mode | 573 | fs/nfs/dir.c | was_empty = inode->i_mode == 0; |
i_mode | 574 | fs/nfs/dir.c | inode->i_mode = fattr->mode; |
i_mode | 580 | fs/nfs/dir.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 589 | fs/nfs/dir.c | if (S_ISREG(inode->i_mode)) |
i_mode | 591 | fs/nfs/dir.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 593 | fs/nfs/dir.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 595 | fs/nfs/dir.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 597 | fs/nfs/dir.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 599 | fs/nfs/dir.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 77 | fs/nfs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 79 | fs/nfs/file.c | inode->i_mode); |
i_mode | 128 | fs/nfs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 130 | fs/nfs/file.c | inode->i_mode); |
i_mode | 85 | fs/nfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
i_mode | 203 | fs/nfs/inode.c | sattr.mode = inode->i_mode; |
i_mode | 213 | fs/nfs/inode.c | sattr.size = S_ISREG(inode->i_mode) ? inode->i_size : -1; |
i_mode | 60 | fs/nfs/mmap.c | if (!inode->i_sb || !S_ISREG(inode->i_mode)) |
i_mode | 58 | fs/nfs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 91 | fs/nfs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 76 | fs/open.c | if (S_ISDIR(inode->i_mode) || !permission(inode,MAY_WRITE)) { |
i_mode | 103 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & 2)) |
i_mode | 161 | fs/open.c | int res, i_mode; |
i_mode | 168 | fs/open.c | i_mode = inode->i_mode; |
i_mode | 169 | fs/open.c | res = i_mode & S_IRWXUGO; |
i_mode | 187 | fs/open.c | (S_ISDIR(i_mode) || !(mode & S_IXOTH) || (i_mode & S_IXUGO))) |
i_mode | 200 | fs/open.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 221 | fs/open.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 247 | fs/open.c | inode->i_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); |
i_mode | 249 | fs/open.c | inode->i_mode &= ~S_ISGID; |
i_mode | 271 | fs/open.c | inode->i_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); |
i_mode | 273 | fs/open.c | inode->i_mode &= ~S_ISGID; |
i_mode | 428 | fs/open.c | if (inode && S_ISREG(inode->i_mode)) |
i_mode | 100 | fs/proc/base.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 139 | fs/proc/base.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 69 | fs/proc/fd.c | if (!pid || ino > 1 || !S_ISDIR(dir->i_mode)) { |
i_mode | 133 | fs/proc/fd.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 81 | fs/proc/inode.c | inode->i_mode = 0; |
i_mode | 97 | fs/proc/inode.c | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; |
i_mode | 106 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUGO; |
i_mode | 113 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUGO; |
i_mode | 117 | fs/proc/inode.c | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; |
i_mode | 122 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUSR; |
i_mode | 127 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUGO; |
i_mode | 139 | fs/proc/inode.c | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; |
i_mode | 144 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR; |
i_mode | 151 | fs/proc/inode.c | inode->i_mode = S_IFLNK | S_IRWXU; |
i_mode | 155 | fs/proc/inode.c | inode->i_mode = S_IFDIR | S_IRUSR | S_IXUSR; |
i_mode | 164 | fs/proc/inode.c | inode->i_mode = S_IFREG | S_IRUGO; |
i_mode | 175 | fs/proc/inode.c | inode->i_mode = S_IFLNK | S_IRWXU; |
i_mode | 190 | fs/proc/inode.c | inode->i_mode = S_IFLNK | S_IRWXU; |
i_mode | 110 | fs/proc/net.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 137 | fs/proc/net.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 82 | fs/proc/root.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 137 | fs/proc/root.c | if (!inode || !S_ISDIR(inode->i_mode)) |
i_mode | 73 | fs/select.c | if (S_ISREG(inode->i_mode)) |
i_mode | 22 | fs/stat.c | tmp.st_mode = inode->i_mode; |
i_mode | 41 | fs/stat.c | tmp.st_mode = inode->i_mode; |
i_mode | 264 | fs/super.c | if (S_ISBLK(inode->i_mode)) { |
i_mode | 322 | fs/super.c | if (!S_ISDIR(dir_i->i_mode)) { |
i_mode | 430 | fs/super.c | if (!S_ISBLK(inode->i_mode)) { |
i_mode | 333 | fs/xiafs/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
i_mode | 72 | fs/xiafs/dir.c | if (!inode || !inode->i_sb || !S_ISDIR(inode->i_mode)) |
i_mode | 83 | fs/xiafs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 200 | fs/xiafs/file.c | if (!S_ISREG(inode->i_mode)) { |
i_mode | 149 | fs/xiafs/fsync.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 150 | fs/xiafs/fsync.c | S_ISLNK(inode->i_mode))) |
i_mode | 371 | fs/xiafs/inode.c | inode->i_mode=0; |
i_mode | 385 | fs/xiafs/inode.c | inode->i_mode = raw_inode->i_mode; |
i_mode | 394 | fs/xiafs/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { |
i_mode | 405 | fs/xiafs/inode.c | if (S_ISREG(inode->i_mode)) |
i_mode | 407 | fs/xiafs/inode.c | else if (S_ISDIR(inode->i_mode)) |
i_mode | 409 | fs/xiafs/inode.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 411 | fs/xiafs/inode.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 413 | fs/xiafs/inode.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 415 | fs/xiafs/inode.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 448 | fs/xiafs/inode.c | raw_inode->i_mode = inode->i_mode; |
i_mode | 456 | fs/xiafs/inode.c | if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) |
i_mode | 125 | fs/xiafs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
i_mode | 260 | fs/xiafs/namei.c | inode->i_mode = mode; |
i_mode | 298 | fs/xiafs/namei.c | inode->i_mode = mode; |
i_mode | 300 | fs/xiafs/namei.c | if (S_ISREG(inode->i_mode)) |
i_mode | 302 | fs/xiafs/namei.c | else if (S_ISDIR(inode->i_mode)) { |
i_mode | 304 | fs/xiafs/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 305 | fs/xiafs/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 307 | fs/xiafs/namei.c | else if (S_ISLNK(inode->i_mode)) |
i_mode | 309 | fs/xiafs/namei.c | else if (S_ISCHR(inode->i_mode)) |
i_mode | 311 | fs/xiafs/namei.c | else if (S_ISBLK(inode->i_mode)) |
i_mode | 313 | fs/xiafs/namei.c | else if (S_ISFIFO(inode->i_mode)) |
i_mode | 380 | fs/xiafs/namei.c | inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->umask); |
i_mode | 381 | fs/xiafs/namei.c | if (dir->i_mode & S_ISGID) |
i_mode | 382 | fs/xiafs/namei.c | inode->i_mode |= S_ISGID; |
i_mode | 499 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
i_mode | 506 | fs/xiafs/namei.c | if (!S_ISDIR(inode->i_mode)) { |
i_mode | 551 | fs/xiafs/namei.c | if (S_ISDIR(inode->i_mode)) |
i_mode | 560 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
i_mode | 601 | fs/xiafs/namei.c | inode->i_mode = S_IFLNK | S_IRWXUGO; |
i_mode | 640 | fs/xiafs/namei.c | if (S_ISDIR(oldinode->i_mode)) { |
i_mode | 731 | fs/xiafs/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
i_mode | 747 | fs/xiafs/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
i_mode | 752 | fs/xiafs/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
i_mode | 756 | fs/xiafs/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
i_mode | 53 | fs/xiafs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 90 | fs/xiafs/symlink.c | if (!S_ISLNK(inode->i_mode)) { |
i_mode | 184 | fs/xiafs/truncate.c | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
i_mode | 185 | fs/xiafs/truncate.c | S_ISLNK(inode->i_mode))) |
i_mode | 213 | include/linux/ext2_fs.h | unsigned short i_mode; /* File mode */ |
i_mode | 16 | include/linux/ext_fs.h | unsigned short i_mode; |
i_mode | 161 | include/linux/fs.h | umode_t i_mode; |
i_mode | 29 | include/linux/minix_fs.h | unsigned short i_mode; |
i_mode | 45 | include/linux/minix_fs.h | unsigned short i_mode; |
i_mode | 22 | include/linux/xia_fs.h | mode_t i_mode; |
i_mode | 319 | mm/mmap.c | if (!inode->i_sb || !S_ISREG(inode->i_mode)) |
i_mode | 683 | mm/swap.c | if (!S_ISBLK(inode->i_mode)) |
i_mode | 748 | mm/swap.c | if (S_ISBLK(swap_inode->i_mode)) { |
i_mode | 761 | mm/swap.c | } else if (S_ISREG(swap_inode->i_mode)) |
i_mode | 197 | net/socket.c | SOCK_INODE(sock)->i_mode = S_IFSOCK; |