tag | line | file | source code |
dir | 245 | arch/alpha/kernel/traps.c | long dir, size; |
dir | 266 | arch/alpha/kernel/traps.c | dir = VERIFY_READ; |
dir | 269 | arch/alpha/kernel/traps.c | dir = VERIFY_WRITE; |
dir | 276 | arch/alpha/kernel/traps.c | if (verify_area(dir, va, size)) { |
dir | 323 | arch/alpha/kernel/traps.c | if (opcode >= 0x28 && reg == 30 && dir == VERIFY_WRITE) { |
dir | 37 | arch/ppc/mm/fault.c | pgd_t *dir; |
dir | 64 | arch/ppc/mm/fault.c | dir = pgd_offset(current->mm, regs->dar & PAGE_MASK); |
dir | 65 | arch/ppc/mm/fault.c | if (dir) |
dir | 67 | arch/ppc/mm/fault.c | pmd = pmd_offset(dir, regs->dar & PAGE_MASK); |
dir | 99 | arch/ppc/mm/fault.c | pgd_t *dir; |
dir | 119 | arch/ppc/mm/fault.c | dir = pgd_offset(current->mm, regs->dar & PAGE_MASK); |
dir | 124 | arch/ppc/mm/fault.c | if (dir) |
dir | 126 | arch/ppc/mm/fault.c | pmd = pmd_offset(dir, regs->dar & PAGE_MASK); |
dir | 137 | arch/ppc/mm/fault.c | printk("dir is %x\n", dir); |
dir | 142 | arch/ppc/mm/fault.c | current->mm->pgd,dir,*dir,pmd,*pmd,pte); |
dir | 306 | arch/ppc/mm/fault.c | pgd_t *dir; |
dir | 309 | arch/ppc/mm/fault.c | dir = pgd_offset(current->mm, address & PAGE_MASK); |
dir | 310 | arch/ppc/mm/fault.c | if (dir) |
dir | 312 | arch/ppc/mm/fault.c | pmd = pmd_offset(dir, address & PAGE_MASK); |
dir | 719 | arch/sparc/kernel/sys_sunos.c | sunos_mount(char *type, char *dir, int flags, void *data) |
dir | 753 | arch/sparc/kernel/sys_sunos.c | error = sunos_nfs_mount (dir, flags, data); |
dir | 763 | arch/sparc/kernel/sys_sunos.c | error = sys_mount(dev_fname, dir, type, linux_flags, NULL); |
dir | 177 | arch/sparc/mm/srmmu.c | srmmu_pmd_offset(pgd_t * dir, unsigned long address) |
dir | 179 | arch/sparc/mm/srmmu.c | return ((pmd_t *) pgd_page(*dir)) + |
dir | 185 | arch/sparc/mm/srmmu.c | srmmu_pte_offset(pmd_t * dir, unsigned long address) |
dir | 187 | arch/sparc/mm/srmmu.c | return ((pte_t *) pmd_page(*dir)) + |
dir | 148 | arch/sparc/mm/sun4c.c | pmd_t *sun4c_pmd_offset(pgd_t * dir, unsigned long address) |
dir | 150 | arch/sparc/mm/sun4c.c | return (pmd_t *) dir; |
dir | 154 | arch/sparc/mm/sun4c.c | pte_t *sun4c_pte_offset(pmd_t * dir, unsigned long address) |
dir | 156 | arch/sparc/mm/sun4c.c | return (pte_t *) sun4c_pmd_page(*dir) + ((address >> PAGE_SHIFT) & (SUN4C_PTRS_PER_PTE - 1)); |
dir | 358 | drivers/scsi/aha1740.c | ecb[ecbno].dir= direction; |
dir | 125 | drivers/scsi/aha1740.h | dir:1, /* Direction of transfer 1 = datain */ |
dir | 45 | fs/dcache.c | unsigned long dir; |
dir | 73 | fs/dcache.c | #define hash_fn(dev,dir,namehash) ((HASHDEV(dev) ^ (dir) ^ (namehash)) % DCACHE_HASH_QUEUES) |
dir | 133 | fs/dcache.c | static inline struct dir_cache_entry * find_entry(struct inode * dir, const char * name, int len, struct hash_list * hash) |
dir | 138 | fs/dcache.c | if (de->dc_dev != dir->i_dev) |
dir | 140 | fs/dcache.c | if (de->dir != dir->i_ino) |
dir | 142 | fs/dcache.c | if (de->version != dir->i_version) |
dir | 172 | fs/dcache.c | int dcache_lookup(struct inode * dir, const char * name, int len, unsigned long * ino) |
dir | 179 | fs/dcache.c | hash = hash_table + hash_fn(dir->i_dev, dir->i_ino, namehash(name,len)); |
dir | 180 | fs/dcache.c | de = find_entry(dir, name, len, hash); |
dir | 188 | fs/dcache.c | void dcache_add(struct inode * dir, const char * name, int len, unsigned long ino) |
dir | 195 | fs/dcache.c | hash = hash_table + hash_fn(dir->i_dev, dir->i_ino, namehash(name,len)); |
dir | 196 | fs/dcache.c | if ((de = find_entry(dir, name, len, hash)) != NULL) { |
dir | 204 | fs/dcache.c | de->dc_dev = dir->i_dev; |
dir | 205 | fs/dcache.c | de->dir = dir->i_ino; |
dir | 206 | fs/dcache.c | de->version = dir->i_version; |
dir | 239 | fs/ext/freelists.c | struct inode * ext_new_inode(const struct inode * dir) |
dir | 247 | fs/ext/freelists.c | if (!dir || !(inode=get_empty_inode())) |
dir | 249 | fs/ext/freelists.c | sb = dir->i_sb; |
dir | 286 | fs/ext/freelists.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
dir | 79 | fs/ext/namei.c | static struct buffer_head * ext_find_entry(struct inode * dir, |
dir | 88 | fs/ext/namei.c | if (!dir) |
dir | 97 | fs/ext/namei.c | bh = ext_bread(dir,0,0); |
dir | 106 | fs/ext/namei.c | while (offset < dir->i_size) { |
dir | 110 | fs/ext/namei.c | bh = ext_bread(dir,offset>>BLOCK_SIZE_BITS,0); |
dir | 123 | fs/ext/namei.c | kdevname(dir->i_dev), dir->i_ino, offset, |
dir | 134 | fs/ext/namei.c | if (offset + de->rec_len < dir->i_size && |
dir | 151 | fs/ext/namei.c | int ext_lookup(struct inode * dir,const char * name, int len, |
dir | 159 | fs/ext/namei.c | if (!dir) |
dir | 161 | fs/ext/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 162 | fs/ext/namei.c | iput(dir); |
dir | 165 | fs/ext/namei.c | if (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) { |
dir | 166 | fs/ext/namei.c | iput(dir); |
dir | 171 | fs/ext/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 172 | fs/ext/namei.c | iput(dir); |
dir | 175 | fs/ext/namei.c | iput(dir); |
dir | 189 | fs/ext/namei.c | static struct buffer_head * ext_add_entry(struct inode * dir, |
dir | 199 | fs/ext/namei.c | if (!dir) |
dir | 210 | fs/ext/namei.c | bh = ext_bread(dir,0,0); |
dir | 217 | fs/ext/namei.c | if ((char *)de >= BLOCK_SIZE+bh->b_data && offset < dir->i_size) { |
dir | 223 | fs/ext/namei.c | bh = ext_bread(dir,offset>>BLOCK_SIZE_BITS,0); |
dir | 228 | fs/ext/namei.c | if (offset >= dir->i_size) { |
dir | 241 | fs/ext/namei.c | dir->i_size += de->rec_len; |
dir | 242 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 244 | fs/ext/namei.c | dir->i_ctime = CURRENT_TIME; |
dir | 253 | fs/ext/namei.c | bh = ext_bread(dir,offset>>BLOCK_SIZE_BITS,1); |
dir | 261 | fs/ext/namei.c | dir->i_size += de->rec_len; |
dir | 262 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 264 | fs/ext/namei.c | dir->i_ctime = CURRENT_TIME; |
dir | 273 | fs/ext/namei.c | kdevname(dir->i_dev), dir->i_ino, offset, |
dir | 291 | fs/ext/namei.c | dir->i_mtime = dir->i_ctime = CURRENT_TIME; |
dir | 292 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 307 | fs/ext/namei.c | int ext_create(struct inode * dir,const char * name, int len, int mode, |
dir | 315 | fs/ext/namei.c | if (!dir) |
dir | 317 | fs/ext/namei.c | inode = ext_new_inode(dir); |
dir | 319 | fs/ext/namei.c | iput(dir); |
dir | 325 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 330 | fs/ext/namei.c | iput(dir); |
dir | 336 | fs/ext/namei.c | iput(dir); |
dir | 341 | fs/ext/namei.c | int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
dir | 347 | fs/ext/namei.c | if (!dir) |
dir | 349 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
dir | 352 | fs/ext/namei.c | iput(dir); |
dir | 355 | fs/ext/namei.c | inode = ext_new_inode(dir); |
dir | 357 | fs/ext/namei.c | iput(dir); |
dir | 367 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
dir | 384 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 389 | fs/ext/namei.c | iput(dir); |
dir | 395 | fs/ext/namei.c | iput(dir); |
dir | 400 | fs/ext/namei.c | int ext_mkdir(struct inode * dir, const char * name, int len, int mode) |
dir | 406 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
dir | 409 | fs/ext/namei.c | iput(dir); |
dir | 412 | fs/ext/namei.c | inode = ext_new_inode(dir); |
dir | 414 | fs/ext/namei.c | iput(dir); |
dir | 428 | fs/ext/namei.c | iput(dir); |
dir | 440 | fs/ext/namei.c | de->inode = dir->i_ino; |
dir | 448 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
dir | 451 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 453 | fs/ext/namei.c | iput(dir); |
dir | 460 | fs/ext/namei.c | dir->i_nlink++; |
dir | 461 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 462 | fs/ext/namei.c | iput(dir); |
dir | 532 | fs/ext/namei.c | int ext_rmdir(struct inode * dir, const char * name, int len) |
dir | 540 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
dir | 545 | fs/ext/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 547 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 549 | fs/ext/namei.c | current->fsuid != dir->i_uid) |
dir | 551 | fs/ext/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 553 | fs/ext/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 575 | fs/ext/namei.c | dir->i_nlink--; |
dir | 576 | fs/ext/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 577 | fs/ext/namei.c | dir->i_dirt=1; |
dir | 580 | fs/ext/namei.c | iput(dir); |
dir | 586 | fs/ext/namei.c | int ext_unlink(struct inode * dir, const char * name, int len) |
dir | 595 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
dir | 598 | fs/ext/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 601 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 603 | fs/ext/namei.c | current->fsuid != dir->i_uid) |
dir | 620 | fs/ext/namei.c | dir->i_ctime = dir->i_mtime = inode->i_ctime; |
dir | 621 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 626 | fs/ext/namei.c | iput(dir); |
dir | 630 | fs/ext/namei.c | int ext_symlink(struct inode * dir, const char * name, int len, const char * symname) |
dir | 638 | fs/ext/namei.c | if (!(inode = ext_new_inode(dir))) { |
dir | 639 | fs/ext/namei.c | iput(dir); |
dir | 646 | fs/ext/namei.c | iput(dir); |
dir | 660 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
dir | 666 | fs/ext/namei.c | iput(dir); |
dir | 669 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 674 | fs/ext/namei.c | iput(dir); |
dir | 680 | fs/ext/namei.c | iput(dir); |
dir | 685 | fs/ext/namei.c | int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
dir | 692 | fs/ext/namei.c | iput(dir); |
dir | 697 | fs/ext/namei.c | iput(dir); |
dir | 700 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
dir | 703 | fs/ext/namei.c | iput(dir); |
dir | 707 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 709 | fs/ext/namei.c | iput(dir); |
dir | 716 | fs/ext/namei.c | iput(dir); |
dir | 49 | fs/ext/symlink.c | static int ext_follow_link(struct inode * dir, struct inode * inode, |
dir | 56 | fs/ext/symlink.c | if (!dir) { |
dir | 57 | fs/ext/symlink.c | dir = current->fs->root; |
dir | 58 | fs/ext/symlink.c | dir->i_count++; |
dir | 61 | fs/ext/symlink.c | iput(dir); |
dir | 65 | fs/ext/symlink.c | iput(dir); |
dir | 70 | fs/ext/symlink.c | iput(dir); |
dir | 76 | fs/ext/symlink.c | iput(dir); |
dir | 81 | fs/ext/symlink.c | error = open_namei(bh->b_data,flag,mode,res_inode,dir); |
dir | 74 | fs/ext2/dir.c | int ext2_check_dir_entry (const char * function, struct inode * dir, |
dir | 86 | fs/ext2/dir.c | else if (dir && ((char *) de - bh->b_data) + de->rec_len > |
dir | 87 | fs/ext2/dir.c | dir->i_sb->s_blocksize) |
dir | 89 | fs/ext2/dir.c | else if (dir && de->inode > dir->i_sb->u.ext2_sb.s_es->s_inodes_count) |
dir | 93 | fs/ext2/dir.c | ext2_error (dir->i_sb, function, "bad entry in directory #%lu: %s - " |
dir | 95 | fs/ext2/dir.c | dir->i_ino, error_msg, offset, (unsigned long) de->inode, |
dir | 307 | fs/ext2/ialloc.c | struct inode * ext2_new_inode (const struct inode * dir, int mode, int * err) |
dir | 319 | fs/ext2/ialloc.c | if (!dir || !(inode = get_empty_inode ())) |
dir | 321 | fs/ext2/ialloc.c | sb = dir->i_sb; |
dir | 366 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group; |
dir | 391 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group + 1; |
dir | 458 | fs/ext2/ialloc.c | inode->i_gid = dir->i_gid; |
dir | 459 | fs/ext2/ialloc.c | else if (dir->i_mode & S_ISGID) { |
dir | 460 | fs/ext2/ialloc.c | inode->i_gid = dir->i_gid; |
dir | 470 | fs/ext2/ialloc.c | inode->u.ext2_i.i_flags = dir->u.ext2_i.i_flags; |
dir | 68 | fs/ext2/namei.c | static struct buffer_head * ext2_find_entry (struct inode * dir, |
dir | 79 | fs/ext2/namei.c | if (!dir) |
dir | 81 | fs/ext2/namei.c | sb = dir->i_sb; |
dir | 96 | fs/ext2/namei.c | if ((block << EXT2_BLOCK_SIZE_BITS (sb)) >= dir->i_size) |
dir | 98 | fs/ext2/namei.c | bh = ext2_getblk (dir, block, 0, &err); |
dir | 104 | fs/ext2/namei.c | for (block = 0, offset = 0; offset < dir->i_size; block++) { |
dir | 117 | fs/ext2/namei.c | dir->i_ino, offset); |
dir | 132 | fs/ext2/namei.c | if (!ext2_check_dir_entry ("ext2_find_entry", dir, |
dir | 150 | fs/ext2/namei.c | dir->i_size) |
dir | 153 | fs/ext2/namei.c | bh = ext2_getblk (dir, block + NAMEI_RA_SIZE, 0, &err); |
dir | 165 | fs/ext2/namei.c | int ext2_lookup (struct inode * dir, const char * name, int len, |
dir | 173 | fs/ext2/namei.c | if (!dir) |
dir | 175 | fs/ext2/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 176 | fs/ext2/namei.c | iput (dir); |
dir | 179 | fs/ext2/namei.c | if (dcache_lookup(dir, name, len, &ino)) { |
dir | 181 | fs/ext2/namei.c | iput(dir); |
dir | 184 | fs/ext2/namei.c | if (!(*result = iget (dir->i_sb, ino))) { |
dir | 185 | fs/ext2/namei.c | iput (dir); |
dir | 188 | fs/ext2/namei.c | iput (dir); |
dir | 191 | fs/ext2/namei.c | ino = dir->i_version; |
dir | 192 | fs/ext2/namei.c | if (!(bh = ext2_find_entry (dir, name, len, &de))) { |
dir | 193 | fs/ext2/namei.c | if (ino == dir->i_version) |
dir | 194 | fs/ext2/namei.c | dcache_add(dir, name, len, 0); |
dir | 195 | fs/ext2/namei.c | iput (dir); |
dir | 199 | fs/ext2/namei.c | dcache_add(dir, name, len, ino); |
dir | 201 | fs/ext2/namei.c | if (!(*result = iget (dir->i_sb, ino))) { |
dir | 202 | fs/ext2/namei.c | iput (dir); |
dir | 205 | fs/ext2/namei.c | iput (dir); |
dir | 219 | fs/ext2/namei.c | static struct buffer_head * ext2_add_entry (struct inode * dir, |
dir | 232 | fs/ext2/namei.c | if (!dir) |
dir | 234 | fs/ext2/namei.c | sb = dir->i_sb; |
dir | 247 | fs/ext2/namei.c | if (dir->i_size == 0) |
dir | 252 | fs/ext2/namei.c | bh = ext2_bread (dir, 0, 0, err); |
dir | 263 | fs/ext2/namei.c | bh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 1, err); |
dir | 266 | fs/ext2/namei.c | if (dir->i_size <= offset) { |
dir | 267 | fs/ext2/namei.c | if (dir->i_size == 0) { |
dir | 277 | fs/ext2/namei.c | dir->i_size = offset + sb->s_blocksize; |
dir | 278 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 286 | fs/ext2/namei.c | if (!ext2_check_dir_entry ("ext2_add_entry", dir, de, bh, |
dir | 322 | fs/ext2/namei.c | dir->i_mtime = dir->i_ctime = CURRENT_TIME; |
dir | 323 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 324 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 341 | fs/ext2/namei.c | static int ext2_delete_entry (struct ext2_dir_entry * dir, |
dir | 354 | fs/ext2/namei.c | if (de == dir) { |
dir | 356 | fs/ext2/namei.c | pde->rec_len += dir->rec_len; |
dir | 357 | fs/ext2/namei.c | dir->inode = 0; |
dir | 367 | fs/ext2/namei.c | int ext2_create (struct inode * dir,const char * name, int len, int mode, |
dir | 376 | fs/ext2/namei.c | if (!dir) |
dir | 378 | fs/ext2/namei.c | inode = ext2_new_inode (dir, mode, &err); |
dir | 380 | fs/ext2/namei.c | iput (dir); |
dir | 386 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 391 | fs/ext2/namei.c | iput (dir); |
dir | 395 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 396 | fs/ext2/namei.c | dcache_add(dir, de->name, de->name_len, de->inode); |
dir | 398 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 403 | fs/ext2/namei.c | iput (dir); |
dir | 408 | fs/ext2/namei.c | int ext2_mknod (struct inode * dir, const char * name, int len, int mode, |
dir | 416 | fs/ext2/namei.c | if (!dir) |
dir | 418 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 421 | fs/ext2/namei.c | iput (dir); |
dir | 424 | fs/ext2/namei.c | inode = ext2_new_inode (dir, mode, &err); |
dir | 426 | fs/ext2/namei.c | iput (dir); |
dir | 436 | fs/ext2/namei.c | if (dir->i_mode & S_ISGID) |
dir | 450 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 455 | fs/ext2/namei.c | iput (dir); |
dir | 459 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 460 | fs/ext2/namei.c | dcache_add(dir, de->name, de->name_len, de->inode); |
dir | 462 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 467 | fs/ext2/namei.c | iput (dir); |
dir | 472 | fs/ext2/namei.c | int ext2_mkdir (struct inode * dir, const char * name, int len, int mode) |
dir | 479 | fs/ext2/namei.c | if (!dir) |
dir | 481 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 484 | fs/ext2/namei.c | iput (dir); |
dir | 487 | fs/ext2/namei.c | if (dir->i_nlink >= EXT2_LINK_MAX) { |
dir | 488 | fs/ext2/namei.c | iput (dir); |
dir | 491 | fs/ext2/namei.c | inode = ext2_new_inode (dir, S_IFDIR, &err); |
dir | 493 | fs/ext2/namei.c | iput (dir); |
dir | 500 | fs/ext2/namei.c | iput (dir); |
dir | 513 | fs/ext2/namei.c | de->inode = dir->i_ino; |
dir | 521 | fs/ext2/namei.c | if (dir->i_mode & S_ISGID) |
dir | 524 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 526 | fs/ext2/namei.c | iput (dir); |
dir | 533 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 534 | fs/ext2/namei.c | dcache_add(dir, de->name, de->name_len, de->inode); |
dir | 536 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 540 | fs/ext2/namei.c | dir->i_nlink++; |
dir | 541 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 542 | fs/ext2/namei.c | iput (dir); |
dir | 607 | fs/ext2/namei.c | int ext2_rmdir (struct inode * dir, const char * name, int len) |
dir | 615 | fs/ext2/namei.c | if (!dir) |
dir | 618 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 623 | fs/ext2/namei.c | if (!(inode = iget (dir->i_sb, de->inode))) |
dir | 627 | fs/ext2/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 636 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 638 | fs/ext2/namei.c | current->fsuid != dir->i_uid) |
dir | 640 | fs/ext2/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 663 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 669 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 680 | fs/ext2/namei.c | dir->i_nlink--; |
dir | 681 | fs/ext2/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 682 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 684 | fs/ext2/namei.c | iput (dir); |
dir | 690 | fs/ext2/namei.c | int ext2_unlink (struct inode * dir, const char * name, int len) |
dir | 698 | fs/ext2/namei.c | if (!dir) |
dir | 702 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 705 | fs/ext2/namei.c | if (!(inode = iget (dir->i_sb, de->inode))) |
dir | 721 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 723 | fs/ext2/namei.c | current->fsuid != dir->i_uid) |
dir | 734 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 736 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 740 | fs/ext2/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 741 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 744 | fs/ext2/namei.c | inode->i_ctime = dir->i_ctime; |
dir | 749 | fs/ext2/namei.c | iput (dir); |
dir | 753 | fs/ext2/namei.c | int ext2_symlink (struct inode * dir, const char * name, int len, |
dir | 764 | fs/ext2/namei.c | if (!(inode = ext2_new_inode (dir, S_IFLNK, &err))) { |
dir | 765 | fs/ext2/namei.c | iput (dir); |
dir | 779 | fs/ext2/namei.c | iput (dir); |
dir | 803 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 809 | fs/ext2/namei.c | iput (dir); |
dir | 812 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 817 | fs/ext2/namei.c | iput (dir); |
dir | 821 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 822 | fs/ext2/namei.c | dcache_add(dir, de->name, de->name_len, de->inode); |
dir | 824 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 829 | fs/ext2/namei.c | iput (dir); |
dir | 834 | fs/ext2/namei.c | int ext2_link (struct inode * oldinode, struct inode * dir, |
dir | 843 | fs/ext2/namei.c | iput (dir); |
dir | 848 | fs/ext2/namei.c | iput (dir); |
dir | 853 | fs/ext2/namei.c | iput (dir); |
dir | 856 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 859 | fs/ext2/namei.c | iput (dir); |
dir | 863 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 865 | fs/ext2/namei.c | iput (dir); |
dir | 870 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 871 | fs/ext2/namei.c | dcache_add(dir, de->name, de->name_len, de->inode); |
dir | 873 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 878 | fs/ext2/namei.c | iput (dir); |
dir | 54 | fs/ext2/symlink.c | static int ext2_follow_link(struct inode * dir, struct inode * inode, |
dir | 62 | fs/ext2/symlink.c | if (!dir) { |
dir | 63 | fs/ext2/symlink.c | dir = current->fs->root; |
dir | 64 | fs/ext2/symlink.c | dir->i_count++; |
dir | 67 | fs/ext2/symlink.c | iput (dir); |
dir | 71 | fs/ext2/symlink.c | iput (dir); |
dir | 76 | fs/ext2/symlink.c | iput (dir); |
dir | 82 | fs/ext2/symlink.c | iput (dir); |
dir | 90 | fs/ext2/symlink.c | error = open_namei (link, flag, mode, res_inode, dir); |
dir | 1119 | fs/hpfs/hpfs_fs.c | static int hpfs_lookup(struct inode *dir, const char *name, int len, |
dir | 1130 | fs/hpfs/hpfs_fs.c | if (dir == 0) |
dir | 1132 | fs/hpfs/hpfs_fs.c | if (!S_ISDIR(dir->i_mode)) |
dir | 1141 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, dir->i_hpfs_dno, "\001\001", 2, &qbh); |
dir | 1143 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, |
dir | 1144 | fs/hpfs/hpfs_fs.c | fnode_dno(dir->i_dev, dir->i_hpfs_parent_dir), |
dir | 1147 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh); |
dir | 1169 | fs/hpfs/hpfs_fs.c | if (!(inode = iget(dir->i_sb, ino))) |
dir | 1202 | fs/hpfs/hpfs_fs.c | iput(dir); |
dir | 1211 | fs/hpfs/hpfs_fs.c | iput(dir); |
dir | 61 | fs/isofs/namei.c | static struct buffer_head * isofs_find_entry(struct inode * dir, |
dir | 64 | fs/isofs/namei.c | unsigned long bufsize = ISOFS_BUFFER_SIZE(dir); |
dir | 65 | fs/isofs/namei.c | unsigned char bufbits = ISOFS_BUFFER_BITS(dir); |
dir | 77 | fs/isofs/namei.c | if (!dir) return NULL; |
dir | 79 | fs/isofs/namei.c | if (!(block = dir->u.isofs_i.i_first_extent)) return NULL; |
dir | 84 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos >> bufbits); |
dir | 86 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) return NULL; |
dir | 88 | fs/isofs/namei.c | while (f_pos < dir->i_size) { |
dir | 90 | fs/isofs/namei.c | backlink = dir->i_ino; |
dir | 101 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
dir | 102 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) |
dir | 123 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
dir | 124 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) { |
dir | 134 | fs/isofs/namei.c | inode_number = dir->i_ino; |
dir | 143 | fs/isofs/namei.c | dir->i_sb->s_firstdatazone, |
dir | 144 | fs/isofs/namei.c | dir->i_ino); |
dir | 146 | fs/isofs/namei.c | if((dir->i_sb->u.isofs_sb.s_firstdatazone) != dir->i_ino) |
dir | 147 | fs/isofs/namei.c | inode_number = dir->u.isofs_i.i_backlink; |
dir | 149 | fs/isofs/namei.c | inode_number = dir->i_ino; |
dir | 156 | fs/isofs/namei.c | rrflag = get_rock_ridge_filename(de, &dpnt, &dlen, dir); |
dir | 160 | fs/isofs/namei.c | if(dir->i_sb->u.isofs_sb.s_mapping == 'n') { |
dir | 181 | fs/isofs/namei.c | if( !(de->flags[-dir->i_sb->u.isofs_sb.s_high_sierra] & 5) |
dir | 182 | fs/isofs/namei.c | || dir->i_sb->u.isofs_sb.s_unhide == 'y' ) |
dir | 198 | fs/isofs/namei.c | isofs_lookup_grandparent(dir, |
dir | 199 | fs/isofs/namei.c | find_rock_ridge_relocation(de,dir)); |
dir | 218 | fs/isofs/namei.c | int isofs_lookup(struct inode * dir,const char * name, int len, |
dir | 225 | fs/isofs/namei.c | printk("lookup: %x %d\n",dir->i_ino, len); |
dir | 228 | fs/isofs/namei.c | if (!dir) |
dir | 231 | fs/isofs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 232 | fs/isofs/namei.c | iput(dir); |
dir | 238 | fs/isofs/namei.c | if (dcache_lookup(dir, name, len, &ino)) ino_back = dir->i_ino; |
dir | 245 | fs/isofs/namei.c | if (dir->i_sb->u.isofs_sb.s_name_check == 'r' |
dir | 255 | fs/isofs/namei.c | bh = isofs_find_entry(dir,lcname,len, &ino, &ino_back); |
dir | 258 | fs/isofs/namei.c | bh = isofs_find_entry(dir,name,len, &ino, &ino_back); |
dir | 261 | fs/isofs/namei.c | iput(dir); |
dir | 264 | fs/isofs/namei.c | if (ino_back == dir->i_ino) |
dir | 265 | fs/isofs/namei.c | dcache_add(dir, name, len, ino); |
dir | 269 | fs/isofs/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 270 | fs/isofs/namei.c | iput(dir); |
dir | 280 | fs/isofs/namei.c | if (ino_back && !(*result)->i_pipe && (*result)->i_sb == dir->i_sb) { |
dir | 284 | fs/isofs/namei.c | iput(dir); |
dir | 47 | fs/isofs/symlink.c | static int isofs_follow_link(struct inode * dir, struct inode * inode, |
dir | 53 | fs/isofs/symlink.c | if (!dir) { |
dir | 54 | fs/isofs/symlink.c | dir = current->fs->root; |
dir | 55 | fs/isofs/symlink.c | dir->i_count++; |
dir | 58 | fs/isofs/symlink.c | iput(dir); |
dir | 63 | fs/isofs/symlink.c | iput(dir); |
dir | 69 | fs/isofs/symlink.c | iput(dir); |
dir | 76 | fs/isofs/symlink.c | error = open_namei(pnt,flag,mode,res_inode,dir); |
dir | 160 | fs/minix/bitmap.c | struct inode * minix_new_inode(const struct inode * dir) |
dir | 167 | fs/minix/bitmap.c | if (!dir || !(inode = get_empty_inode())) |
dir | 169 | fs/minix/bitmap.c | sb = dir->i_sb; |
dir | 196 | fs/minix/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
dir | 64 | fs/minix/namei.c | static struct buffer_head * minix_find_entry(struct inode * dir, |
dir | 72 | fs/minix/namei.c | if (!dir || !dir->i_sb) |
dir | 74 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
dir | 84 | fs/minix/namei.c | while (block*BLOCK_SIZE+offset < dir->i_size) { |
dir | 86 | fs/minix/namei.c | bh = minix_bread(dir,block,0); |
dir | 107 | fs/minix/namei.c | int minix_lookup(struct inode * dir,const char * name, int len, |
dir | 115 | fs/minix/namei.c | if (!dir) |
dir | 117 | fs/minix/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 118 | fs/minix/namei.c | iput(dir); |
dir | 121 | fs/minix/namei.c | if (!(bh = minix_find_entry(dir,name,len,&de))) { |
dir | 122 | fs/minix/namei.c | iput(dir); |
dir | 127 | fs/minix/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 128 | fs/minix/namei.c | iput(dir); |
dir | 131 | fs/minix/namei.c | iput(dir); |
dir | 145 | fs/minix/namei.c | static int minix_add_entry(struct inode * dir, |
dir | 158 | fs/minix/namei.c | if (!dir || !dir->i_sb) |
dir | 160 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
dir | 174 | fs/minix/namei.c | bh = minix_bread(dir,block,1); |
dir | 180 | fs/minix/namei.c | if (block*bh->b_size + offset > dir->i_size) { |
dir | 182 | fs/minix/namei.c | dir->i_size = block*bh->b_size + offset; |
dir | 183 | fs/minix/namei.c | dir->i_dirt = 1; |
dir | 191 | fs/minix/namei.c | dir->i_mtime = dir->i_ctime = CURRENT_TIME; |
dir | 192 | fs/minix/namei.c | dir->i_dirt = 1; |
dir | 195 | fs/minix/namei.c | dir->i_version = ++event; |
dir | 211 | fs/minix/namei.c | int minix_create(struct inode * dir,const char * name, int len, int mode, |
dir | 220 | fs/minix/namei.c | if (!dir) |
dir | 222 | fs/minix/namei.c | inode = minix_new_inode(dir); |
dir | 224 | fs/minix/namei.c | iput(dir); |
dir | 230 | fs/minix/namei.c | error = minix_add_entry(dir,name,len, &bh ,&de); |
dir | 235 | fs/minix/namei.c | iput(dir); |
dir | 241 | fs/minix/namei.c | iput(dir); |
dir | 246 | fs/minix/namei.c | int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
dir | 253 | fs/minix/namei.c | if (!dir) |
dir | 255 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 258 | fs/minix/namei.c | iput(dir); |
dir | 261 | fs/minix/namei.c | inode = minix_new_inode(dir); |
dir | 263 | fs/minix/namei.c | iput(dir); |
dir | 273 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
dir | 287 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
dir | 292 | fs/minix/namei.c | iput(dir); |
dir | 298 | fs/minix/namei.c | iput(dir); |
dir | 303 | fs/minix/namei.c | int minix_mkdir(struct inode * dir, const char * name, int len, int mode) |
dir | 311 | fs/minix/namei.c | if (!dir || !dir->i_sb) { |
dir | 312 | fs/minix/namei.c | iput(dir); |
dir | 315 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
dir | 316 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 319 | fs/minix/namei.c | iput(dir); |
dir | 322 | fs/minix/namei.c | if (dir->i_nlink >= MINIX_LINK_MAX) { |
dir | 323 | fs/minix/namei.c | iput(dir); |
dir | 326 | fs/minix/namei.c | inode = minix_new_inode(dir); |
dir | 328 | fs/minix/namei.c | iput(dir); |
dir | 335 | fs/minix/namei.c | iput(dir); |
dir | 345 | fs/minix/namei.c | de->inode = dir->i_ino; |
dir | 351 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
dir | 354 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
dir | 356 | fs/minix/namei.c | iput(dir); |
dir | 363 | fs/minix/namei.c | dir->i_nlink++; |
dir | 364 | fs/minix/namei.c | dir->i_dirt = 1; |
dir | 365 | fs/minix/namei.c | iput(dir); |
dir | 430 | fs/minix/namei.c | int minix_rmdir(struct inode * dir, const char * name, int len) |
dir | 438 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 443 | fs/minix/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 445 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 447 | fs/minix/namei.c | current->fsuid != dir->i_uid) |
dir | 449 | fs/minix/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 451 | fs/minix/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 472 | fs/minix/namei.c | dir->i_version = ++event; |
dir | 476 | fs/minix/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 477 | fs/minix/namei.c | dir->i_nlink--; |
dir | 478 | fs/minix/namei.c | dir->i_dirt=1; |
dir | 481 | fs/minix/namei.c | iput(dir); |
dir | 487 | fs/minix/namei.c | int minix_unlink(struct inode * dir, const char * name, int len) |
dir | 497 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 500 | fs/minix/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 512 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 514 | fs/minix/namei.c | current->fsuid != dir->i_uid) |
dir | 527 | fs/minix/namei.c | dir->i_version = ++event; |
dir | 529 | fs/minix/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 530 | fs/minix/namei.c | dir->i_dirt = 1; |
dir | 532 | fs/minix/namei.c | inode->i_ctime = dir->i_ctime; |
dir | 538 | fs/minix/namei.c | iput(dir); |
dir | 542 | fs/minix/namei.c | int minix_symlink(struct inode * dir, const char * name, int len, const char * symname) |
dir | 550 | fs/minix/namei.c | if (!(inode = minix_new_inode(dir))) { |
dir | 551 | fs/minix/namei.c | iput(dir); |
dir | 558 | fs/minix/namei.c | iput(dir); |
dir | 572 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 578 | fs/minix/namei.c | iput(dir); |
dir | 581 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
dir | 586 | fs/minix/namei.c | iput(dir); |
dir | 592 | fs/minix/namei.c | iput(dir); |
dir | 597 | fs/minix/namei.c | int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
dir | 605 | fs/minix/namei.c | iput(dir); |
dir | 610 | fs/minix/namei.c | iput(dir); |
dir | 613 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 616 | fs/minix/namei.c | iput(dir); |
dir | 620 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
dir | 622 | fs/minix/namei.c | iput(dir); |
dir | 629 | fs/minix/namei.c | iput(dir); |
dir | 43 | fs/minix/symlink.c | static int minix_follow_link(struct inode * dir, struct inode * inode, |
dir | 50 | fs/minix/symlink.c | if (!dir) { |
dir | 51 | fs/minix/symlink.c | dir = current->fs->root; |
dir | 52 | fs/minix/symlink.c | dir->i_count++; |
dir | 55 | fs/minix/symlink.c | iput(dir); |
dir | 59 | fs/minix/symlink.c | iput(dir); |
dir | 65 | fs/minix/symlink.c | iput(dir); |
dir | 70 | fs/minix/symlink.c | iput(dir); |
dir | 75 | fs/minix/symlink.c | error = open_namei(bh->b_data,flag,mode,res_inode,dir); |
dir | 283 | fs/msdos/misc.c | int msdos_get_entry(struct inode *dir, loff_t *pos,struct buffer_head **bh, |
dir | 286 | fs/msdos/misc.c | struct super_block *sb = dir->i_sb; |
dir | 292 | fs/msdos/misc.c | if ((sector = msdos_smap(dir,offset >> SECTOR_BITS)) == -1) |
dir | 301 | fs/msdos/misc.c | if (!(*bh = bread(dir->i_dev,sector,SECTOR_SIZE))) { |
dir | 485 | fs/msdos/misc.c | int msdos_parent_ino(struct inode *dir,int locked) |
dir | 490 | fs/msdos/misc.c | if (!S_ISDIR(dir->i_mode)) panic("Non-directory fed to m_p_i"); |
dir | 491 | fs/msdos/misc.c | if (dir->i_ino == MSDOS_ROOT_INO) return dir->i_ino; |
dir | 493 | fs/msdos/misc.c | if ((curr = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,MSDOS_DOTDOT, |
dir | 500 | fs/msdos/misc.c | if ((prev = raw_scan(dir->i_sb,curr,MSDOS_DOTDOT,&zero,NULL, |
dir | 505 | fs/msdos/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,&curr,&nr,NULL, |
dir | 521 | fs/msdos/misc.c | int msdos_subdirs(struct inode *dir) |
dir | 526 | fs/msdos/misc.c | if (dir->i_ino == MSDOS_ROOT_INO) |
dir | 527 | fs/msdos/misc.c | (void) raw_scan_root(dir->i_sb,NULL,&count,NULL,NULL,NULL,SCAN_ANY); |
dir | 529 | fs/msdos/misc.c | if (!MSDOS_I(dir)->i_start) return 0; /* in mkdir */ |
dir | 530 | fs/msdos/misc.c | else (void) raw_scan_nonroot(dir->i_sb,MSDOS_I(dir)->i_start, |
dir | 542 | fs/msdos/misc.c | int msdos_scan(struct inode *dir,const char *name,struct buffer_head **res_bh, |
dir | 548 | fs/msdos/misc.c | ? raw_scan(dir->i_sb,MSDOS_I(dir)->i_start, |
dir | 550 | fs/msdos/misc.c | : raw_scan(dir->i_sb,MSDOS_I(dir)->i_start, |
dir | 110 | fs/msdos/namei.c | static int msdos_find(struct inode *dir,const char *name,int len, |
dir | 118 | fs/msdos/namei.c | dotsOK = MSDOS_SB(dir->i_sb)->dotsOK; |
dir | 119 | fs/msdos/namei.c | res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check, |
dir | 133 | fs/msdos/namei.c | return msdos_scan(dir,msdos_name,bh,de,ino,scantype); |
dir | 137 | fs/msdos/namei.c | int msdos_lookup(struct inode *dir,const char *name,int len, |
dir | 140 | fs/msdos/namei.c | struct super_block *sb = dir->i_sb; |
dir | 149 | fs/msdos/namei.c | if (!dir) return -ENOENT; |
dir | 150 | fs/msdos/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 151 | fs/msdos/namei.c | iput(dir); |
dir | 156 | fs/msdos/namei.c | *result = dir; |
dir | 160 | fs/msdos/namei.c | ino = msdos_parent_ino(dir,0); |
dir | 161 | fs/msdos/namei.c | iput(dir); |
dir | 163 | fs/msdos/namei.c | if (!(*result = iget(dir->i_sb,ino))) return -EACCES; |
dir | 167 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) { |
dir | 168 | fs/msdos/namei.c | iput(dir); |
dir | 175 | fs/msdos/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 176 | fs/msdos/namei.c | iput(dir); |
dir | 183 | fs/msdos/namei.c | iput(dir); |
dir | 188 | fs/msdos/namei.c | iput(dir); |
dir | 196 | fs/msdos/namei.c | fs_panic(dir->i_sb,"msdos_lookup: Can't happen"); |
dir | 197 | fs/msdos/namei.c | iput(dir); |
dir | 202 | fs/msdos/namei.c | iput(dir); |
dir | 209 | fs/msdos/namei.c | static int msdos_create_entry(struct inode *dir, const char *name, |
dir | 212 | fs/msdos/namei.c | struct super_block *sb = dir->i_sb; |
dir | 217 | fs/msdos/namei.c | if ((res = msdos_scan(dir,NULL,&bh,&de,&ino,SCAN_ANY)) < 0) { |
dir | 219 | fs/msdos/namei.c | if (dir->i_ino == MSDOS_ROOT_INO) return -ENOSPC; |
dir | 220 | fs/msdos/namei.c | if ((res = msdos_add_cluster(dir)) < 0) return res; |
dir | 221 | fs/msdos/namei.c | if ((res = msdos_scan(dir,NULL,&bh,&de,&ino,SCAN_ANY)) < 0) return res; |
dir | 226 | fs/msdos/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 227 | fs/msdos/namei.c | dir->i_dirt = 1; |
dir | 233 | fs/msdos/namei.c | date_unix2dos(dir->i_mtime,&de->time,&de->date); |
dir | 236 | fs/msdos/namei.c | if ((*result = iget(dir->i_sb,ino)) != NULL) |
dir | 247 | fs/msdos/namei.c | int msdos_create(struct inode *dir,const char *name,int len,int mode, |
dir | 250 | fs/msdos/namei.c | struct super_block *sb = dir->i_sb; |
dir | 256 | fs/msdos/namei.c | if (!dir) return -ENOENT; |
dir | 257 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
dir | 258 | fs/msdos/namei.c | msdos_name,0,MSDOS_SB(dir->i_sb)->dotsOK)) < 0) { |
dir | 259 | fs/msdos/namei.c | iput(dir); |
dir | 268 | fs/msdos/namei.c | if (msdos_scan(dir,msdos_name,&bh,&de,&ino,SCAN_HID) >= 0) { |
dir | 271 | fs/msdos/namei.c | iput(dir); |
dir | 274 | fs/msdos/namei.c | if (msdos_scan(dir,msdos_name,&bh,&de,&ino,SCAN_NOTHID) >= 0) { |
dir | 277 | fs/msdos/namei.c | iput(dir); |
dir | 280 | fs/msdos/namei.c | res = msdos_create_entry(dir,msdos_name,S_ISDIR(mode),is_hid,result); |
dir | 282 | fs/msdos/namei.c | iput(dir); |
dir | 307 | fs/msdos/namei.c | int msdos_mkdir(struct inode *dir,const char *name,int len,int mode) |
dir | 309 | fs/msdos/namei.c | struct super_block *sb = dir->i_sb; |
dir | 316 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
dir | 317 | fs/msdos/namei.c | msdos_name,0,MSDOS_SB(dir->i_sb)->dotsOK)) < 0) { |
dir | 318 | fs/msdos/namei.c | iput(dir); |
dir | 323 | fs/msdos/namei.c | if (msdos_scan(dir,msdos_name,&bh,&de,&ino,SCAN_ANY) >= 0) { |
dir | 326 | fs/msdos/namei.c | iput(dir); |
dir | 329 | fs/msdos/namei.c | if ((res = msdos_create_entry(dir,msdos_name,1,is_hid,&inode)) < 0) { |
dir | 331 | fs/msdos/namei.c | iput(dir); |
dir | 334 | fs/msdos/namei.c | dir->i_nlink++; |
dir | 348 | fs/msdos/namei.c | dot->i_size = dir->i_size; |
dir | 349 | fs/msdos/namei.c | MSDOS_I(dot)->i_start = MSDOS_I(dir)->i_start; |
dir | 350 | fs/msdos/namei.c | dot->i_nlink = dir->i_nlink; |
dir | 355 | fs/msdos/namei.c | iput(dir); |
dir | 359 | fs/msdos/namei.c | if (msdos_rmdir(dir,name,len) < 0) |
dir | 360 | fs/msdos/namei.c | fs_panic(dir->i_sb,"rmdir in mkdir failed"); |
dir | 366 | fs/msdos/namei.c | static int msdos_empty(struct inode *dir) |
dir | 368 | fs/msdos/namei.c | struct super_block *sb = dir->i_sb; |
dir | 373 | fs/msdos/namei.c | if (dir->i_count > 1) |
dir | 375 | fs/msdos/namei.c | if (MSDOS_I(dir)->i_start) { /* may be zero in mkdir */ |
dir | 378 | fs/msdos/namei.c | while (msdos_get_entry(dir,&pos,&bh,&de) > -1) |
dir | 392 | fs/msdos/namei.c | int msdos_rmdir(struct inode *dir,const char *name,int len) |
dir | 394 | fs/msdos/namei.c | struct super_block *sb = dir->i_sb; |
dir | 405 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done; |
dir | 407 | fs/msdos/namei.c | if (!(inode = iget(dir->i_sb,ino))) goto rmdir_done; |
dir | 411 | fs/msdos/namei.c | if (dir->i_dev != inode->i_dev || dir == inode) |
dir | 417 | fs/msdos/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 418 | fs/msdos/namei.c | dir->i_nlink--; |
dir | 419 | fs/msdos/namei.c | inode->i_dirt = dir->i_dirt = 1; |
dir | 425 | fs/msdos/namei.c | iput(dir); |
dir | 432 | fs/msdos/namei.c | struct inode *dir, |
dir | 437 | fs/msdos/namei.c | struct super_block *sb = dir->i_sb; |
dir | 445 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) |
dir | 447 | fs/msdos/namei.c | if (!(inode = iget(dir->i_sb,ino))) { |
dir | 460 | fs/msdos/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 462 | fs/msdos/namei.c | inode->i_dirt = dir->i_dirt = 1; |
dir | 468 | fs/msdos/namei.c | iput(dir); |
dir | 473 | fs/msdos/namei.c | int msdos_unlink(struct inode *dir,const char *name,int len) |
dir | 475 | fs/msdos/namei.c | return msdos_unlinkx (dir,name,len,1); |
dir | 479 | fs/msdos/namei.c | int msdos_unlink_umsdos(struct inode *dir,const char *name,int len) |
dir | 481 | fs/msdos/namei.c | return msdos_unlinkx (dir,name,len,0); |
dir | 153 | fs/namei.c | int lookup(struct inode * dir,const char * name, int len, |
dir | 160 | fs/namei.c | if (!dir) |
dir | 163 | fs/namei.c | perm = permission(dir,MAY_EXEC); |
dir | 165 | fs/namei.c | if (dir == current->fs->root) { |
dir | 166 | fs/namei.c | *result = dir; |
dir | 168 | fs/namei.c | } else if ((sb = dir->i_sb) && (dir == sb->s_mounted)) { |
dir | 169 | fs/namei.c | iput(dir); |
dir | 170 | fs/namei.c | dir = sb->s_covered; |
dir | 171 | fs/namei.c | if (!dir) |
dir | 173 | fs/namei.c | dir->i_count++; |
dir | 176 | fs/namei.c | if (!dir->i_op || !dir->i_op->lookup) { |
dir | 177 | fs/namei.c | iput(dir); |
dir | 181 | fs/namei.c | iput(dir); |
dir | 185 | fs/namei.c | *result = dir; |
dir | 188 | fs/namei.c | return dir->i_op->lookup(dir, name, len, result); |
dir | 191 | fs/namei.c | int follow_link(struct inode * dir, struct inode * inode, |
dir | 194 | fs/namei.c | if (!dir || !inode) { |
dir | 195 | fs/namei.c | iput(dir); |
dir | 201 | fs/namei.c | iput(dir); |
dir | 205 | fs/namei.c | return inode->i_op->follow_link(dir,inode,flag,mode,res_inode); |
dir | 337 | fs/namei.c | struct inode * dir, *inode; |
dir | 341 | fs/namei.c | error = dir_namei(pathname, &namelen, &basename, base, &dir); |
dir | 346 | fs/namei.c | iput(dir); |
dir | 350 | fs/namei.c | if ((error = permission(dir,ACC_MODE(flag))) != 0) { |
dir | 351 | fs/namei.c | iput(dir); |
dir | 354 | fs/namei.c | *res_inode=dir; |
dir | 357 | fs/namei.c | dir->i_count++; /* lookup eats the dir */ |
dir | 359 | fs/namei.c | down(&dir->i_sem); |
dir | 360 | fs/namei.c | error = lookup(dir, basename, namelen, &inode); |
dir | 366 | fs/namei.c | } else if ((error = permission(dir,MAY_WRITE | MAY_EXEC)) != 0) |
dir | 368 | fs/namei.c | else if (!dir->i_op || !dir->i_op->create) |
dir | 370 | fs/namei.c | else if (IS_RDONLY(dir)) |
dir | 373 | fs/namei.c | dir->i_count++; /* create eats the dir */ |
dir | 374 | fs/namei.c | if (dir->i_sb && dir->i_sb->dq_op) |
dir | 375 | fs/namei.c | dir->i_sb->dq_op->initialize(dir, -1); |
dir | 376 | fs/namei.c | error = dir->i_op->create(dir, basename, namelen, mode, res_inode); |
dir | 377 | fs/namei.c | up(&dir->i_sem); |
dir | 378 | fs/namei.c | iput(dir); |
dir | 381 | fs/namei.c | up(&dir->i_sem); |
dir | 383 | fs/namei.c | error = lookup(dir, basename, namelen, &inode); |
dir | 385 | fs/namei.c | iput(dir); |
dir | 388 | fs/namei.c | error = follow_link(dir,inode,flag,mode,&inode); |
dir | 444 | fs/namei.c | struct inode * dir; |
dir | 447 | fs/namei.c | error = dir_namei(filename, &namelen, &basename, NULL, &dir); |
dir | 451 | fs/namei.c | iput(dir); |
dir | 454 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 455 | fs/namei.c | iput(dir); |
dir | 458 | fs/namei.c | if ((error = permission(dir,MAY_WRITE | MAY_EXEC)) != 0) { |
dir | 459 | fs/namei.c | iput(dir); |
dir | 462 | fs/namei.c | if (!dir->i_op || !dir->i_op->mknod) { |
dir | 463 | fs/namei.c | iput(dir); |
dir | 466 | fs/namei.c | dir->i_count++; |
dir | 467 | fs/namei.c | if (dir->i_sb && dir->i_sb->dq_op) |
dir | 468 | fs/namei.c | dir->i_sb->dq_op->initialize(dir, -1); |
dir | 469 | fs/namei.c | down(&dir->i_sem); |
dir | 470 | fs/namei.c | error = dir->i_op->mknod(dir,basename,namelen,mode,dev); |
dir | 471 | fs/namei.c | up(&dir->i_sem); |
dir | 472 | fs/namei.c | iput(dir); |
dir | 504 | fs/namei.c | struct inode * dir; |
dir | 506 | fs/namei.c | error = dir_namei(pathname, &namelen, &basename, NULL, &dir); |
dir | 510 | fs/namei.c | iput(dir); |
dir | 513 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 514 | fs/namei.c | iput(dir); |
dir | 517 | fs/namei.c | if ((error = permission(dir,MAY_WRITE | MAY_EXEC)) != 0) { |
dir | 518 | fs/namei.c | iput(dir); |
dir | 521 | fs/namei.c | if (!dir->i_op || !dir->i_op->mkdir) { |
dir | 522 | fs/namei.c | iput(dir); |
dir | 525 | fs/namei.c | dir->i_count++; |
dir | 526 | fs/namei.c | if (dir->i_sb && dir->i_sb->dq_op) |
dir | 527 | fs/namei.c | dir->i_sb->dq_op->initialize(dir, -1); |
dir | 528 | fs/namei.c | down(&dir->i_sem); |
dir | 529 | fs/namei.c | error = dir->i_op->mkdir(dir, basename, namelen, mode & 0777 & ~current->fs->umask); |
dir | 530 | fs/namei.c | up(&dir->i_sem); |
dir | 531 | fs/namei.c | iput(dir); |
dir | 552 | fs/namei.c | struct inode * dir; |
dir | 554 | fs/namei.c | error = dir_namei(name, &namelen, &basename, NULL, &dir); |
dir | 558 | fs/namei.c | iput(dir); |
dir | 561 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 562 | fs/namei.c | iput(dir); |
dir | 565 | fs/namei.c | if ((error = permission(dir,MAY_WRITE | MAY_EXEC)) != 0) { |
dir | 566 | fs/namei.c | iput(dir); |
dir | 572 | fs/namei.c | if (IS_APPEND(dir)) { |
dir | 573 | fs/namei.c | iput(dir); |
dir | 576 | fs/namei.c | if (!dir->i_op || !dir->i_op->rmdir) { |
dir | 577 | fs/namei.c | iput(dir); |
dir | 580 | fs/namei.c | if (dir->i_sb && dir->i_sb->dq_op) |
dir | 581 | fs/namei.c | dir->i_sb->dq_op->initialize(dir, -1); |
dir | 582 | fs/namei.c | return dir->i_op->rmdir(dir,basename,namelen); |
dir | 602 | fs/namei.c | struct inode * dir; |
dir | 604 | fs/namei.c | error = dir_namei(name, &namelen, &basename, NULL, &dir); |
dir | 608 | fs/namei.c | iput(dir); |
dir | 611 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 612 | fs/namei.c | iput(dir); |
dir | 615 | fs/namei.c | if ((error = permission(dir,MAY_WRITE | MAY_EXEC)) != 0) { |
dir | 616 | fs/namei.c | iput(dir); |
dir | 622 | fs/namei.c | if (IS_APPEND(dir)) { |
dir | 623 | fs/namei.c | iput(dir); |
dir | 626 | fs/namei.c | if (!dir->i_op || !dir->i_op->unlink) { |
dir | 627 | fs/namei.c | iput(dir); |
dir | 630 | fs/namei.c | if (dir->i_sb && dir->i_sb->dq_op) |
dir | 631 | fs/namei.c | dir->i_sb->dq_op->initialize(dir, -1); |
dir | 632 | fs/namei.c | return dir->i_op->unlink(dir,basename,namelen); |
dir | 650 | fs/namei.c | struct inode * dir; |
dir | 654 | fs/namei.c | error = dir_namei(newname, &namelen, &basename, NULL, &dir); |
dir | 658 | fs/namei.c | iput(dir); |
dir | 661 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 662 | fs/namei.c | iput(dir); |
dir | 665 | fs/namei.c | if ((error = permission(dir,MAY_WRITE | MAY_EXEC)) != 0) { |
dir | 666 | fs/namei.c | iput(dir); |
dir | 669 | fs/namei.c | if (!dir->i_op || !dir->i_op->symlink) { |
dir | 670 | fs/namei.c | iput(dir); |
dir | 673 | fs/namei.c | dir->i_count++; |
dir | 674 | fs/namei.c | if (dir->i_sb && dir->i_sb->dq_op) |
dir | 675 | fs/namei.c | dir->i_sb->dq_op->initialize(dir, -1); |
dir | 676 | fs/namei.c | down(&dir->i_sem); |
dir | 677 | fs/namei.c | error = dir->i_op->symlink(dir,basename,namelen,oldname); |
dir | 678 | fs/namei.c | up(&dir->i_sem); |
dir | 679 | fs/namei.c | iput(dir); |
dir | 702 | fs/namei.c | struct inode * dir; |
dir | 706 | fs/namei.c | error = dir_namei(newname, &namelen, &basename, NULL, &dir); |
dir | 713 | fs/namei.c | iput(dir); |
dir | 716 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 718 | fs/namei.c | iput(dir); |
dir | 721 | fs/namei.c | if (dir->i_dev != oldinode->i_dev) { |
dir | 722 | fs/namei.c | iput(dir); |
dir | 726 | fs/namei.c | if ((error = permission(dir,MAY_WRITE | MAY_EXEC)) != 0) { |
dir | 727 | fs/namei.c | iput(dir); |
dir | 735 | fs/namei.c | iput(dir); |
dir | 739 | fs/namei.c | if (!dir->i_op || !dir->i_op->link) { |
dir | 740 | fs/namei.c | iput(dir); |
dir | 744 | fs/namei.c | dir->i_count++; |
dir | 745 | fs/namei.c | if (dir->i_sb && dir->i_sb->dq_op) |
dir | 746 | fs/namei.c | dir->i_sb->dq_op->initialize(dir, -1); |
dir | 747 | fs/namei.c | down(&dir->i_sem); |
dir | 748 | fs/namei.c | error = dir->i_op->link(oldinode, dir, basename, namelen); |
dir | 749 | fs/namei.c | up(&dir->i_sem); |
dir | 750 | fs/namei.c | iput(dir); |
dir | 37 | fs/ncpfs/dir.c | ncp_do_readdir(struct ncp_server *server, struct inode *dir, int fpos, |
dir | 41 | fs/ncpfs/dir.c | ncp_iget(struct inode *dir, struct nw_file_info *finfo); |
dir | 44 | fs/ncpfs/dir.c | ncp_find_inode(struct inode *dir, const char *name); |
dir | 47 | fs/ncpfs/dir.c | ncp_lookup(struct inode *dir, const char *__name, |
dir | 51 | fs/ncpfs/dir.c | ncp_create(struct inode *dir, const char *name, int len, int mode, |
dir | 55 | fs/ncpfs/dir.c | ncp_mkdir(struct inode *dir, const char *name, int len, int mode); |
dir | 58 | fs/ncpfs/dir.c | ncp_rmdir(struct inode *dir, const char *name, int len); |
dir | 61 | fs/ncpfs/dir.c | ncp_unlink(struct inode *dir, const char *name, int len); |
dir | 150 | fs/ncpfs/dir.c | struct ncp_inode_info *dir = (struct ncp_inode_info *)(inode->i_ino); |
dir | 176 | fs/ncpfs/dir.c | if (filldir(dirent,".",1, filp->f_pos, (int)dir) < 0) |
dir | 185 | fs/ncpfs/dir.c | if (filldir(dirent,"..",2, filp->f_pos, (int)(dir->dir)) < 0) |
dir | 358 | fs/ncpfs/dir.c | ncp_do_readdir(struct ncp_server *server, struct inode *dir, int fpos, |
dir | 380 | fs/ncpfs/dir.c | if ((fpos != total_count) || (dir != last_dir)) |
dir | 383 | fs/ncpfs/dir.c | last_dir = dir; |
dir | 386 | fs/ncpfs/dir.c | NCP_ISTRUCT(dir)->entryName); |
dir | 388 | fs/ncpfs/dir.c | if (ncp_initialize_search(server, NCP_ISTRUCT(dir), &seq)!=0) |
dir | 457 | fs/ncpfs/dir.c | ncp_iget(struct inode *dir, struct nw_file_info *finfo) |
dir | 463 | fs/ncpfs/dir.c | if (dir == NULL) |
dir | 487 | fs/ncpfs/dir.c | new_inode_info->dir = NCP_INOP(dir); |
dir | 490 | fs/ncpfs/dir.c | NCP_INOP(dir)->nused += 1; |
dir | 496 | fs/ncpfs/dir.c | root = &(NCP_SERVER(dir)->root); |
dir | 503 | fs/ncpfs/dir.c | if (!(inode = iget(dir->i_sb, (int)new_inode_info))) |
dir | 524 | fs/ncpfs/dir.c | struct ncp_inode_info *dir = i->dir; |
dir | 534 | fs/ncpfs/dir.c | if (dir == i) return; |
dir | 536 | fs/ncpfs/dir.c | (dir->nused)--; |
dir | 537 | fs/ncpfs/dir.c | i = dir; |
dir | 562 | fs/ncpfs/dir.c | root->dir = root; |
dir | 597 | fs/ncpfs/dir.c | ncp_find_inode(struct inode *dir, const char *name) |
dir | 599 | fs/ncpfs/dir.c | struct ncp_server *server = NCP_SERVER(dir); |
dir | 600 | fs/ncpfs/dir.c | struct nw_info_struct *dir_info = NCP_ISTRUCT(dir); |
dir | 610 | fs/ncpfs/dir.c | if ( (result->dir->finfo.i.DosDirNum == dir_info->DosDirNum) |
dir | 624 | fs/ncpfs/dir.c | ncp_lookup(struct inode *dir, const char *__name, int len, |
dir | 634 | fs/ncpfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) |
dir | 637 | fs/ncpfs/dir.c | iput(dir); |
dir | 643 | fs/ncpfs/dir.c | server = NCP_SERVER(dir); |
dir | 648 | fs/ncpfs/dir.c | *result = dir; |
dir | 655 | fs/ncpfs/dir.c | struct ncp_inode_info *parent = NCP_INOP(dir)->dir; |
dir | 662 | fs/ncpfs/dir.c | *result = iget(dir->i_sb, (int)parent); |
dir | 663 | fs/ncpfs/dir.c | iput(dir); |
dir | 674 | fs/ncpfs/dir.c | result_info = ncp_find_inode(dir, __name); |
dir | 686 | fs/ncpfs/dir.c | *result = iget(dir->i_sb, (int)result_info); |
dir | 687 | fs/ncpfs/dir.c | iput(dir); |
dir | 702 | fs/ncpfs/dir.c | if (dir->i_ino == c_ino) |
dir | 734 | fs/ncpfs/dir.c | NCP_ISTRUCT(dir)->entryName, this_name); |
dir | 737 | fs/ncpfs/dir.c | dir->i_ino == (int)&(NCP_SERVER(dir)->root) |
dir | 738 | fs/ncpfs/dir.c | ? NULL : NCP_ISTRUCT(dir), |
dir | 742 | fs/ncpfs/dir.c | iput(dir); |
dir | 750 | fs/ncpfs/dir.c | if (!(*result = ncp_iget(dir, &finfo))) |
dir | 752 | fs/ncpfs/dir.c | iput(dir); |
dir | 756 | fs/ncpfs/dir.c | iput(dir); |
dir | 761 | fs/ncpfs/dir.c | ncp_create(struct inode *dir, const char *name, int len, int mode, |
dir | 769 | fs/ncpfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) |
dir | 772 | fs/ncpfs/dir.c | iput(dir); |
dir | 780 | fs/ncpfs/dir.c | if (ncp_open_create_file_or_subdir(NCP_SERVER(dir), |
dir | 781 | fs/ncpfs/dir.c | NCP_ISTRUCT(dir), _name, |
dir | 786 | fs/ncpfs/dir.c | iput(dir); |
dir | 790 | fs/ncpfs/dir.c | ncp_invalid_dir_cache(dir->i_ino); |
dir | 795 | fs/ncpfs/dir.c | if (!(*result = ncp_iget(dir, &finfo)) < 0) |
dir | 797 | fs/ncpfs/dir.c | ncp_close_file(NCP_SERVER(dir), finfo.file_handle); |
dir | 798 | fs/ncpfs/dir.c | iput(dir); |
dir | 802 | fs/ncpfs/dir.c | iput(dir); |
dir | 807 | fs/ncpfs/dir.c | ncp_mkdir(struct inode *dir, const char *name, int len, int mode) |
dir | 825 | fs/ncpfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) |
dir | 828 | fs/ncpfs/dir.c | iput(dir); |
dir | 832 | fs/ncpfs/dir.c | if (ncp_open_create_file_or_subdir(NCP_SERVER(dir), |
dir | 833 | fs/ncpfs/dir.c | NCP_ISTRUCT(dir), _name, |
dir | 842 | fs/ncpfs/dir.c | ncp_invalid_dir_cache(dir->i_ino); |
dir | 845 | fs/ncpfs/dir.c | iput(dir); |
dir | 850 | fs/ncpfs/dir.c | ncp_rmdir(struct inode *dir, const char *name, int len) |
dir | 855 | fs/ncpfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) |
dir | 858 | fs/ncpfs/dir.c | iput(dir); |
dir | 861 | fs/ncpfs/dir.c | if (ncp_find_inode(dir, name) != NULL) |
dir | 872 | fs/ncpfs/dir.c | if ((error = ncp_del_file_or_subdir(NCP_SERVER(dir), |
dir | 873 | fs/ncpfs/dir.c | NCP_ISTRUCT(dir), |
dir | 876 | fs/ncpfs/dir.c | ncp_invalid_dir_cache(dir->i_ino); |
dir | 883 | fs/ncpfs/dir.c | iput(dir); |
dir | 888 | fs/ncpfs/dir.c | ncp_unlink(struct inode *dir, const char *name, int len) |
dir | 893 | fs/ncpfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) |
dir | 896 | fs/ncpfs/dir.c | iput(dir); |
dir | 899 | fs/ncpfs/dir.c | if (ncp_find_inode(dir, name) != NULL) |
dir | 909 | fs/ncpfs/dir.c | if ((error = ncp_del_file_or_subdir(NCP_SERVER(dir), |
dir | 910 | fs/ncpfs/dir.c | NCP_ISTRUCT(dir), |
dir | 913 | fs/ncpfs/dir.c | ncp_invalid_dir_cache(dir->i_ino); |
dir | 920 | fs/ncpfs/dir.c | iput(dir); |
dir | 476 | fs/ncpfs/inode.c | ncp_invalid_dir_cache((unsigned long)(NCP_INOP(inode)->dir)); |
dir | 267 | fs/ncpfs/ncplib_kernel.c | struct nw_info_struct *dir, |
dir | 281 | fs/ncpfs/ncplib_kernel.c | if (dir == NULL) |
dir | 310 | fs/ncpfs/ncplib_kernel.c | vol_num = dir->volNumber; |
dir | 311 | fs/ncpfs/ncplib_kernel.c | dir_base = dir->DosDirNum; |
dir | 372 | fs/ncpfs/ncplib_kernel.c | struct nw_info_struct *dir, char *name) |
dir | 381 | fs/ncpfs/ncplib_kernel.c | ncp_add_handle_path(server, dir->volNumber, |
dir | 382 | fs/ncpfs/ncplib_kernel.c | dir->DosDirNum, 1, name); |
dir | 407 | fs/ncpfs/ncplib_kernel.c | struct nw_info_struct *dir, char *name, |
dir | 426 | fs/ncpfs/ncplib_kernel.c | if (dir != NULL) |
dir | 428 | fs/ncpfs/ncplib_kernel.c | ncp_add_handle_path(server, dir->volNumber, |
dir | 429 | fs/ncpfs/ncplib_kernel.c | dir->DosDirNum, 1, name); |
dir | 448 | fs/ncpfs/ncplib_kernel.c | if (dir != NULL) |
dir | 463 | fs/ncpfs/ncplib_kernel.c | struct nw_info_struct *dir, |
dir | 472 | fs/ncpfs/ncplib_kernel.c | ncp_add_handle_path(server, dir->volNumber, dir->DosDirNum, 1, NULL); |
dir | 118 | fs/ncpfs/ncplib_kernel.h | struct nw_info_struct *dir, |
dir | 130 | fs/ncpfs/ncplib_kernel.h | struct nw_info_struct *dir, char *name); |
dir | 134 | fs/ncpfs/ncplib_kernel.h | struct nw_info_struct *dir, char *name, |
dir | 142 | fs/ncpfs/ncplib_kernel.h | struct nw_info_struct *dir, |
dir | 24 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *name, int len, |
dir | 26 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
dir | 28 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode); |
dir | 29 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len); |
dir | 30 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len); |
dir | 33 | fs/nfs/dir.c | static int nfs_link(struct inode *oldinode, struct inode *dir, |
dir | 35 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, int mode, |
dir | 224 | fs/nfs/dir.c | static struct nfs_lookup_cache_entry *nfs_lookup_cache_index(struct inode *dir, |
dir | 232 | fs/nfs/dir.c | if (entry->dev == dir->i_dev |
dir | 233 | fs/nfs/dir.c | && entry->inode == dir->i_ino |
dir | 240 | fs/nfs/dir.c | static int nfs_lookup_cache_lookup(struct inode *dir, const char *filename, |
dir | 252 | fs/nfs/dir.c | if ((entry = nfs_lookup_cache_index(dir, filename))) { |
dir | 264 | fs/nfs/dir.c | static void nfs_lookup_cache_add(struct inode *dir, const char *filename, |
dir | 275 | fs/nfs/dir.c | if (!(entry = nfs_lookup_cache_index(dir, filename))) { |
dir | 280 | fs/nfs/dir.c | entry->dev = dir->i_dev; |
dir | 281 | fs/nfs/dir.c | entry->inode = dir->i_ino; |
dir | 286 | fs/nfs/dir.c | ? NFS_SERVER(dir)->acdirmin : NFS_SERVER(dir)->acregmin); |
dir | 289 | fs/nfs/dir.c | static void nfs_lookup_cache_remove(struct inode *dir, struct inode *inode, |
dir | 301 | fs/nfs/dir.c | else if ((entry = nfs_lookup_cache_index(dir, filename))) { |
dir | 329 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *__name, int len, |
dir | 338 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 340 | fs/nfs/dir.c | iput(dir); |
dir | 344 | fs/nfs/dir.c | iput(dir); |
dir | 350 | fs/nfs/dir.c | *result = dir; |
dir | 353 | fs/nfs/dir.c | if ((NFS_SERVER(dir)->flags & NFS_MOUNT_NOAC) |
dir | 354 | fs/nfs/dir.c | || !nfs_lookup_cache_lookup(dir, name, &fhandle, &fattr)) { |
dir | 355 | fs/nfs/dir.c | if ((error = nfs_proc_lookup(NFS_SERVER(dir), NFS_FH(dir), |
dir | 357 | fs/nfs/dir.c | iput(dir); |
dir | 360 | fs/nfs/dir.c | nfs_lookup_cache_add(dir, name, &fhandle, &fattr); |
dir | 362 | fs/nfs/dir.c | if (!(*result = nfs_fhget(dir->i_sb, &fhandle, &fattr))) { |
dir | 363 | fs/nfs/dir.c | iput(dir); |
dir | 366 | fs/nfs/dir.c | iput(dir); |
dir | 370 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
dir | 379 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 381 | fs/nfs/dir.c | iput(dir); |
dir | 385 | fs/nfs/dir.c | iput(dir); |
dir | 391 | fs/nfs/dir.c | if ((error = nfs_proc_create(NFS_SERVER(dir), NFS_FH(dir), |
dir | 393 | fs/nfs/dir.c | iput(dir); |
dir | 396 | fs/nfs/dir.c | if (!(*result = nfs_fhget(dir->i_sb, &fhandle, &fattr))) { |
dir | 397 | fs/nfs/dir.c | iput(dir); |
dir | 400 | fs/nfs/dir.c | nfs_lookup_cache_add(dir, name, &fhandle, &fattr); |
dir | 401 | fs/nfs/dir.c | iput(dir); |
dir | 405 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, |
dir | 413 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 415 | fs/nfs/dir.c | iput(dir); |
dir | 419 | fs/nfs/dir.c | iput(dir); |
dir | 429 | fs/nfs/dir.c | error = nfs_proc_create(NFS_SERVER(dir), NFS_FH(dir), |
dir | 432 | fs/nfs/dir.c | nfs_lookup_cache_add(dir, name, &fhandle, &fattr); |
dir | 433 | fs/nfs/dir.c | iput(dir); |
dir | 437 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode) |
dir | 444 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 446 | fs/nfs/dir.c | iput(dir); |
dir | 450 | fs/nfs/dir.c | iput(dir); |
dir | 456 | fs/nfs/dir.c | error = nfs_proc_mkdir(NFS_SERVER(dir), NFS_FH(dir), |
dir | 459 | fs/nfs/dir.c | nfs_lookup_cache_add(dir, name, &fhandle, &fattr); |
dir | 460 | fs/nfs/dir.c | iput(dir); |
dir | 464 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len) |
dir | 468 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 470 | fs/nfs/dir.c | iput(dir); |
dir | 474 | fs/nfs/dir.c | iput(dir); |
dir | 477 | fs/nfs/dir.c | error = nfs_proc_rmdir(NFS_SERVER(dir), NFS_FH(dir), name); |
dir | 479 | fs/nfs/dir.c | nfs_lookup_cache_remove(dir, NULL, name); |
dir | 480 | fs/nfs/dir.c | iput(dir); |
dir | 484 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len) |
dir | 488 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 490 | fs/nfs/dir.c | iput(dir); |
dir | 494 | fs/nfs/dir.c | iput(dir); |
dir | 497 | fs/nfs/dir.c | error = nfs_proc_remove(NFS_SERVER(dir), NFS_FH(dir), name); |
dir | 499 | fs/nfs/dir.c | nfs_lookup_cache_remove(dir, NULL, name); |
dir | 500 | fs/nfs/dir.c | iput(dir); |
dir | 504 | fs/nfs/dir.c | static int nfs_symlink(struct inode *dir, const char *name, int len, |
dir | 510 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 512 | fs/nfs/dir.c | iput(dir); |
dir | 516 | fs/nfs/dir.c | iput(dir); |
dir | 520 | fs/nfs/dir.c | iput(dir); |
dir | 526 | fs/nfs/dir.c | error = nfs_proc_symlink(NFS_SERVER(dir), NFS_FH(dir), |
dir | 528 | fs/nfs/dir.c | iput(dir); |
dir | 532 | fs/nfs/dir.c | static int nfs_link(struct inode *oldinode, struct inode *dir, |
dir | 540 | fs/nfs/dir.c | iput(dir); |
dir | 543 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 546 | fs/nfs/dir.c | iput(dir); |
dir | 551 | fs/nfs/dir.c | iput(dir); |
dir | 555 | fs/nfs/dir.c | NFS_FH(dir), name); |
dir | 557 | fs/nfs/dir.c | nfs_lookup_cache_remove(dir, oldinode, NULL); |
dir | 559 | fs/nfs/dir.c | iput(dir); |
dir | 298 | fs/nfs/proc.c | int nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir, const char *name, |
dir | 314 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 461 | fs/nfs/proc.c | int nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir, |
dir | 474 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 501 | fs/nfs/proc.c | int nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir, const char *name) |
dir | 512 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 576 | fs/nfs/proc.c | struct nfs_fh *dir, const char *name) |
dir | 588 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 612 | fs/nfs/proc.c | int nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir, |
dir | 624 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 650 | fs/nfs/proc.c | int nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir, |
dir | 663 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 690 | fs/nfs/proc.c | int nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir, const char *name) |
dir | 701 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 48 | fs/nfs/symlink.c | static int nfs_follow_link(struct inode *dir, struct inode *inode, |
dir | 56 | fs/nfs/symlink.c | if (!dir) { |
dir | 57 | fs/nfs/symlink.c | dir = current->fs->root; |
dir | 58 | fs/nfs/symlink.c | dir->i_count++; |
dir | 61 | fs/nfs/symlink.c | iput(dir); |
dir | 65 | fs/nfs/symlink.c | iput(dir); |
dir | 71 | fs/nfs/symlink.c | iput(dir); |
dir | 78 | fs/nfs/symlink.c | iput(dir); |
dir | 90 | fs/nfs/symlink.c | error = open_namei(res2, flag, mode, res_inode, dir); |
dir | 55 | fs/proc/fd.c | static int proc_lookupfd(struct inode * dir, const char * name, int len, |
dir | 64 | fs/proc/fd.c | ino = dir->i_ino; |
dir | 67 | fs/proc/fd.c | if (!dir) |
dir | 69 | fs/proc/fd.c | sb = dir->i_sb; |
dir | 70 | fs/proc/fd.c | if (!pid || ino != PROC_PID_FD || !S_ISDIR(dir->i_mode)) { |
dir | 71 | fs/proc/fd.c | iput(dir); |
dir | 77 | fs/proc/fd.c | *result = dir; |
dir | 81 | fs/proc/fd.c | iput(dir); |
dir | 84 | fs/proc/fd.c | iput(dir); |
dir | 87 | fs/proc/fd.c | iput(dir); |
dir | 65 | fs/proc/link.c | static int proc_follow_link(struct inode * dir, struct inode * inode, |
dir | 74 | fs/proc/link.c | if (dir) |
dir | 75 | fs/proc/link.c | iput(dir); |
dir | 154 | fs/proc/root.c | int proc_register(struct proc_dir_entry * dir, struct proc_dir_entry * dp) |
dir | 156 | fs/proc/root.c | dp->next = dir->subdir; |
dir | 157 | fs/proc/root.c | dp->parent = dir; |
dir | 158 | fs/proc/root.c | dir->subdir = dp; |
dir | 160 | fs/proc/root.c | dir->nlink++; |
dir | 164 | fs/proc/root.c | int proc_unregister(struct proc_dir_entry * dir, int ino) |
dir | 166 | fs/proc/root.c | struct proc_dir_entry **p = &dir->subdir, *dp; |
dir | 173 | fs/proc/root.c | dir->nlink--; |
dir | 194 | fs/proc/root.c | int proc_register_dynamic(struct proc_dir_entry * dir, |
dir | 201 | fs/proc/root.c | dp->next = dir->subdir; |
dir | 202 | fs/proc/root.c | dp->parent = dir; |
dir | 203 | fs/proc/root.c | dir->subdir = dp; |
dir | 205 | fs/proc/root.c | dir->nlink++; |
dir | 212 | fs/proc/root.c | static int proc_self_followlink(struct inode * dir, struct inode * inode, |
dir | 215 | fs/proc/root.c | iput(dir); |
dir | 384 | fs/proc/root.c | int proc_lookup(struct inode * dir,const char * name, int len, |
dir | 391 | fs/proc/root.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 392 | fs/proc/root.c | iput(dir); |
dir | 396 | fs/proc/root.c | de = (struct proc_dir_entry *) dir->u.generic_ip; |
dir | 398 | fs/proc/root.c | iput(dir); |
dir | 403 | fs/proc/root.c | *result = dir; |
dir | 411 | fs/proc/root.c | inode = proc_get_inode(dir->i_sb, de->parent->low_ino, de->parent); |
dir | 412 | fs/proc/root.c | iput(dir); |
dir | 426 | fs/proc/root.c | iput(dir); |
dir | 430 | fs/proc/root.c | ino = de->low_ino | (dir->i_ino & ~(0xffff)); |
dir | 432 | fs/proc/root.c | if (!(*result = proc_get_inode(dir->i_sb, ino, de))) { |
dir | 433 | fs/proc/root.c | iput(dir); |
dir | 436 | fs/proc/root.c | iput(dir); |
dir | 440 | fs/proc/root.c | static int proc_root_lookup(struct inode * dir,const char * name, int len, |
dir | 446 | fs/proc/root.c | dir->i_count++; |
dir | 447 | fs/proc/root.c | retval = proc_lookup(dir, name, len, result); |
dir | 449 | fs/proc/root.c | iput(dir); |
dir | 472 | fs/proc/root.c | iput(dir); |
dir | 476 | fs/proc/root.c | if (!(*result = proc_get_inode(dir->i_sb, ino, &proc_pid))) { |
dir | 477 | fs/proc/root.c | iput(dir); |
dir | 480 | fs/proc/root.c | iput(dir); |
dir | 29 | fs/smbfs/dir.c | get_pname(struct inode *dir, const char *name, int len, |
dir | 33 | fs/smbfs/dir.c | get_pname_static(struct inode *dir, const char *name, int len, |
dir | 37 | fs/smbfs/dir.c | smb_iget(struct inode *dir, char *path, struct smb_dirent *finfo); |
dir | 46 | fs/smbfs/dir.c | smb_lookup(struct inode *dir, const char *__name, |
dir | 50 | fs/smbfs/dir.c | smb_create(struct inode *dir, const char *name, int len, int mode, |
dir | 54 | fs/smbfs/dir.c | smb_mkdir(struct inode *dir, const char *name, int len, int mode); |
dir | 57 | fs/smbfs/dir.c | smb_rmdir(struct inode *dir, const char *name, int len); |
dir | 60 | fs/smbfs/dir.c | smb_unlink(struct inode *dir, const char *name, int len); |
dir | 343 | fs/smbfs/dir.c | get_pname_static(struct inode *dir, const char *name, int len, |
dir | 346 | fs/smbfs/dir.c | char *parentname = SMB_INOP(dir)->finfo.path; |
dir | 347 | fs/smbfs/dir.c | int parentlen = SMB_INOP(dir)->finfo.len; |
dir | 412 | fs/smbfs/dir.c | switch (SMB_SERVER(dir)->case_handling) |
dir | 432 | fs/smbfs/dir.c | get_pname(struct inode *dir, const char *name, int len, |
dir | 439 | fs/smbfs/dir.c | if ((res = get_pname_static(dir,name,len,result,&result_len) != 0)) { |
dir | 464 | fs/smbfs/dir.c | smb_iget(struct inode *dir, char *path, struct smb_dirent *finfo) |
dir | 472 | fs/smbfs/dir.c | if (!dir) { |
dir | 485 | fs/smbfs/dir.c | error = smb_proc_getattr(&(SMB_SBP(dir->i_sb)->s_server), |
dir | 506 | fs/smbfs/dir.c | new_inode_info->dir = SMB_INOP(dir); |
dir | 513 | fs/smbfs/dir.c | SMB_INOP(dir)->nused += 1; |
dir | 519 | fs/smbfs/dir.c | root = &(SMB_SERVER(dir)->root); |
dir | 526 | fs/smbfs/dir.c | if (!(inode = iget(dir->i_sb, (int)new_inode_info))) { |
dir | 544 | fs/smbfs/dir.c | struct smb_inode_info *dir = i->dir; |
dir | 552 | fs/smbfs/dir.c | if (dir == NULL) return; |
dir | 554 | fs/smbfs/dir.c | (dir->nused)--; |
dir | 555 | fs/smbfs/dir.c | i = dir; |
dir | 570 | fs/smbfs/dir.c | root->dir = NULL; |
dir | 658 | fs/smbfs/dir.c | smb_lookup(struct inode *dir, const char *__name, int len, |
dir | 669 | fs/smbfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 671 | fs/smbfs/dir.c | iput(dir); |
dir | 679 | fs/smbfs/dir.c | *result = dir; |
dir | 684 | fs/smbfs/dir.c | if ((error = get_pname(dir, __name, len, &name, &len)) < 0) { |
dir | 685 | fs/smbfs/dir.c | iput(dir); |
dir | 689 | fs/smbfs/dir.c | result_info = smb_find_inode(SMB_SERVER(dir), name); |
dir | 701 | fs/smbfs/dir.c | *result = iget(dir->i_sb, (int)result_info); |
dir | 702 | fs/smbfs/dir.c | iput(dir); |
dir | 720 | fs/smbfs/dir.c | if (dir->i_ino == c_ino) { |
dir | 742 | fs/smbfs/dir.c | error = smb_proc_getattr(SMB_SERVER(dir), name, len, &finfo); |
dir | 745 | fs/smbfs/dir.c | iput(dir); |
dir | 750 | fs/smbfs/dir.c | if (!(*result = smb_iget(dir, name, &finfo))) { |
dir | 752 | fs/smbfs/dir.c | iput(dir); |
dir | 757 | fs/smbfs/dir.c | iput(dir); |
dir | 762 | fs/smbfs/dir.c | smb_create(struct inode *dir, const char *name, int len, int mode, |
dir | 771 | fs/smbfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 773 | fs/smbfs/dir.c | iput(dir); |
dir | 778 | fs/smbfs/dir.c | if ((error = get_pname(dir, name, len, &path, &len)) < 0) { |
dir | 779 | fs/smbfs/dir.c | iput(dir); |
dir | 789 | fs/smbfs/dir.c | error = smb_proc_create(SMB_SERVER(dir), path, len, &entry); |
dir | 792 | fs/smbfs/dir.c | iput(dir); |
dir | 796 | fs/smbfs/dir.c | smb_invalid_dir_cache(dir->i_ino); |
dir | 798 | fs/smbfs/dir.c | if (!(*result = smb_iget(dir, path, &entry)) < 0) { |
dir | 800 | fs/smbfs/dir.c | iput(dir); |
dir | 803 | fs/smbfs/dir.c | iput(dir); |
dir | 808 | fs/smbfs/dir.c | smb_mkdir(struct inode *dir, const char *name, int len, int mode) |
dir | 813 | fs/smbfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 815 | fs/smbfs/dir.c | iput(dir); |
dir | 820 | fs/smbfs/dir.c | if ((error = get_pname_static(dir, name, len, path, &len)) < 0) { |
dir | 821 | fs/smbfs/dir.c | iput(dir); |
dir | 825 | fs/smbfs/dir.c | if ((error = smb_proc_mkdir(SMB_SERVER(dir), path, len)) == 0) { |
dir | 826 | fs/smbfs/dir.c | smb_invalid_dir_cache(dir->i_ino); |
dir | 829 | fs/smbfs/dir.c | iput(dir); |
dir | 834 | fs/smbfs/dir.c | smb_rmdir(struct inode *dir, const char *name, int len) |
dir | 839 | fs/smbfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 841 | fs/smbfs/dir.c | iput(dir); |
dir | 844 | fs/smbfs/dir.c | if ((error = get_pname_static(dir, name, len, path, &len)) < 0) { |
dir | 845 | fs/smbfs/dir.c | iput(dir); |
dir | 848 | fs/smbfs/dir.c | if (smb_find_inode(SMB_SERVER(dir), path) != NULL) { |
dir | 851 | fs/smbfs/dir.c | if ((error = smb_proc_rmdir(SMB_SERVER(dir), path, len)) == 0) |
dir | 852 | fs/smbfs/dir.c | smb_invalid_dir_cache(dir->i_ino); |
dir | 854 | fs/smbfs/dir.c | iput(dir); |
dir | 859 | fs/smbfs/dir.c | smb_unlink(struct inode *dir, const char *name, int len) |
dir | 864 | fs/smbfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 866 | fs/smbfs/dir.c | iput(dir); |
dir | 869 | fs/smbfs/dir.c | if ((error = get_pname_static(dir, name, len, path, &len)) < 0) { |
dir | 870 | fs/smbfs/dir.c | iput(dir); |
dir | 873 | fs/smbfs/dir.c | if (smb_find_inode(SMB_SERVER(dir), path) != NULL) { |
dir | 876 | fs/smbfs/dir.c | if ((error = smb_proc_unlink(SMB_SERVER(dir), path, len)) == 0) |
dir | 877 | fs/smbfs/dir.c | smb_invalid_dir_cache(dir->i_ino); |
dir | 879 | fs/smbfs/dir.c | iput(dir); |
dir | 395 | fs/smbfs/inode.c | smb_invalid_dir_cache((unsigned long)(SMB_INOP(inode)->dir)); |
dir | 940 | fs/smbfs/proc.c | smb_proc_readdir_short(struct smb_server *server, struct inode *dir, int fpos, |
dir | 954 | fs/smbfs/proc.c | int dirlen = strlen(SMB_FINFO(dir)->path); |
dir | 957 | fs/smbfs/proc.c | strcpy(mask, SMB_FINFO(dir)->path); |
dir | 1144 | fs/smbfs/proc.c | smb_proc_readdir_long(struct smb_server *server, struct inode *dir, int fpos, |
dir | 1173 | fs/smbfs/proc.c | int dirlen = strlen(SMB_FINFO(dir)->path); |
dir | 1176 | fs/smbfs/proc.c | strcpy(mask, SMB_FINFO(dir)->path); |
dir | 1372 | fs/smbfs/proc.c | smb_proc_readdir(struct smb_server *server, struct inode *dir, int fpos, |
dir | 1376 | fs/smbfs/proc.c | return smb_proc_readdir_long(server, dir, fpos, cache_size, |
dir | 1379 | fs/smbfs/proc.c | return smb_proc_readdir_short(server, dir, fpos, cache_size, |
dir | 656 | fs/super.c | static int do_remount(const char *dir,int flags,char *data) |
dir | 661 | fs/super.c | retval = namei(dir, &dir_i); |
dir | 103 | fs/sysv/ialloc.c | struct inode * sysv_new_inode(const struct inode * dir) |
dir | 111 | fs/sysv/ialloc.c | if (!dir || !(inode = get_empty_inode())) |
dir | 113 | fs/sysv/ialloc.c | sb = dir->i_sb; |
dir | 156 | fs/sysv/ialloc.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
dir | 60 | fs/sysv/namei.c | static struct buffer_head * sysv_find_entry(struct inode * dir, |
dir | 68 | fs/sysv/namei.c | if (!dir) |
dir | 70 | fs/sysv/namei.c | sb = dir->i_sb; |
dir | 78 | fs/sysv/namei.c | while (pos < dir->i_size) { |
dir | 80 | fs/sysv/namei.c | bh = sysv_file_bread(dir,block,0); |
dir | 103 | fs/sysv/namei.c | int sysv_lookup(struct inode * dir,const char * name, int len, |
dir | 111 | fs/sysv/namei.c | if (!dir) |
dir | 113 | fs/sysv/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 114 | fs/sysv/namei.c | iput(dir); |
dir | 117 | fs/sysv/namei.c | if (!(bh = sysv_find_entry(dir,name,len,&de))) { |
dir | 118 | fs/sysv/namei.c | iput(dir); |
dir | 123 | fs/sysv/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 124 | fs/sysv/namei.c | iput(dir); |
dir | 127 | fs/sysv/namei.c | iput(dir); |
dir | 141 | fs/sysv/namei.c | static int sysv_add_entry(struct inode * dir, |
dir | 154 | fs/sysv/namei.c | if (!dir) |
dir | 156 | fs/sysv/namei.c | sb = dir->i_sb; |
dir | 168 | fs/sysv/namei.c | bh = sysv_file_bread(dir,block,1); |
dir | 175 | fs/sysv/namei.c | if (pos > dir->i_size) { |
dir | 177 | fs/sysv/namei.c | dir->i_size = pos; |
dir | 178 | fs/sysv/namei.c | dir->i_dirt = 1; |
dir | 186 | fs/sysv/namei.c | dir->i_mtime = dir->i_ctime = CURRENT_TIME; |
dir | 187 | fs/sysv/namei.c | dir->i_dirt = 1; |
dir | 204 | fs/sysv/namei.c | int sysv_create(struct inode * dir,const char * name, int len, int mode, |
dir | 213 | fs/sysv/namei.c | if (!dir) |
dir | 215 | fs/sysv/namei.c | inode = sysv_new_inode(dir); |
dir | 217 | fs/sysv/namei.c | iput(dir); |
dir | 223 | fs/sysv/namei.c | error = sysv_add_entry(dir,name,len, &bh ,&de); |
dir | 228 | fs/sysv/namei.c | iput(dir); |
dir | 234 | fs/sysv/namei.c | iput(dir); |
dir | 239 | fs/sysv/namei.c | int sysv_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
dir | 246 | fs/sysv/namei.c | if (!dir) |
dir | 248 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 251 | fs/sysv/namei.c | iput(dir); |
dir | 254 | fs/sysv/namei.c | inode = sysv_new_inode(dir); |
dir | 256 | fs/sysv/namei.c | iput(dir); |
dir | 266 | fs/sysv/namei.c | if (dir->i_mode & S_ISGID) |
dir | 280 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
dir | 285 | fs/sysv/namei.c | iput(dir); |
dir | 291 | fs/sysv/namei.c | iput(dir); |
dir | 296 | fs/sysv/namei.c | int sysv_mkdir(struct inode * dir, const char * name, int len, int mode) |
dir | 303 | fs/sysv/namei.c | if (!dir) { |
dir | 304 | fs/sysv/namei.c | iput(dir); |
dir | 307 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 310 | fs/sysv/namei.c | iput(dir); |
dir | 313 | fs/sysv/namei.c | if (dir->i_nlink >= dir->i_sb->sv_link_max) { |
dir | 314 | fs/sysv/namei.c | iput(dir); |
dir | 317 | fs/sysv/namei.c | inode = sysv_new_inode(dir); |
dir | 319 | fs/sysv/namei.c | iput(dir); |
dir | 326 | fs/sysv/namei.c | iput(dir); |
dir | 336 | fs/sysv/namei.c | de->inode = dir->i_ino; |
dir | 342 | fs/sysv/namei.c | if (dir->i_mode & S_ISGID) |
dir | 345 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
dir | 347 | fs/sysv/namei.c | iput(dir); |
dir | 354 | fs/sysv/namei.c | dir->i_nlink++; |
dir | 355 | fs/sysv/namei.c | dir->i_dirt = 1; |
dir | 356 | fs/sysv/namei.c | iput(dir); |
dir | 422 | fs/sysv/namei.c | int sysv_rmdir(struct inode * dir, const char * name, int len) |
dir | 430 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 435 | fs/sysv/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 437 | fs/sysv/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 439 | fs/sysv/namei.c | current->fsuid != dir->i_uid) |
dir | 441 | fs/sysv/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 443 | fs/sysv/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 467 | fs/sysv/namei.c | dir->i_nlink--; |
dir | 468 | fs/sysv/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 469 | fs/sysv/namei.c | dir->i_dirt=1; |
dir | 472 | fs/sysv/namei.c | iput(dir); |
dir | 478 | fs/sysv/namei.c | int sysv_unlink(struct inode * dir, const char * name, int len) |
dir | 488 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 491 | fs/sysv/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 503 | fs/sysv/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 505 | fs/sysv/namei.c | current->fsuid != dir->i_uid) |
dir | 519 | fs/sysv/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 520 | fs/sysv/namei.c | dir->i_dirt = 1; |
dir | 522 | fs/sysv/namei.c | inode->i_ctime = dir->i_ctime; |
dir | 528 | fs/sysv/namei.c | iput(dir); |
dir | 532 | fs/sysv/namei.c | int sysv_symlink(struct inode * dir, const char * name, int len, const char * symname) |
dir | 543 | fs/sysv/namei.c | if (!(inode = sysv_new_inode(dir))) { |
dir | 544 | fs/sysv/namei.c | iput(dir); |
dir | 551 | fs/sysv/namei.c | iput(dir); |
dir | 567 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 573 | fs/sysv/namei.c | iput(dir); |
dir | 576 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
dir | 581 | fs/sysv/namei.c | iput(dir); |
dir | 587 | fs/sysv/namei.c | iput(dir); |
dir | 592 | fs/sysv/namei.c | int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
dir | 600 | fs/sysv/namei.c | iput(dir); |
dir | 605 | fs/sysv/namei.c | iput(dir); |
dir | 608 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 611 | fs/sysv/namei.c | iput(dir); |
dir | 615 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
dir | 617 | fs/sysv/namei.c | iput(dir); |
dir | 624 | fs/sysv/namei.c | iput(dir); |
dir | 49 | fs/sysv/symlink.c | static int sysv_follow_link(struct inode * dir, struct inode * inode, |
dir | 56 | fs/sysv/symlink.c | if (!dir) { |
dir | 57 | fs/sysv/symlink.c | dir = current->fs->root; |
dir | 58 | fs/sysv/symlink.c | dir->i_count++; |
dir | 61 | fs/sysv/symlink.c | iput(dir); |
dir | 65 | fs/sysv/symlink.c | iput(dir); |
dir | 71 | fs/sysv/symlink.c | iput(dir); |
dir | 76 | fs/sysv/symlink.c | iput(dir); |
dir | 81 | fs/sysv/symlink.c | error = open_namei(bh->b_data,flag,mode,res_inode,dir); |
dir | 80 | fs/umsdos/dir.c | struct inode *dir, /* Point to a description of the super block */ |
dir | 91 | fs/umsdos/dir.c | umsdos_startlookup(dir); |
dir | 93 | fs/umsdos/dir.c | && dir == pseudo_root |
dir | 106 | fs/umsdos/dir.c | ,dir->i_sb->s_mounted->i_ino) == 0){ |
dir | 110 | fs/umsdos/dir.c | || (dir != dir->i_sb->s_mounted && filp->f_pos == 32)){ |
dir | 155 | fs/umsdos/dir.c | ret = msdos_readdir(dir,filp,&bufk,umsdos_dir_once); |
dir | 159 | fs/umsdos/dir.c | struct inode *emd_dir = umsdos_emd_dir_lookup(dir,0); |
dir | 196 | fs/umsdos/dir.c | lret = umsdos_real_lookup (dir,info.fake.fname |
dir | 235 | fs/umsdos/dir.c | ret = umsdos_writeentry (dir,emd_dir,&info,1); |
dir | 252 | fs/umsdos/dir.c | umsdos_endlookup(dir); |
dir | 253 | fs/umsdos/dir.c | PRINTK (("read dir %p pos %Ld ret %d\n",dir,filp->f_pos,ret)); |
dir | 262 | fs/umsdos/dir.c | struct inode *dir, /* Point to a description of the super block */ |
dir | 277 | fs/umsdos/dir.c | ret = umsdos_readdir_x (dir,filp,&bufk,0,&entry,1,umsdos_dir_once); |
dir | 289 | fs/umsdos/dir.c | struct inode *dir, |
dir | 323 | fs/umsdos/dir.c | if (inode->i_sb == dir->i_sb && !umsdos_isinit(inode)){ |
dir | 402 | fs/umsdos/dir.c | umsdos_patch_inode(inode,dir,emd_pos); |
dir | 463 | fs/umsdos/dir.c | struct inode *dir, |
dir | 477 | fs/umsdos/dir.c | struct inode *emddir = umsdos_emd_dir_lookup(dir,0); |
dir | 487 | fs/umsdos/dir.c | msdos_readdir (dir,&filp,&bufk,umsdos_dir_search); |
dir | 490 | fs/umsdos/dir.c | inode->u.umsdos_i.i_dir_owner = dir->i_ino; |
dir | 501 | fs/umsdos/dir.c | if (umsdos_readdir_x(dir,&filp,&bufk |
dir | 508 | fs/umsdos/dir.c | umsdos_lookup_patch (dir,inode,entry,bufk.f_pos); |
dir | 521 | fs/umsdos/dir.c | struct inode *dir, |
dir | 526 | fs/umsdos/dir.c | umsdos_patch_inode (dir,NULL,0); |
dir | 527 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,"..",2,result); |
dir | 531 | fs/umsdos/dir.c | ret = umsdos_inode2entry (adir,dir,entry); |
dir | 547 | fs/umsdos/dir.c | struct inode *dir = inode; |
dir | 557 | fs/umsdos/dir.c | ret = umsdos_get_dirowner (inode,&dir); |
dir | 560 | fs/umsdos/dir.c | ret = umsdos_inode2entry (dir,inode,&entry); |
dir | 568 | fs/umsdos/dir.c | dir->i_count++; |
dir | 571 | fs/umsdos/dir.c | while (dir != dir->i_sb->s_mounted){ |
dir | 573 | fs/umsdos/dir.c | ret = umsdos_locate_ancestor (dir,&adir,&entry); |
dir | 574 | fs/umsdos/dir.c | iput (dir); |
dir | 575 | fs/umsdos/dir.c | dir = NULL; |
dir | 581 | fs/umsdos/dir.c | dir = adir; |
dir | 592 | fs/umsdos/dir.c | iput (dir); |
dir | 600 | fs/umsdos/dir.c | struct inode *dir, |
dir | 611 | fs/umsdos/dir.c | return dir == pseudo_root |
dir | 620 | fs/umsdos/dir.c | struct inode *dir, |
dir | 628 | fs/umsdos/dir.c | umsdos_startlookup(dir); |
dir | 630 | fs/umsdos/dir.c | *result = dir; |
dir | 631 | fs/umsdos/dir.c | dir->i_count++; |
dir | 634 | fs/umsdos/dir.c | if (pseudo_root != NULL && dir == pseudo_root->i_sb->s_mounted){ |
dir | 654 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,"..",2,result); |
dir | 655 | fs/umsdos/dir.c | PRINTK (("ancestor ret %d dir %p *result %p ",ret,dir,*result)); |
dir | 657 | fs/umsdos/dir.c | && *result != dir->i_sb->s_mounted |
dir | 665 | fs/umsdos/dir.c | }else if (umsdos_is_pseudodos(dir,name,len)){ |
dir | 670 | fs/umsdos/dir.c | *result = dir->i_sb->s_mounted; |
dir | 676 | fs/umsdos/dir.c | if (ret == 0) ret = umsdos_findentry (dir,&info,0); |
dir | 690 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,info.fake.fname,info.fake.len,result); |
dir | 695 | fs/umsdos/dir.c | umsdos_delentry (dir,&info,S_ISDIR(info.entry.mode)); |
dir | 697 | fs/umsdos/dir.c | umsdos_lookup_patch (dir,inode,&info.entry,info.f_pos); |
dir | 720 | fs/umsdos/dir.c | umsdos_endlookup(dir); |
dir | 721 | fs/umsdos/dir.c | iput (dir); |
dir | 729 | fs/umsdos/dir.c | struct inode *dir, |
dir | 734 | fs/umsdos/dir.c | return umsdos_lookup_x(dir,name,len,result,0); |
dir | 755 | fs/umsdos/dir.c | struct inode *dir; |
dir | 757 | fs/umsdos/dir.c | dir = hlink->i_sb->s_mounted; |
dir | 760 | fs/umsdos/dir.c | dir->i_count++; |
dir | 767 | fs/umsdos/dir.c | if (dir->u.umsdos_i.i_emd_dir == 0){ |
dir | 769 | fs/umsdos/dir.c | ret = umsdos_rlookup_x(dir,start,len,result,1); |
dir | 771 | fs/umsdos/dir.c | ret = umsdos_lookup_x(dir,start,len,result,1); |
dir | 775 | fs/umsdos/dir.c | dir = *result; |
dir | 102 | fs/umsdos/emd.c | struct inode *umsdos_emd_dir_lookup(struct inode *dir, int creat) |
dir | 105 | fs/umsdos/emd.c | if (dir->u.umsdos_i.i_emd_dir != 0){ |
dir | 106 | fs/umsdos/emd.c | ret = iget (dir->i_sb,dir->u.umsdos_i.i_emd_dir); |
dir | 108 | fs/umsdos/emd.c | ,dir->u.umsdos_i.i_emd_dir,ret,ret->i_count)); |
dir | 110 | fs/umsdos/emd.c | umsdos_real_lookup (dir,UMSDOS_EMD_FILE,UMSDOS_EMD_NAMELEN,&ret); |
dir | 114 | fs/umsdos/emd.c | dir->u.umsdos_i.i_emd_dir = ret->i_ino; |
dir | 118 | fs/umsdos/emd.c | dir->i_count++; |
dir | 119 | fs/umsdos/emd.c | code = msdos_create (dir,UMSDOS_EMD_FILE,UMSDOS_EMD_NAMELEN |
dir | 123 | fs/umsdos/emd.c | dir->u.umsdos_i.i_emd_dir = ret->i_ino; |
dir | 163 | fs/umsdos/emd.c | struct inode *dir, |
dir | 198 | fs/umsdos/emd.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 199 | fs/umsdos/emd.c | dir->i_dirt = 1; |
dir | 266 | fs/umsdos/emd.c | struct inode *dir, |
dir | 278 | fs/umsdos/emd.c | struct inode *emd_dir = umsdos_emd_dir_lookup(dir,1); |
dir | 366 | fs/umsdos/emd.c | struct inode *dir, |
dir | 370 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
dir | 374 | fs/umsdos/emd.c | ret = umsdos_writeentry(dir,emd_dir,info,0); |
dir | 385 | fs/umsdos/emd.c | struct inode *dir, |
dir | 392 | fs/umsdos/emd.c | ret = umsdos_find (dir,info,&emd_dir); |
dir | 413 | fs/umsdos/emd.c | struct inode *dir, |
dir | 418 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
dir | 428 | fs/umsdos/emd.c | ret = umsdos_writeentry(dir,emd_dir,info,1); |
dir | 443 | fs/umsdos/emd.c | int umsdos_isempty (struct inode *dir) |
dir | 446 | fs/umsdos/emd.c | struct inode *emd_dir = umsdos_emd_dir_lookup(dir,0); |
dir | 475 | fs/umsdos/emd.c | struct inode *dir, |
dir | 482 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
dir | 69 | fs/umsdos/inode.c | struct inode *dir, |
dir | 75 | fs/umsdos/inode.c | dir->i_count++; |
dir | 76 | fs/umsdos/inode.c | ret = msdos_lookup (dir,name,len,result); |
dir | 102 | fs/umsdos/inode.c | struct inode *dir, |
dir | 105 | fs/umsdos/inode.c | struct inode *emd_owner = umsdos_emd_dir_lookup(dir,1); |
dir | 106 | fs/umsdos/inode.c | inode->u.umsdos_i.i_dir_owner = dir->i_ino; |
dir | 130 | fs/umsdos/inode.c | struct inode *dir, /* May be NULL */ |
dir | 158 | fs/umsdos/inode.c | if (dir != NULL){ |
dir | 170 | fs/umsdos/inode.c | if (dir != NULL){ |
dir | 181 | fs/umsdos/inode.c | umsdos_set_dirinfo (inode,dir,f_pos); |
dir | 183 | fs/umsdos/inode.c | }else if (dir != NULL){ |
dir | 188 | fs/umsdos/inode.c | struct inode *emd_owner = umsdos_emd_dir_lookup(dir,1); |
dir | 211 | fs/umsdos/inode.c | struct inode *dir = *result = iget(inode->i_sb,ino); |
dir | 212 | fs/umsdos/inode.c | if (dir != NULL){ |
dir | 213 | fs/umsdos/inode.c | umsdos_patch_inode (dir,NULL,0); |
dir | 56 | fs/umsdos/ioctl.c | struct inode *dir, |
dir | 121 | fs/umsdos/ioctl.c | msdos_readdir(dir,filp,&bufk,umsdos_ioctl_fill); |
dir | 135 | fs/umsdos/ioctl.c | struct inode *emd_dir = umsdos_emd_dir_lookup (dir,0); |
dir | 179 | fs/umsdos/ioctl.c | struct inode *emd_dir = umsdos_emd_dir_lookup (dir,1); |
dir | 183 | fs/umsdos/ioctl.c | dir->i_op = ret |
dir | 205 | fs/umsdos/ioctl.c | ret = umsdos_newentry (dir,&info); |
dir | 216 | fs/umsdos/ioctl.c | dir->i_count += 2; |
dir | 217 | fs/umsdos/ioctl.c | ret = msdos_rename (dir |
dir | 219 | fs/umsdos/ioctl.c | ,dir |
dir | 237 | fs/umsdos/ioctl.c | ret = umsdos_delentry (dir,&info |
dir | 247 | fs/umsdos/ioctl.c | dir->i_count++; |
dir | 248 | fs/umsdos/ioctl.c | ret = msdos_unlink (dir,data.dos_dirent.d_name |
dir | 258 | fs/umsdos/ioctl.c | dir->i_count++; |
dir | 259 | fs/umsdos/ioctl.c | ret = msdos_rmdir (dir,data.dos_dirent.d_name |
dir | 273 | fs/umsdos/ioctl.c | ret = umsdos_real_lookup (dir,data.dos_dirent.d_name |
dir | 305 | fs/umsdos/ioctl.c | dir->i_sb->u.msdos_sb.fs_uid = data.umsdos_dirent.uid; |
dir | 306 | fs/umsdos/ioctl.c | dir->i_sb->u.msdos_sb.fs_gid = data.umsdos_dirent.gid; |
dir | 307 | fs/umsdos/ioctl.c | dir->i_sb->u.msdos_sb.fs_umask = data.umsdos_dirent.mode; |
dir | 32 | fs/umsdos/namei.c | static int umsdos_waitcreate(struct inode *dir) |
dir | 35 | fs/umsdos/namei.c | if (dir->u.umsdos_i.u.dir_info.creating |
dir | 36 | fs/umsdos/namei.c | && dir->u.umsdos_i.u.dir_info.pid != current->pid){ |
dir | 37 | fs/umsdos/namei.c | sleep_on(&dir->u.umsdos_i.u.dir_info.p); |
dir | 45 | fs/umsdos/namei.c | static void umsdos_waitlookup (struct inode *dir) |
dir | 47 | fs/umsdos/namei.c | while (dir->u.umsdos_i.u.dir_info.looking){ |
dir | 48 | fs/umsdos/namei.c | sleep_on(&dir->u.umsdos_i.u.dir_info.p); |
dir | 54 | fs/umsdos/namei.c | void umsdos_lockcreate (struct inode *dir) |
dir | 88 | fs/umsdos/namei.c | while (umsdos_waitcreate(dir)!=0); |
dir | 89 | fs/umsdos/namei.c | dir->u.umsdos_i.u.dir_info.creating++; |
dir | 90 | fs/umsdos/namei.c | dir->u.umsdos_i.u.dir_info.pid = current->pid; |
dir | 91 | fs/umsdos/namei.c | umsdos_waitlookup (dir); |
dir | 121 | fs/umsdos/namei.c | void umsdos_startlookup (struct inode *dir) |
dir | 123 | fs/umsdos/namei.c | while (umsdos_waitcreate (dir) != 0); |
dir | 124 | fs/umsdos/namei.c | dir->u.umsdos_i.u.dir_info.looking++; |
dir | 130 | fs/umsdos/namei.c | void umsdos_unlockcreate (struct inode *dir) |
dir | 132 | fs/umsdos/namei.c | dir->u.umsdos_i.u.dir_info.creating--; |
dir | 133 | fs/umsdos/namei.c | if (dir->u.umsdos_i.u.dir_info.creating < 0){ |
dir | 135 | fs/umsdos/namei.c | ,dir->u.umsdos_i.u.dir_info.creating); |
dir | 137 | fs/umsdos/namei.c | wake_up (&dir->u.umsdos_i.u.dir_info.p); |
dir | 142 | fs/umsdos/namei.c | void umsdos_endlookup (struct inode *dir) |
dir | 144 | fs/umsdos/namei.c | dir->u.umsdos_i.u.dir_info.looking--; |
dir | 145 | fs/umsdos/namei.c | if (dir->u.umsdos_i.u.dir_info.looking < 0){ |
dir | 147 | fs/umsdos/namei.c | ,dir->u.umsdos_i.u.dir_info.looking); |
dir | 149 | fs/umsdos/namei.c | wake_up (&dir->u.umsdos_i.u.dir_info.p); |
dir | 152 | fs/umsdos/namei.c | static void umsdos_lockcreate (struct inode *dir){} |
dir | 154 | fs/umsdos/namei.c | void umsdos_startlookup (struct inode *dir){} |
dir | 155 | fs/umsdos/namei.c | static void umsdos_unlockcreate (struct inode *dir){} |
dir | 156 | fs/umsdos/namei.c | void umsdos_endlookup (struct inode *dir){} |
dir | 159 | fs/umsdos/namei.c | struct inode *dir, |
dir | 165 | fs/umsdos/namei.c | if (umsdos_is_pseudodos(dir,name,len)){ |
dir | 200 | fs/umsdos/namei.c | struct inode *dir, |
dir | 210 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EEXIST); |
dir | 220 | fs/umsdos/namei.c | info.entry.gid = (dir->i_mode & S_ISGID) |
dir | 221 | fs/umsdos/namei.c | ? dir->i_gid : current->fsgid; |
dir | 225 | fs/umsdos/namei.c | umsdos_lockcreate(dir); |
dir | 226 | fs/umsdos/namei.c | ret = umsdos_newentry (dir,&info); |
dir | 228 | fs/umsdos/namei.c | dir->i_count++; |
dir | 229 | fs/umsdos/namei.c | ret = msdos_create (dir,info.fake.fname,info.fake.len |
dir | 233 | fs/umsdos/namei.c | umsdos_lookup_patch (dir,inode,&info.entry,info.f_pos); |
dir | 235 | fs/umsdos/namei.c | PRINTK (("Creation OK: [%d] %s %d pos %d\n",dir->i_ino |
dir | 262 | fs/umsdos/namei.c | "deleting %s %d %d pos %ld\n",dir->i_ino |
dir | 265 | fs/umsdos/namei.c | umsdos_delentry (dir,&info,0); |
dir | 270 | fs/umsdos/namei.c | umsdos_unlockcreate(dir); |
dir | 273 | fs/umsdos/namei.c | iput (dir); |
dir | 421 | fs/umsdos/namei.c | struct inode * dir, |
dir | 440 | fs/umsdos/namei.c | dir->i_count++; /* We keep the inode in case we need it */ |
dir | 442 | fs/umsdos/namei.c | ret = umsdos_create_any (dir,name,len,mode,0,flags,&inode); |
dir | 461 | fs/umsdos/namei.c | UMSDOS_unlink (dir,name,len); |
dir | 462 | fs/umsdos/namei.c | dir = NULL; |
dir | 465 | fs/umsdos/namei.c | iput (dir); |
dir | 474 | fs/umsdos/namei.c | struct inode * dir, |
dir | 479 | fs/umsdos/namei.c | return umsdos_symlink_x (dir,name,len,symname,S_IFLNK|0777,0); |
dir | 486 | fs/umsdos/namei.c | struct inode * dir, |
dir | 567 | fs/umsdos/namei.c | }else if ((ret = umsdos_nevercreat(dir,name,len,-EPERM))==0){ |
dir | 574 | fs/umsdos/namei.c | umsdos_lockcreate2(dir,olddir); |
dir | 616 | fs/umsdos/namei.c | dir->i_count++; |
dir | 617 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len |
dir | 633 | fs/umsdos/namei.c | dir->i_count++; |
dir | 634 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len,path |
dir | 642 | fs/umsdos/namei.c | umsdos_unlockcreate(dir); |
dir | 653 | fs/umsdos/namei.c | iput (dir); |
dir | 665 | fs/umsdos/namei.c | struct inode *dir, |
dir | 672 | fs/umsdos/namei.c | return umsdos_create_any (dir,name,len,mode,0,0,result); |
dir | 678 | fs/umsdos/namei.c | struct inode * dir, |
dir | 683 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EEXIST); |
dir | 692 | fs/umsdos/namei.c | info.entry.gid = (dir->i_mode & S_ISGID) |
dir | 693 | fs/umsdos/namei.c | ? dir->i_gid : current->fsgid; |
dir | 697 | fs/umsdos/namei.c | umsdos_lockcreate(dir); |
dir | 699 | fs/umsdos/namei.c | ret = umsdos_newentry (dir,&info); |
dir | 702 | fs/umsdos/namei.c | dir->i_count++; |
dir | 703 | fs/umsdos/namei.c | ret = msdos_mkdir (dir,info.fake.fname,info.fake.len,mode); |
dir | 705 | fs/umsdos/namei.c | umsdos_delentry (dir,&info,1); |
dir | 718 | fs/umsdos/namei.c | ret = umsdos_real_lookup (dir,info.fake.fname |
dir | 733 | fs/umsdos/namei.c | umsdos_unlockcreate(dir); |
dir | 737 | fs/umsdos/namei.c | iput (dir); |
dir | 744 | fs/umsdos/namei.c | struct inode * dir, |
dir | 765 | fs/umsdos/namei.c | int ret = umsdos_create_any (dir,name,len,mode,rdev,0,&inode); |
dir | 774 | fs/umsdos/namei.c | struct inode * dir, |
dir | 865 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
dir | 868 | fs/umsdos/namei.c | dir->i_count++; |
dir | 869 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&sdir); |
dir | 873 | fs/umsdos/namei.c | umsdos_lockcreate(dir); |
dir | 879 | fs/umsdos/namei.c | if ( !(dir->i_mode & S_ISVTX) || fsuser() || |
dir | 881 | fs/umsdos/namei.c | current->fsuid == dir->i_uid ) { |
dir | 891 | fs/umsdos/namei.c | PRINTK (("isempty ret %d nlink %d ",ret,dir->i_nlink)); |
dir | 894 | fs/umsdos/namei.c | dir->i_count++; |
dir | 898 | fs/umsdos/namei.c | umsdos_findentry (dir,&info,2); |
dir | 899 | fs/umsdos/namei.c | ret = msdos_rmdir (dir,info.fake.fname |
dir | 902 | fs/umsdos/namei.c | ret = umsdos_delentry (dir,&info,1); |
dir | 917 | fs/umsdos/namei.c | umsdos_unlockcreate(dir); |
dir | 920 | fs/umsdos/namei.c | iput (dir); |
dir | 928 | fs/umsdos/namei.c | struct inode * dir, |
dir | 932 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
dir | 937 | fs/umsdos/namei.c | umsdos_lockcreate(dir); |
dir | 938 | fs/umsdos/namei.c | ret = umsdos_findentry(dir,&info,1); |
dir | 942 | fs/umsdos/namei.c | if ( !(dir->i_mode & S_ISVTX) || fsuser() || |
dir | 944 | fs/umsdos/namei.c | current->fsuid == dir->i_uid ) { |
dir | 959 | fs/umsdos/namei.c | dir->i_count++; |
dir | 960 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&inode); |
dir | 984 | fs/umsdos/namei.c | ret = umsdos_delentry (dir,&info,0); |
dir | 987 | fs/umsdos/namei.c | dir->i_count++; |
dir | 988 | fs/umsdos/namei.c | ret = msdos_unlink_umsdos (dir,info.fake.fname |
dir | 1000 | fs/umsdos/namei.c | umsdos_unlockcreate(dir); |
dir | 1003 | fs/umsdos/namei.c | iput (dir); |
dir | 64 | fs/umsdos/rdir.c | struct inode *dir, |
dir | 73 | fs/umsdos/rdir.c | && dir == dir->i_sb->s_mounted |
dir | 74 | fs/umsdos/rdir.c | && dir == pseudo_root->i_sb->s_mounted; |
dir | 75 | fs/umsdos/rdir.c | return msdos_readdir(dir,filp,&bufk,rdir_filldir); |
dir | 84 | fs/umsdos/rdir.c | struct inode *dir, |
dir | 96 | fs/umsdos/rdir.c | && dir == dir->i_sb->s_mounted |
dir | 97 | fs/umsdos/rdir.c | && dir == pseudo_root->i_sb->s_mounted){ |
dir | 106 | fs/umsdos/rdir.c | ret = umsdos_real_lookup (dir,name,len,result); |
dir | 124 | fs/umsdos/rdir.c | iput (dir); |
dir | 128 | fs/umsdos/rdir.c | struct inode *dir, |
dir | 133 | fs/umsdos/rdir.c | return umsdos_rlookup_x(dir,name,len,result,0); |
dir | 137 | fs/umsdos/rdir.c | struct inode *dir, |
dir | 156 | fs/umsdos/rdir.c | if (umsdos_is_pseudodos(dir,name,len)){ |
dir | 167 | fs/umsdos/rdir.c | umsdos_lockcreate (dir); |
dir | 168 | fs/umsdos/rdir.c | dir->i_count++; |
dir | 169 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
dir | 172 | fs/umsdos/rdir.c | dir->i_count++; |
dir | 173 | fs/umsdos/rdir.c | ret = UMSDOS_rlookup (dir,name,len,&sdir); |
dir | 191 | fs/umsdos/rdir.c | dir->i_count++; |
dir | 192 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
dir | 201 | fs/umsdos/rdir.c | umsdos_unlockcreate (dir); |
dir | 203 | fs/umsdos/rdir.c | iput (dir); |
dir | 52 | fs/umsdos/symlink.c | struct inode * dir, |
dir | 65 | fs/umsdos/symlink.c | if (!dir) { |
dir | 66 | fs/umsdos/symlink.c | dir = current->fs[1].root; |
dir | 67 | fs/umsdos/symlink.c | dir->i_count++; |
dir | 86 | fs/umsdos/symlink.c | ret = open_namei(path,flag,mode,res_inode,dir); |
dir | 88 | fs/umsdos/symlink.c | dir = NULL; |
dir | 97 | fs/umsdos/symlink.c | iput(dir); |
dir | 306 | fs/xiafs/bitmap.c | struct inode * xiafs_new_inode(struct inode * dir) |
dir | 312 | fs/xiafs/bitmap.c | sb = dir->i_sb; |
dir | 313 | fs/xiafs/bitmap.c | if (!dir || !(inode = get_empty_inode())) |
dir | 318 | fs/xiafs/bitmap.c | tmp=get_free_ibit(sb, dir->i_ino); |
dir | 327 | fs/xiafs/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
dir | 116 | fs/xiafs/namei.c | int xiafs_lookup(struct inode * dir, const char * name, int len, |
dir | 124 | fs/xiafs/namei.c | if (!dir) |
dir | 126 | fs/xiafs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 127 | fs/xiafs/namei.c | iput(dir); |
dir | 130 | fs/xiafs/namei.c | if (!(bh = xiafs_find_entry(dir, name, len, &dep, NULL))) { |
dir | 131 | fs/xiafs/namei.c | iput(dir); |
dir | 136 | fs/xiafs/namei.c | if (!(*result = iget(dir->i_sb, ino))) { |
dir | 137 | fs/xiafs/namei.c | iput(dir); |
dir | 140 | fs/xiafs/namei.c | iput(dir); |
dir | 154 | fs/xiafs/namei.c | static struct buffer_head * xiafs_add_entry(struct inode * dir, |
dir | 163 | fs/xiafs/namei.c | if (!dir || !namelen || namelen > _XIAFS_NAME_LEN) |
dir | 166 | fs/xiafs/namei.c | if (dir->i_size & (XIAFS_ZSIZE(dir->i_sb) - 1)) { |
dir | 172 | fs/xiafs/namei.c | bh = xiafs_bread(dir, pos >> XIAFS_ZSIZE_BITS(dir->i_sb), pos ? 1:0); |
dir | 187 | fs/xiafs/namei.c | while (offset < XIAFS_ZSIZE(dir->i_sb)) { |
dir | 188 | fs/xiafs/namei.c | if (pos >= dir->i_size) { |
dir | 192 | fs/xiafs/namei.c | de->d_rec_len=XIAFS_ZSIZE(dir->i_sb); |
dir | 193 | fs/xiafs/namei.c | dir->i_size += XIAFS_ZSIZE(dir->i_sb); |
dir | 194 | fs/xiafs/namei.c | dir->i_dirt = 1; |
dir | 196 | fs/xiafs/namei.c | if (de->d_ino > dir->i_sb->u.xiafs_sb.s_ninodes || |
dir | 198 | fs/xiafs/namei.c | (char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(dir->i_sb) || |
dir | 220 | fs/xiafs/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 221 | fs/xiafs/namei.c | dir->i_dirt = 1; |
dir | 236 | fs/xiafs/namei.c | if (offset > XIAFS_ZSIZE(dir->i_sb)) { |
dir | 240 | fs/xiafs/namei.c | pos+=XIAFS_ZSIZE(dir->i_sb); |
dir | 245 | fs/xiafs/namei.c | int xiafs_create(struct inode * dir, const char * name, int len, int mode, |
dir | 253 | fs/xiafs/namei.c | if (!dir) |
dir | 255 | fs/xiafs/namei.c | inode = xiafs_new_inode(dir); |
dir | 257 | fs/xiafs/namei.c | iput(dir); |
dir | 263 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
dir | 268 | fs/xiafs/namei.c | iput(dir); |
dir | 274 | fs/xiafs/namei.c | iput(dir); |
dir | 279 | fs/xiafs/namei.c | int xiafs_mknod(struct inode *dir, const char *name, int len, int mode, int rdev) |
dir | 285 | fs/xiafs/namei.c | if (!dir) |
dir | 287 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
dir | 290 | fs/xiafs/namei.c | iput(dir); |
dir | 293 | fs/xiafs/namei.c | inode = xiafs_new_inode(dir); |
dir | 295 | fs/xiafs/namei.c | iput(dir); |
dir | 305 | fs/xiafs/namei.c | if (dir->i_mode & S_ISGID) |
dir | 320 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
dir | 325 | fs/xiafs/namei.c | iput(dir); |
dir | 331 | fs/xiafs/namei.c | iput(dir); |
dir | 336 | fs/xiafs/namei.c | int xiafs_mkdir(struct inode * dir, const char * name, int len, int mode) |
dir | 342 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
dir | 345 | fs/xiafs/namei.c | iput(dir); |
dir | 348 | fs/xiafs/namei.c | if (dir->i_nlink > 64000) { |
dir | 349 | fs/xiafs/namei.c | iput(dir); |
dir | 352 | fs/xiafs/namei.c | inode = xiafs_new_inode(dir); |
dir | 354 | fs/xiafs/namei.c | iput(dir); |
dir | 358 | fs/xiafs/namei.c | inode->i_size = XIAFS_ZSIZE(dir->i_sb); |
dir | 363 | fs/xiafs/namei.c | iput(dir); |
dir | 375 | fs/xiafs/namei.c | de->d_ino = dir->i_ino; |
dir | 378 | fs/xiafs/namei.c | de->d_rec_len=XIAFS_ZSIZE(dir->i_sb)-12; |
dir | 383 | fs/xiafs/namei.c | if (dir->i_mode & S_ISGID) |
dir | 386 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
dir | 388 | fs/xiafs/namei.c | iput(dir); |
dir | 395 | fs/xiafs/namei.c | dir->i_nlink++; |
dir | 396 | fs/xiafs/namei.c | dir->i_dirt = 1; |
dir | 397 | fs/xiafs/namei.c | iput(dir); |
dir | 486 | fs/xiafs/namei.c | int xiafs_rmdir(struct inode * dir, const char * name, int len) |
dir | 494 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
dir | 499 | fs/xiafs/namei.c | if (!(inode = iget(dir->i_sb, de->d_ino))) |
dir | 501 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 503 | fs/xiafs/namei.c | current->fsuid != dir->i_uid) |
dir | 505 | fs/xiafs/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 507 | fs/xiafs/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 527 | fs/xiafs/namei.c | dir->i_nlink--; |
dir | 528 | fs/xiafs/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 529 | fs/xiafs/namei.c | dir->i_dirt=1; |
dir | 532 | fs/xiafs/namei.c | iput(dir); |
dir | 538 | fs/xiafs/namei.c | int xiafs_unlink(struct inode * dir, const char * name, int len) |
dir | 548 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
dir | 551 | fs/xiafs/namei.c | if (!(inode = iget(dir->i_sb, de->d_ino))) |
dir | 563 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 565 | fs/xiafs/namei.c | current->fsuid != dir->i_uid) |
dir | 573 | fs/xiafs/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 574 | fs/xiafs/namei.c | dir->i_dirt = 1; |
dir | 581 | fs/xiafs/namei.c | iput(dir); |
dir | 585 | fs/xiafs/namei.c | int xiafs_symlink(struct inode * dir, const char * name, |
dir | 594 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len, &de, NULL); |
dir | 597 | fs/xiafs/namei.c | iput(dir); |
dir | 600 | fs/xiafs/namei.c | if (!(inode = xiafs_new_inode(dir))) { |
dir | 601 | fs/xiafs/namei.c | iput(dir); |
dir | 608 | fs/xiafs/namei.c | iput(dir); |
dir | 621 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
dir | 626 | fs/xiafs/namei.c | iput(dir); |
dir | 632 | fs/xiafs/namei.c | iput(dir); |
dir | 637 | fs/xiafs/namei.c | int xiafs_link(struct inode * oldinode, struct inode * dir, |
dir | 645 | fs/xiafs/namei.c | iput(dir); |
dir | 650 | fs/xiafs/namei.c | iput(dir); |
dir | 653 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, NULL); |
dir | 656 | fs/xiafs/namei.c | iput(dir); |
dir | 660 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
dir | 662 | fs/xiafs/namei.c | iput(dir); |
dir | 669 | fs/xiafs/namei.c | iput(dir); |
dir | 77 | fs/xiafs/symlink.c | static int xiafs_follow_link(struct inode * dir, struct inode * inode, |
dir | 84 | fs/xiafs/symlink.c | if (!dir) { |
dir | 85 | fs/xiafs/symlink.c | dir = current->fs->root; |
dir | 86 | fs/xiafs/symlink.c | dir->i_count++; |
dir | 89 | fs/xiafs/symlink.c | iput(dir); |
dir | 93 | fs/xiafs/symlink.c | iput(dir); |
dir | 103 | fs/xiafs/symlink.c | iput(dir); |
dir | 108 | fs/xiafs/symlink.c | iput(dir); |
dir | 113 | fs/xiafs/symlink.c | error = open_namei(bh->b_data,flag,mode,res_inode,dir); |
dir | 39 | include/asm-alpha/ioctl.h | #define _IOC(dir,type,nr,size) \ |
dir | 40 | include/asm-alpha/ioctl.h | (((dir) << _IOC_DIRSHIFT) | \ |
dir | 317 | include/asm-alpha/pgtable.h | extern inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address) |
dir | 319 | include/asm-alpha/pgtable.h | return (pmd_t *) pgd_page(*dir) + ((address >> PMD_SHIFT) & (PTRS_PER_PAGE - 1)); |
dir | 323 | include/asm-alpha/pgtable.h | extern inline pte_t * pte_offset(pmd_t * dir, unsigned long address) |
dir | 325 | include/asm-alpha/pgtable.h | return (pte_t *) pmd_page(*dir) + ((address >> PAGE_SHIFT) & (PTRS_PER_PAGE - 1)); |
dir | 49 | include/asm-i386/ioctl.h | #define _IOC(dir,type,nr,size) \ |
dir | 50 | include/asm-i386/ioctl.h | (((dir) << _IOC_DIRSHIFT) | \ |
dir | 312 | include/asm-i386/pgtable.h | extern inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address) |
dir | 314 | include/asm-i386/pgtable.h | return (pmd_t *) dir; |
dir | 318 | include/asm-i386/pgtable.h | extern inline pte_t * pte_offset(pmd_t * dir, unsigned long address) |
dir | 320 | include/asm-i386/pgtable.h | return (pte_t *) pmd_page(*dir) + ((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)); |
dir | 55 | include/asm-mips/ioctl.h | #define _IOC(dir,type,nr,size) \ |
dir | 56 | include/asm-mips/ioctl.h | (((dir) << _IOC_DIRSHIFT) | \ |
dir | 350 | include/asm-mips/pgtable.h | extern inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address) |
dir | 352 | include/asm-mips/pgtable.h | return (pmd_t *) dir; |
dir | 356 | include/asm-mips/pgtable.h | extern inline pte_t * pte_offset(pmd_t * dir, unsigned long address) |
dir | 358 | include/asm-mips/pgtable.h | return (pte_t *) (pmd_page(*dir) + (PT_OFFSET - PAGE_OFFSET)) + |
dir | 34 | include/asm-ppc/ioctl.h | #define _IOC(dir,type,nr,size) \ |
dir | 35 | include/asm-ppc/ioctl.h | (((dir) << _IOC_DIRSHIFT) | \ |
dir | 294 | include/asm-ppc/pgtable.h | extern inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address) |
dir | 296 | include/asm-ppc/pgtable.h | return (pmd_t *) dir; |
dir | 300 | include/asm-ppc/pgtable.h | extern inline pte_t * pte_offset(pmd_t * dir, unsigned long address) |
dir | 302 | include/asm-ppc/pgtable.h | return (pte_t *) pmd_page(*dir) + ((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)); |
dir | 27 | include/asm-sparc/ioctl.h | #define _IOC(dir,type,nr,size) \ |
dir | 28 | include/asm-sparc/ioctl.h | (((dir) << _IOC_DIRSHIFT) | \ |
dir | 65 | include/linux/ext_fs.h | extern int ext_lookup(struct inode * dir,const char * name, int len, |
dir | 67 | include/linux/ext_fs.h | extern int ext_create(struct inode * dir,const char * name, int len, int mode, |
dir | 69 | include/linux/ext_fs.h | extern int ext_mkdir(struct inode * dir, const char * name, int len, int mode); |
dir | 70 | include/linux/ext_fs.h | extern int ext_rmdir(struct inode * dir, const char * name, int len); |
dir | 71 | include/linux/ext_fs.h | extern int ext_unlink(struct inode * dir, const char * name, int len); |
dir | 74 | include/linux/ext_fs.h | extern int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
dir | 75 | include/linux/ext_fs.h | extern int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
dir | 78 | include/linux/ext_fs.h | extern struct inode * ext_new_inode(const struct inode * dir); |
dir | 169 | include/linux/iso_fs.h | extern int isofs_lookup(struct inode * dir,const char * name, int len, |
dir | 91 | include/linux/minix_fs.h | extern int minix_lookup(struct inode * dir,const char * name, int len, |
dir | 93 | include/linux/minix_fs.h | extern int minix_create(struct inode * dir,const char * name, int len, int mode, |
dir | 95 | include/linux/minix_fs.h | extern int minix_mkdir(struct inode * dir, const char * name, int len, int mode); |
dir | 96 | include/linux/minix_fs.h | extern int minix_rmdir(struct inode * dir, const char * name, int len); |
dir | 97 | include/linux/minix_fs.h | extern int minix_unlink(struct inode * dir, const char * name, int len); |
dir | 100 | include/linux/minix_fs.h | extern int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
dir | 101 | include/linux/minix_fs.h | extern int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
dir | 104 | include/linux/minix_fs.h | extern struct inode * minix_new_inode(const struct inode * dir); |
dir | 129 | include/linux/msdos_fs.h | extern int msdos_get_entry(struct inode *dir,loff_t *pos,struct buffer_head **bh, |
dir | 131 | include/linux/msdos_fs.h | extern int msdos_scan(struct inode *dir,const char *name,struct buffer_head **res_bh, |
dir | 133 | include/linux/msdos_fs.h | extern int msdos_parent_ino(struct inode *dir,int locked); |
dir | 134 | include/linux/msdos_fs.h | extern int msdos_subdirs(struct inode *dir); |
dir | 150 | include/linux/msdos_fs.h | extern int msdos_lookup(struct inode *dir,const char *name,int len, |
dir | 152 | include/linux/msdos_fs.h | extern int msdos_create(struct inode *dir,const char *name,int len,int mode, |
dir | 154 | include/linux/msdos_fs.h | extern int msdos_mkdir(struct inode *dir,const char *name,int len,int mode); |
dir | 155 | include/linux/msdos_fs.h | extern int msdos_rmdir(struct inode *dir,const char *name,int len); |
dir | 156 | include/linux/msdos_fs.h | extern int msdos_unlink(struct inode *dir,const char *name,int len); |
dir | 157 | include/linux/msdos_fs.h | extern int msdos_unlink_umsdos(struct inode *dir,const char *name,int len); |
dir | 29 | include/linux/ncp_fs_i.h | struct ncp_inode_info *dir; |
dir | 56 | include/linux/nfs_fs.h | extern int nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir, |
dir | 68 | include/linux/nfs_fs.h | extern int nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir, |
dir | 71 | include/linux/nfs_fs.h | extern int nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir, |
dir | 77 | include/linux/nfs_fs.h | struct nfs_fh *dir, const char *name); |
dir | 78 | include/linux/nfs_fs.h | extern int nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir, |
dir | 80 | include/linux/nfs_fs.h | extern int nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir, |
dir | 83 | include/linux/nfs_fs.h | extern int nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir, |
dir | 145 | include/linux/smb_fs.h | int smb_proc_readdir(struct smb_server *server, struct inode *dir, |
dir | 28 | include/linux/smb_fs_i.h | struct smb_inode_info *dir; |
dir | 364 | include/linux/sysv_fs.h | extern int sysv_lookup(struct inode * dir,const char * name, int len, |
dir | 366 | include/linux/sysv_fs.h | extern int sysv_create(struct inode * dir,const char * name, int len, int mode, |
dir | 368 | include/linux/sysv_fs.h | extern int sysv_mkdir(struct inode * dir, const char * name, int len, int mode); |
dir | 369 | include/linux/sysv_fs.h | extern int sysv_rmdir(struct inode * dir, const char * name, int len); |
dir | 370 | include/linux/sysv_fs.h | extern int sysv_unlink(struct inode * dir, const char * name, int len); |
dir | 373 | include/linux/sysv_fs.h | extern int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
dir | 374 | include/linux/sysv_fs.h | extern int sysv_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
dir | 377 | include/linux/sysv_fs.h | extern struct inode * sysv_new_inode(const struct inode * dir); |
dir | 67 | include/linux/xia_fs.h | extern int xiafs_lookup(struct inode * dir,const char * name, int len, |
dir | 69 | include/linux/xia_fs.h | extern int xiafs_create(struct inode * dir,const char * name, int len, int mode, |
dir | 71 | include/linux/xia_fs.h | extern int xiafs_mkdir(struct inode * dir, const char * name, int len, int mode); |
dir | 72 | include/linux/xia_fs.h | extern int xiafs_rmdir(struct inode * dir, const char * name, int len); |
dir | 73 | include/linux/xia_fs.h | extern int xiafs_unlink(struct inode * dir, const char * name, int len); |
dir | 76 | include/linux/xia_fs.h | extern int xiafs_link(struct inode * oldinode, struct inode * dir, |
dir | 78 | include/linux/xia_fs.h | extern int xiafs_mknod(struct inode * dir, const char * name, int len, |
dir | 83 | include/linux/xia_fs.h | extern struct inode * xiafs_new_inode(struct inode * dir); |
dir | 577 | mm/filemap.c | pgd_t * dir; |
dir | 581 | mm/filemap.c | dir = pgd_offset(current->mm, address); |
dir | 583 | mm/filemap.c | error |= filemap_sync_pmd_range(dir, address, end - address, vma, flags); |
dir | 585 | mm/filemap.c | dir++; |
dir | 97 | mm/memory.c | static inline void free_one_pmd(pmd_t * dir) |
dir | 101 | mm/memory.c | if (pmd_none(*dir)) |
dir | 103 | mm/memory.c | if (pmd_bad(*dir)) { |
dir | 104 | mm/memory.c | printk("free_one_pmd: bad directory entry %08lx\n", pmd_val(*dir)); |
dir | 105 | mm/memory.c | pmd_clear(dir); |
dir | 108 | mm/memory.c | pte = pte_offset(dir, 0); |
dir | 109 | mm/memory.c | pmd_clear(dir); |
dir | 113 | mm/memory.c | static inline void free_one_pgd(pgd_t * dir) |
dir | 117 | mm/memory.c | if (pgd_none(*dir)) |
dir | 119 | mm/memory.c | if (pgd_bad(*dir)) { |
dir | 120 | mm/memory.c | printk("free_one_pgd: bad directory entry %08lx\n", pgd_val(*dir)); |
dir | 121 | mm/memory.c | pgd_clear(dir); |
dir | 124 | mm/memory.c | pmd = pmd_offset(dir, 0); |
dir | 125 | mm/memory.c | pgd_clear(dir); |
dir | 352 | mm/memory.c | static inline void zap_pmd_range(pgd_t * dir, unsigned long address, unsigned long size) |
dir | 357 | mm/memory.c | if (pgd_none(*dir)) |
dir | 359 | mm/memory.c | if (pgd_bad(*dir)) { |
dir | 360 | mm/memory.c | printk("zap_pmd_range: bad pgd (%08lx)\n", pgd_val(*dir)); |
dir | 361 | mm/memory.c | pgd_clear(dir); |
dir | 364 | mm/memory.c | pmd = pmd_offset(dir, address); |
dir | 381 | mm/memory.c | pgd_t * dir; |
dir | 384 | mm/memory.c | dir = pgd_offset(mm, address); |
dir | 386 | mm/memory.c | zap_pmd_range(dir, address, end - address); |
dir | 388 | mm/memory.c | dir++; |
dir | 433 | mm/memory.c | pgd_t * dir; |
dir | 438 | mm/memory.c | dir = pgd_offset(current->mm, address); |
dir | 440 | mm/memory.c | pmd_t *pmd = pmd_alloc(dir, address); |
dir | 448 | mm/memory.c | dir++; |
dir | 504 | mm/memory.c | pgd_t * dir; |
dir | 508 | mm/memory.c | dir = pgd_offset(current->mm, from); |
dir | 510 | mm/memory.c | pmd_t *pmd = pmd_alloc(dir, from); |
dir | 518 | mm/memory.c | dir++; |
dir | 74 | mm/mprotect.c | pgd_t *dir; |
dir | 77 | mm/mprotect.c | dir = pgd_offset(current->mm, start); |
dir | 79 | mm/mprotect.c | change_pmd_range(dir, start, end - start, newprot); |
dir | 81 | mm/mprotect.c | dir++; |
dir | 128 | mm/swapfile.c | pte_t *dir, unsigned int type, unsigned long page) |
dir | 130 | mm/swapfile.c | pte_t pte = *dir; |
dir | 143 | mm/swapfile.c | set_pte(dir, pte_mkdirty(pte)); |
dir | 149 | mm/swapfile.c | if (pte_val(*dir) != pte_val(pte)) { |
dir | 153 | mm/swapfile.c | set_pte(dir, pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot)))); |
dir | 159 | mm/swapfile.c | static inline int unuse_pmd(struct vm_area_struct * vma, pmd_t *dir, |
dir | 166 | mm/swapfile.c | if (pmd_none(*dir)) |
dir | 168 | mm/swapfile.c | if (pmd_bad(*dir)) { |
dir | 169 | mm/swapfile.c | printk("unuse_pmd: bad pmd (%08lx)\n", pmd_val(*dir)); |
dir | 170 | mm/swapfile.c | pmd_clear(dir); |
dir | 173 | mm/swapfile.c | pte = pte_offset(dir, address); |
dir | 188 | mm/swapfile.c | static inline int unuse_pgd(struct vm_area_struct * vma, pgd_t *dir, |
dir | 195 | mm/swapfile.c | if (pgd_none(*dir)) |
dir | 197 | mm/swapfile.c | if (pgd_bad(*dir)) { |
dir | 198 | mm/swapfile.c | printk("unuse_pgd: bad pgd (%08lx)\n", pgd_val(*dir)); |
dir | 199 | mm/swapfile.c | pgd_clear(dir); |
dir | 202 | mm/swapfile.c | pmd = pmd_offset(dir, address); |
dir | 73 | mm/vmalloc.c | static inline void free_area_pmd(pgd_t * dir, unsigned long address, unsigned long size) |
dir | 78 | mm/vmalloc.c | if (pgd_none(*dir)) |
dir | 80 | mm/vmalloc.c | if (pgd_bad(*dir)) { |
dir | 81 | mm/vmalloc.c | printk("free_area_pmd: bad pgd (%08lx)\n", pgd_val(*dir)); |
dir | 82 | mm/vmalloc.c | pgd_clear(dir); |
dir | 85 | mm/vmalloc.c | pmd = pmd_offset(dir, address); |
dir | 99 | mm/vmalloc.c | pgd_t * dir; |
dir | 102 | mm/vmalloc.c | dir = pgd_offset(&init_mm, address); |
dir | 104 | mm/vmalloc.c | free_area_pmd(dir, address, end - address); |
dir | 106 | mm/vmalloc.c | dir++; |
dir | 155 | mm/vmalloc.c | pgd_t * dir; |
dir | 158 | mm/vmalloc.c | dir = pgd_offset(&init_mm, address); |
dir | 160 | mm/vmalloc.c | pmd_t *pmd = pmd_alloc_kernel(dir, address); |
dir | 165 | mm/vmalloc.c | set_pgdir(address, *dir); |
dir | 167 | mm/vmalloc.c | dir++; |
dir | 215 | mm/vmalloc.c | pgd_t * dir; |
dir | 219 | mm/vmalloc.c | dir = pgd_offset(&init_mm, address); |
dir | 221 | mm/vmalloc.c | pmd_t *pmd = pmd_alloc_kernel(dir, address); |
dir | 226 | mm/vmalloc.c | set_pgdir(address, *dir); |
dir | 228 | mm/vmalloc.c | dir++; |
dir | 155 | mm/vmscan.c | pmd_t *dir, unsigned long address, unsigned long end, unsigned long limit) |
dir | 160 | mm/vmscan.c | if (pmd_none(*dir)) |
dir | 162 | mm/vmscan.c | if (pmd_bad(*dir)) { |
dir | 163 | mm/vmscan.c | printk("swap_out_pmd: bad pmd (%08lx)\n", pmd_val(*dir)); |
dir | 164 | mm/vmscan.c | pmd_clear(dir); |
dir | 168 | mm/vmscan.c | pte = pte_offset(dir, address); |
dir | 187 | mm/vmscan.c | pgd_t *dir, unsigned long address, unsigned long end, unsigned long limit) |
dir | 192 | mm/vmscan.c | if (pgd_none(*dir)) |
dir | 194 | mm/vmscan.c | if (pgd_bad(*dir)) { |
dir | 195 | mm/vmscan.c | printk("swap_out_pgd: bad pgd (%08lx)\n", pgd_val(*dir)); |
dir | 196 | mm/vmscan.c | pgd_clear(dir); |
dir | 200 | mm/vmscan.c | pmd = pmd_offset(dir, address); |