tag | line | file | source code |
dir | 343 | drivers/scsi/aha1740.c | ecb[ecbno].dir= direction; |
dir | 124 | drivers/scsi/aha1740.h | dir:1, /* Direction of transfer 1 = datain */ |
dir | 723 | drivers/scsi/buslogic.c | ccb[mbo].dir = direction; |
dir | 166 | drivers/scsi/buslogic.h | unsigned char dir; |
dir | 45 | fs/dcache.c | unsigned long dir; |
dir | 73 | fs/dcache.c | #define hash_fn(dev,dir,namehash) (((dev) ^ (dir) ^ (namehash)) % DCACHE_HASH_QUEUES) |
dir | 133 | fs/dcache.c | static 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->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->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 | 122 | fs/ext/namei.c | dir->i_dev, dir->i_ino, offset, de->rec_len, de->name_len); |
dir | 132 | fs/ext/namei.c | if (offset + de->rec_len < dir->i_size && |
dir | 149 | fs/ext/namei.c | int ext_lookup(struct inode * dir,const char * name, int len, |
dir | 157 | fs/ext/namei.c | if (!dir) |
dir | 159 | fs/ext/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 160 | fs/ext/namei.c | iput(dir); |
dir | 163 | fs/ext/namei.c | if (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) { |
dir | 164 | fs/ext/namei.c | iput(dir); |
dir | 169 | fs/ext/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 170 | fs/ext/namei.c | iput(dir); |
dir | 173 | fs/ext/namei.c | iput(dir); |
dir | 187 | fs/ext/namei.c | static struct buffer_head * ext_add_entry(struct inode * dir, |
dir | 197 | fs/ext/namei.c | if (!dir) |
dir | 208 | fs/ext/namei.c | bh = ext_bread(dir,0,0); |
dir | 215 | fs/ext/namei.c | if ((char *)de >= BLOCK_SIZE+bh->b_data && offset < dir->i_size) { |
dir | 221 | fs/ext/namei.c | bh = ext_bread(dir,offset>>BLOCK_SIZE_BITS,0); |
dir | 226 | fs/ext/namei.c | if (offset >= dir->i_size) { |
dir | 239 | fs/ext/namei.c | dir->i_size += de->rec_len; |
dir | 240 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 242 | fs/ext/namei.c | dir->i_ctime = CURRENT_TIME; |
dir | 251 | fs/ext/namei.c | bh = ext_bread(dir,offset>>BLOCK_SIZE_BITS,1); |
dir | 259 | fs/ext/namei.c | dir->i_size += de->rec_len; |
dir | 260 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 262 | fs/ext/namei.c | dir->i_ctime = CURRENT_TIME; |
dir | 270 | fs/ext/namei.c | dir->i_dev, dir->i_ino, offset, de->rec_len, de->name_len); |
dir | 287 | fs/ext/namei.c | dir->i_mtime = dir->i_ctime = CURRENT_TIME; |
dir | 302 | fs/ext/namei.c | int ext_create(struct inode * dir,const char * name, int len, int mode, |
dir | 310 | fs/ext/namei.c | if (!dir) |
dir | 312 | fs/ext/namei.c | inode = ext_new_inode(dir); |
dir | 314 | fs/ext/namei.c | iput(dir); |
dir | 320 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 325 | fs/ext/namei.c | iput(dir); |
dir | 331 | fs/ext/namei.c | iput(dir); |
dir | 336 | fs/ext/namei.c | int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
dir | 342 | fs/ext/namei.c | if (!dir) |
dir | 344 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
dir | 347 | fs/ext/namei.c | iput(dir); |
dir | 350 | fs/ext/namei.c | inode = ext_new_inode(dir); |
dir | 352 | fs/ext/namei.c | iput(dir); |
dir | 362 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
dir | 379 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 384 | fs/ext/namei.c | iput(dir); |
dir | 390 | fs/ext/namei.c | iput(dir); |
dir | 395 | fs/ext/namei.c | int ext_mkdir(struct inode * dir, const char * name, int len, int mode) |
dir | 401 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
dir | 404 | fs/ext/namei.c | iput(dir); |
dir | 407 | fs/ext/namei.c | inode = ext_new_inode(dir); |
dir | 409 | fs/ext/namei.c | iput(dir); |
dir | 423 | fs/ext/namei.c | iput(dir); |
dir | 435 | fs/ext/namei.c | de->inode = dir->i_ino; |
dir | 443 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
dir | 446 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 448 | fs/ext/namei.c | iput(dir); |
dir | 455 | fs/ext/namei.c | dir->i_nlink++; |
dir | 456 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 457 | fs/ext/namei.c | iput(dir); |
dir | 523 | fs/ext/namei.c | int ext_rmdir(struct inode * dir, const char * name, int len) |
dir | 531 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
dir | 536 | fs/ext/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 538 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 540 | fs/ext/namei.c | current->fsuid != dir->i_uid) |
dir | 542 | fs/ext/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 544 | fs/ext/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 566 | fs/ext/namei.c | dir->i_nlink--; |
dir | 567 | fs/ext/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 568 | fs/ext/namei.c | dir->i_dirt=1; |
dir | 571 | fs/ext/namei.c | iput(dir); |
dir | 577 | fs/ext/namei.c | int ext_unlink(struct inode * dir, const char * name, int len) |
dir | 586 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
dir | 589 | fs/ext/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 592 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 594 | fs/ext/namei.c | current->fsuid != dir->i_uid) |
dir | 610 | fs/ext/namei.c | dir->i_ctime = dir->i_mtime = inode->i_ctime; |
dir | 611 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 616 | fs/ext/namei.c | iput(dir); |
dir | 620 | fs/ext/namei.c | int ext_symlink(struct inode * dir, const char * name, int len, const char * symname) |
dir | 628 | fs/ext/namei.c | if (!(inode = ext_new_inode(dir))) { |
dir | 629 | fs/ext/namei.c | iput(dir); |
dir | 636 | fs/ext/namei.c | iput(dir); |
dir | 650 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
dir | 656 | fs/ext/namei.c | iput(dir); |
dir | 659 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 664 | fs/ext/namei.c | iput(dir); |
dir | 670 | fs/ext/namei.c | iput(dir); |
dir | 675 | fs/ext/namei.c | int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
dir | 682 | fs/ext/namei.c | iput(dir); |
dir | 687 | fs/ext/namei.c | iput(dir); |
dir | 690 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
dir | 693 | fs/ext/namei.c | iput(dir); |
dir | 697 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 699 | fs/ext/namei.c | iput(dir); |
dir | 706 | fs/ext/namei.c | iput(dir); |
dir | 47 | fs/ext/symlink.c | static int ext_follow_link(struct inode * dir, struct inode * inode, |
dir | 54 | fs/ext/symlink.c | if (!dir) { |
dir | 55 | fs/ext/symlink.c | dir = current->fs->root; |
dir | 56 | fs/ext/symlink.c | dir->i_count++; |
dir | 59 | fs/ext/symlink.c | iput(dir); |
dir | 63 | fs/ext/symlink.c | iput(dir); |
dir | 68 | fs/ext/symlink.c | iput(dir); |
dir | 74 | fs/ext/symlink.c | iput(dir); |
dir | 79 | 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 (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 directory entry: %s\n" |
dir | 305 | fs/ext2/ialloc.c | struct inode * ext2_new_inode (const struct inode * dir, int mode) |
dir | 317 | fs/ext2/ialloc.c | if (!dir || !(inode = get_empty_inode ())) |
dir | 319 | fs/ext2/ialloc.c | sb = dir->i_sb; |
dir | 363 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group; |
dir | 388 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group + 1; |
dir | 455 | fs/ext2/ialloc.c | inode->i_gid = dir->i_gid; |
dir | 456 | fs/ext2/ialloc.c | else if (dir->i_mode & S_ISGID) { |
dir | 457 | fs/ext2/ialloc.c | inode->i_gid = dir->i_gid; |
dir | 467 | fs/ext2/ialloc.c | inode->u.ext2_i.i_flags = dir->u.ext2_i.i_flags; |
dir | 67 | fs/ext2/namei.c | static struct buffer_head * ext2_find_entry (struct inode * dir, |
dir | 78 | fs/ext2/namei.c | if (!dir) |
dir | 80 | fs/ext2/namei.c | sb = dir->i_sb; |
dir | 95 | fs/ext2/namei.c | if ((block << EXT2_BLOCK_SIZE_BITS (sb)) >= dir->i_size) |
dir | 97 | fs/ext2/namei.c | bh = ext2_getblk (dir, block, 0, &err); |
dir | 105 | fs/ext2/namei.c | while (offset < dir->i_size) { |
dir | 129 | fs/ext2/namei.c | if (!ext2_check_dir_entry ("ext2_find_entry", dir, |
dir | 147 | fs/ext2/namei.c | dir->i_size) |
dir | 150 | fs/ext2/namei.c | bh = ext2_getblk (dir, block + NAMEI_RA_SIZE, 0, &err); |
dir | 162 | fs/ext2/namei.c | int ext2_lookup (struct inode * dir, const char * name, int len, |
dir | 170 | fs/ext2/namei.c | if (!dir) |
dir | 172 | fs/ext2/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 173 | fs/ext2/namei.c | iput (dir); |
dir | 176 | fs/ext2/namei.c | if (dcache_lookup(dir, name, len, &ino)) { |
dir | 178 | fs/ext2/namei.c | iput(dir); |
dir | 181 | fs/ext2/namei.c | if (!(*result = iget (dir->i_sb, ino))) { |
dir | 182 | fs/ext2/namei.c | iput (dir); |
dir | 185 | fs/ext2/namei.c | iput (dir); |
dir | 188 | fs/ext2/namei.c | ino = dir->i_version; |
dir | 189 | fs/ext2/namei.c | if (!(bh = ext2_find_entry (dir, name, len, &de))) { |
dir | 190 | fs/ext2/namei.c | if (ino == dir->i_version) |
dir | 191 | fs/ext2/namei.c | dcache_add(dir, name, len, 0); |
dir | 192 | fs/ext2/namei.c | iput (dir); |
dir | 196 | fs/ext2/namei.c | dcache_add(dir, name, len, ino); |
dir | 198 | fs/ext2/namei.c | if (!(*result = iget (dir->i_sb, ino))) { |
dir | 199 | fs/ext2/namei.c | iput (dir); |
dir | 202 | fs/ext2/namei.c | iput (dir); |
dir | 216 | fs/ext2/namei.c | static struct buffer_head * ext2_add_entry (struct inode * dir, |
dir | 229 | fs/ext2/namei.c | if (!dir) |
dir | 231 | fs/ext2/namei.c | sb = dir->i_sb; |
dir | 244 | fs/ext2/namei.c | if (dir->i_size == 0) |
dir | 249 | fs/ext2/namei.c | bh = ext2_bread (dir, 0, 0, err); |
dir | 260 | fs/ext2/namei.c | bh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 1, err); |
dir | 263 | fs/ext2/namei.c | if (dir->i_size <= offset) { |
dir | 264 | fs/ext2/namei.c | if (dir->i_size == 0) { |
dir | 274 | fs/ext2/namei.c | dir->i_size = offset + sb->s_blocksize; |
dir | 275 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 283 | fs/ext2/namei.c | if (!ext2_check_dir_entry ("ext2_add_entry", dir, de, bh, |
dir | 319 | fs/ext2/namei.c | dir->i_mtime = dir->i_ctime = CURRENT_TIME; |
dir | 320 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 321 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 338 | fs/ext2/namei.c | static int ext2_delete_entry (struct ext2_dir_entry * dir, |
dir | 351 | fs/ext2/namei.c | if (de == dir) { |
dir | 353 | fs/ext2/namei.c | pde->rec_len += dir->rec_len; |
dir | 354 | fs/ext2/namei.c | dir->inode = 0; |
dir | 364 | fs/ext2/namei.c | int ext2_create (struct inode * dir,const char * name, int len, int mode, |
dir | 373 | fs/ext2/namei.c | if (!dir) |
dir | 375 | fs/ext2/namei.c | inode = ext2_new_inode (dir, mode); |
dir | 377 | fs/ext2/namei.c | iput (dir); |
dir | 383 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 388 | fs/ext2/namei.c | iput (dir); |
dir | 392 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 393 | fs/ext2/namei.c | dcache_add(dir, de->name, de->name_len, de->inode); |
dir | 395 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 400 | fs/ext2/namei.c | iput (dir); |
dir | 405 | fs/ext2/namei.c | int ext2_mknod (struct inode * dir, const char * name, int len, int mode, |
dir | 413 | fs/ext2/namei.c | if (!dir) |
dir | 415 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 418 | fs/ext2/namei.c | iput (dir); |
dir | 421 | fs/ext2/namei.c | inode = ext2_new_inode (dir, mode); |
dir | 423 | fs/ext2/namei.c | iput (dir); |
dir | 433 | fs/ext2/namei.c | if (dir->i_mode & S_ISGID) |
dir | 447 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 452 | fs/ext2/namei.c | iput (dir); |
dir | 456 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 457 | fs/ext2/namei.c | dcache_add(dir, de->name, de->name_len, de->inode); |
dir | 459 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 464 | fs/ext2/namei.c | iput (dir); |
dir | 469 | fs/ext2/namei.c | int ext2_mkdir (struct inode * dir, const char * name, int len, int mode) |
dir | 476 | fs/ext2/namei.c | if (!dir) |
dir | 478 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 481 | fs/ext2/namei.c | iput (dir); |
dir | 484 | fs/ext2/namei.c | if (dir->i_nlink >= EXT2_LINK_MAX) { |
dir | 485 | fs/ext2/namei.c | iput (dir); |
dir | 488 | fs/ext2/namei.c | inode = ext2_new_inode (dir, S_IFDIR); |
dir | 490 | fs/ext2/namei.c | iput (dir); |
dir | 497 | fs/ext2/namei.c | iput (dir); |
dir | 510 | fs/ext2/namei.c | de->inode = dir->i_ino; |
dir | 518 | fs/ext2/namei.c | if (dir->i_mode & S_ISGID) |
dir | 521 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 523 | fs/ext2/namei.c | iput (dir); |
dir | 530 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 531 | fs/ext2/namei.c | dcache_add(dir, de->name, de->name_len, de->inode); |
dir | 533 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 537 | fs/ext2/namei.c | dir->i_nlink++; |
dir | 538 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 539 | fs/ext2/namei.c | iput (dir); |
dir | 599 | fs/ext2/namei.c | int ext2_rmdir (struct inode * dir, const char * name, int len) |
dir | 607 | fs/ext2/namei.c | if (!dir) |
dir | 610 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 615 | fs/ext2/namei.c | if (!(inode = iget (dir->i_sb, de->inode))) |
dir | 617 | fs/ext2/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 626 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 628 | fs/ext2/namei.c | current->fsuid != dir->i_uid) |
dir | 630 | fs/ext2/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 653 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 659 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 670 | fs/ext2/namei.c | dir->i_nlink--; |
dir | 671 | fs/ext2/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 672 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 674 | fs/ext2/namei.c | iput (dir); |
dir | 680 | fs/ext2/namei.c | int ext2_unlink (struct inode * dir, const char * name, int len) |
dir | 688 | fs/ext2/namei.c | if (!dir) |
dir | 692 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 695 | fs/ext2/namei.c | if (!(inode = iget (dir->i_sb, de->inode))) |
dir | 709 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 711 | fs/ext2/namei.c | current->fsuid != dir->i_uid) |
dir | 722 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 724 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 728 | fs/ext2/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 729 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 732 | fs/ext2/namei.c | inode->i_ctime = dir->i_ctime; |
dir | 737 | fs/ext2/namei.c | iput (dir); |
dir | 741 | fs/ext2/namei.c | int ext2_symlink (struct inode * dir, const char * name, int len, |
dir | 752 | fs/ext2/namei.c | if (!(inode = ext2_new_inode (dir, S_IFLNK))) { |
dir | 753 | fs/ext2/namei.c | iput (dir); |
dir | 767 | fs/ext2/namei.c | iput (dir); |
dir | 790 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 796 | fs/ext2/namei.c | iput (dir); |
dir | 799 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 804 | fs/ext2/namei.c | iput (dir); |
dir | 808 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 809 | fs/ext2/namei.c | dcache_add(dir, de->name, de->name_len, de->inode); |
dir | 811 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 816 | fs/ext2/namei.c | iput (dir); |
dir | 821 | fs/ext2/namei.c | int ext2_link (struct inode * oldinode, struct inode * dir, |
dir | 830 | fs/ext2/namei.c | iput (dir); |
dir | 835 | fs/ext2/namei.c | iput (dir); |
dir | 840 | fs/ext2/namei.c | iput (dir); |
dir | 843 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 846 | fs/ext2/namei.c | iput (dir); |
dir | 850 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 852 | fs/ext2/namei.c | iput (dir); |
dir | 857 | fs/ext2/namei.c | dir->i_version = ++event; |
dir | 858 | fs/ext2/namei.c | dcache_add(dir, de->name, de->name_len, de->inode); |
dir | 860 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 865 | fs/ext2/namei.c | iput (dir); |
dir | 51 | fs/ext2/symlink.c | static int ext2_follow_link(struct inode * dir, struct inode * inode, |
dir | 59 | fs/ext2/symlink.c | if (!dir) { |
dir | 60 | fs/ext2/symlink.c | dir = current->fs->root; |
dir | 61 | fs/ext2/symlink.c | dir->i_count++; |
dir | 64 | fs/ext2/symlink.c | iput (dir); |
dir | 68 | fs/ext2/symlink.c | iput (dir); |
dir | 73 | fs/ext2/symlink.c | iput (dir); |
dir | 79 | fs/ext2/symlink.c | iput (dir); |
dir | 87 | fs/ext2/symlink.c | error = open_namei (link, flag, mode, res_inode, dir); |
dir | 1104 | fs/hpfs/hpfs_fs.c | static int hpfs_lookup(struct inode *dir, const char *name, int len, |
dir | 1115 | fs/hpfs/hpfs_fs.c | if (dir == 0) |
dir | 1117 | fs/hpfs/hpfs_fs.c | if (!S_ISDIR(dir->i_mode)) |
dir | 1126 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, dir->i_hpfs_dno, "\001\001", 2, &qbh); |
dir | 1128 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, |
dir | 1129 | fs/hpfs/hpfs_fs.c | fnode_dno(dir->i_dev, dir->i_hpfs_parent_dir), |
dir | 1132 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh); |
dir | 1154 | fs/hpfs/hpfs_fs.c | if (!(inode = iget(dir->i_sb, ino))) |
dir | 1187 | fs/hpfs/hpfs_fs.c | iput(dir); |
dir | 1196 | 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 | 78 | fs/isofs/namei.c | if (!dir) return NULL; |
dir | 80 | fs/isofs/namei.c | if (!(block = dir->u.isofs_i.i_first_extent)) return NULL; |
dir | 85 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos >> bufbits); |
dir | 87 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) return NULL; |
dir | 89 | fs/isofs/namei.c | while (f_pos < dir->i_size) { |
dir | 91 | fs/isofs/namei.c | backlink = dir->i_ino; |
dir | 102 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
dir | 103 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) |
dir | 124 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
dir | 125 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) { |
dir | 135 | fs/isofs/namei.c | inode_number = dir->i_ino; |
dir | 144 | fs/isofs/namei.c | dir->i_sb->s_firstdatazone, |
dir | 145 | fs/isofs/namei.c | dir->i_ino); |
dir | 147 | fs/isofs/namei.c | if((dir->i_sb->u.isofs_sb.s_firstdatazone) != dir->i_ino) |
dir | 148 | fs/isofs/namei.c | inode_number = dir->u.isofs_i.i_backlink; |
dir | 150 | fs/isofs/namei.c | inode_number = dir->i_ino; |
dir | 155 | fs/isofs/namei.c | high_sierra = dir->i_sb->u.isofs_sb.s_high_sierra; |
dir | 167 | fs/isofs/namei.c | rrflag = get_rock_ridge_filename(de, &dpnt, &dlen, dir); |
dir | 171 | fs/isofs/namei.c | if(dir->i_sb->u.isofs_sb.s_mapping == 'n') { |
dir | 199 | fs/isofs/namei.c | isofs_lookup_grandparent(dir, |
dir | 200 | fs/isofs/namei.c | find_rock_ridge_relocation(de,dir)); |
dir | 219 | fs/isofs/namei.c | int isofs_lookup(struct inode * dir,const char * name, int len, |
dir | 226 | fs/isofs/namei.c | printk("lookup: %x %d\n",dir->i_ino, len); |
dir | 229 | fs/isofs/namei.c | if (!dir) |
dir | 232 | fs/isofs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 233 | fs/isofs/namei.c | iput(dir); |
dir | 239 | fs/isofs/namei.c | if (dcache_lookup(dir, name, len, &ino)) ino_back = dir->i_ino; |
dir | 242 | fs/isofs/namei.c | if (!(bh = isofs_find_entry(dir,name,len, &ino, &ino_back))) { |
dir | 243 | fs/isofs/namei.c | iput(dir); |
dir | 246 | fs/isofs/namei.c | if (ino_back == dir->i_ino) |
dir | 247 | fs/isofs/namei.c | dcache_add(dir, name, len, ino); |
dir | 251 | fs/isofs/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 252 | fs/isofs/namei.c | iput(dir); |
dir | 262 | fs/isofs/namei.c | if (ino_back && !(*result)->i_pipe && (*result)->i_sb == dir->i_sb) { |
dir | 266 | fs/isofs/namei.c | iput(dir); |
dir | 45 | fs/isofs/symlink.c | static int isofs_follow_link(struct inode * dir, struct inode * inode, |
dir | 51 | fs/isofs/symlink.c | if (!dir) { |
dir | 52 | fs/isofs/symlink.c | dir = current->fs->root; |
dir | 53 | fs/isofs/symlink.c | dir->i_count++; |
dir | 56 | fs/isofs/symlink.c | iput(dir); |
dir | 61 | fs/isofs/symlink.c | iput(dir); |
dir | 67 | fs/isofs/symlink.c | iput(dir); |
dir | 74 | fs/isofs/symlink.c | error = open_namei(pnt,flag,mode,res_inode,dir); |
dir | 159 | fs/minix/bitmap.c | struct inode * minix_new_inode(const struct inode * dir) |
dir | 166 | fs/minix/bitmap.c | if (!dir || !(inode = get_empty_inode())) |
dir | 168 | fs/minix/bitmap.c | sb = dir->i_sb; |
dir | 195 | 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 | 194 | fs/minix/namei.c | dir->i_version = ++event; |
dir | 210 | fs/minix/namei.c | int minix_create(struct inode * dir,const char * name, int len, int mode, |
dir | 219 | fs/minix/namei.c | if (!dir) |
dir | 221 | fs/minix/namei.c | inode = minix_new_inode(dir); |
dir | 223 | fs/minix/namei.c | iput(dir); |
dir | 229 | fs/minix/namei.c | error = minix_add_entry(dir,name,len, &bh ,&de); |
dir | 234 | fs/minix/namei.c | iput(dir); |
dir | 240 | fs/minix/namei.c | iput(dir); |
dir | 245 | fs/minix/namei.c | int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
dir | 252 | fs/minix/namei.c | if (!dir) |
dir | 254 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 257 | fs/minix/namei.c | iput(dir); |
dir | 260 | fs/minix/namei.c | inode = minix_new_inode(dir); |
dir | 262 | fs/minix/namei.c | iput(dir); |
dir | 272 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
dir | 286 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
dir | 291 | fs/minix/namei.c | iput(dir); |
dir | 297 | fs/minix/namei.c | iput(dir); |
dir | 302 | fs/minix/namei.c | int minix_mkdir(struct inode * dir, const char * name, int len, int mode) |
dir | 310 | fs/minix/namei.c | if (!dir || !dir->i_sb) { |
dir | 311 | fs/minix/namei.c | iput(dir); |
dir | 314 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
dir | 315 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 318 | fs/minix/namei.c | iput(dir); |
dir | 321 | fs/minix/namei.c | if (dir->i_nlink >= MINIX_LINK_MAX) { |
dir | 322 | fs/minix/namei.c | iput(dir); |
dir | 325 | fs/minix/namei.c | inode = minix_new_inode(dir); |
dir | 327 | fs/minix/namei.c | iput(dir); |
dir | 334 | fs/minix/namei.c | iput(dir); |
dir | 344 | fs/minix/namei.c | de->inode = dir->i_ino; |
dir | 350 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
dir | 353 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
dir | 355 | fs/minix/namei.c | iput(dir); |
dir | 362 | fs/minix/namei.c | dir->i_nlink++; |
dir | 363 | fs/minix/namei.c | dir->i_dirt = 1; |
dir | 364 | fs/minix/namei.c | iput(dir); |
dir | 428 | fs/minix/namei.c | int minix_rmdir(struct inode * dir, const char * name, int len) |
dir | 436 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 441 | fs/minix/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 443 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 445 | fs/minix/namei.c | current->fsuid != dir->i_uid) |
dir | 447 | fs/minix/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 449 | fs/minix/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 470 | fs/minix/namei.c | dir->i_version = ++event; |
dir | 474 | fs/minix/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 475 | fs/minix/namei.c | dir->i_nlink--; |
dir | 476 | fs/minix/namei.c | dir->i_dirt=1; |
dir | 479 | fs/minix/namei.c | iput(dir); |
dir | 485 | fs/minix/namei.c | int minix_unlink(struct inode * dir, const char * name, int len) |
dir | 495 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 498 | fs/minix/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 510 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 512 | fs/minix/namei.c | current->fsuid != dir->i_uid) |
dir | 524 | fs/minix/namei.c | dir->i_version = ++event; |
dir | 526 | fs/minix/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 527 | fs/minix/namei.c | dir->i_dirt = 1; |
dir | 529 | fs/minix/namei.c | inode->i_ctime = dir->i_ctime; |
dir | 535 | fs/minix/namei.c | iput(dir); |
dir | 539 | fs/minix/namei.c | int minix_symlink(struct inode * dir, const char * name, int len, const char * symname) |
dir | 547 | fs/minix/namei.c | if (!(inode = minix_new_inode(dir))) { |
dir | 548 | fs/minix/namei.c | iput(dir); |
dir | 555 | fs/minix/namei.c | iput(dir); |
dir | 569 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 575 | fs/minix/namei.c | iput(dir); |
dir | 578 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
dir | 583 | fs/minix/namei.c | iput(dir); |
dir | 589 | fs/minix/namei.c | iput(dir); |
dir | 594 | fs/minix/namei.c | int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
dir | 602 | fs/minix/namei.c | iput(dir); |
dir | 607 | fs/minix/namei.c | iput(dir); |
dir | 610 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 613 | fs/minix/namei.c | iput(dir); |
dir | 617 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
dir | 619 | fs/minix/namei.c | iput(dir); |
dir | 626 | fs/minix/namei.c | iput(dir); |
dir | 41 | fs/minix/symlink.c | static int minix_follow_link(struct inode * dir, struct inode * inode, |
dir | 48 | fs/minix/symlink.c | if (!dir) { |
dir | 49 | fs/minix/symlink.c | dir = current->fs->root; |
dir | 50 | fs/minix/symlink.c | dir->i_count++; |
dir | 53 | fs/minix/symlink.c | iput(dir); |
dir | 57 | fs/minix/symlink.c | iput(dir); |
dir | 63 | fs/minix/symlink.c | iput(dir); |
dir | 68 | fs/minix/symlink.c | iput(dir); |
dir | 73 | fs/minix/symlink.c | error = open_namei(bh->b_data,flag,mode,res_inode,dir); |
dir | 255 | fs/msdos/misc.c | int msdos_get_entry(struct inode *dir, loff_t *pos,struct buffer_head **bh, |
dir | 263 | fs/msdos/misc.c | if ((sector = msdos_smap(dir,offset >> SECTOR_BITS)) == -1) |
dir | 272 | fs/msdos/misc.c | if (!(*bh = msdos_sread(dir->i_dev,sector))) { |
dir | 447 | fs/msdos/misc.c | int msdos_parent_ino(struct inode *dir,int locked) |
dir | 452 | fs/msdos/misc.c | if (!S_ISDIR(dir->i_mode)) panic("Non-directory fed to m_p_i"); |
dir | 453 | fs/msdos/misc.c | if (dir->i_ino == MSDOS_ROOT_INO) return dir->i_ino; |
dir | 455 | fs/msdos/misc.c | if ((current = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,MSDOS_DOTDOT, |
dir | 462 | fs/msdos/misc.c | if ((prev = raw_scan(dir->i_sb,current,MSDOS_DOTDOT,&zero,NULL, |
dir | 467 | fs/msdos/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,¤t,&nr,NULL, |
dir | 483 | fs/msdos/misc.c | int msdos_subdirs(struct inode *dir) |
dir | 488 | fs/msdos/misc.c | if (dir->i_ino == MSDOS_ROOT_INO) |
dir | 489 | fs/msdos/misc.c | (void) raw_scan_root(dir->i_sb,NULL,&count,NULL,NULL,NULL); |
dir | 491 | fs/msdos/misc.c | if (!MSDOS_I(dir)->i_start) return 0; /* in mkdir */ |
dir | 492 | fs/msdos/misc.c | else (void) raw_scan_nonroot(dir->i_sb,MSDOS_I(dir)->i_start, |
dir | 504 | fs/msdos/misc.c | int msdos_scan(struct inode *dir,char *name,struct buffer_head **res_bh, |
dir | 510 | fs/msdos/misc.c | res = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,name,NULL,ino, |
dir | 512 | fs/msdos/misc.c | else res = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,NULL,NULL,ino, |
dir | 95 | fs/msdos/namei.c | static int msdos_find(struct inode *dir,const char *name,int len, |
dir | 101 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
dir | 103 | fs/msdos/namei.c | return msdos_scan(dir,msdos_name,bh,de,ino); |
dir | 107 | fs/msdos/namei.c | int msdos_lookup(struct inode *dir,const char *name,int len, |
dir | 118 | fs/msdos/namei.c | if (!dir) return -ENOENT; |
dir | 119 | fs/msdos/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 120 | fs/msdos/namei.c | iput(dir); |
dir | 125 | fs/msdos/namei.c | *result = dir; |
dir | 129 | fs/msdos/namei.c | ino = msdos_parent_ino(dir,0); |
dir | 130 | fs/msdos/namei.c | iput(dir); |
dir | 132 | fs/msdos/namei.c | if (!(*result = iget(dir->i_sb,ino))) return -EACCES; |
dir | 136 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) { |
dir | 137 | fs/msdos/namei.c | iput(dir); |
dir | 144 | fs/msdos/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 145 | fs/msdos/namei.c | iput(dir); |
dir | 151 | fs/msdos/namei.c | iput(dir); |
dir | 159 | fs/msdos/namei.c | fs_panic(dir->i_sb,"msdos_lookup: Can't happen"); |
dir | 160 | fs/msdos/namei.c | iput(dir); |
dir | 165 | fs/msdos/namei.c | iput(dir); |
dir | 173 | fs/msdos/namei.c | static int msdos_create_entry(struct inode *dir,char *name,int is_dir, |
dir | 180 | fs/msdos/namei.c | if ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) { |
dir | 182 | fs/msdos/namei.c | if (dir->i_ino == MSDOS_ROOT_INO) return -ENOSPC; |
dir | 183 | fs/msdos/namei.c | if ((res = msdos_add_cluster(dir)) < 0) return res; |
dir | 184 | fs/msdos/namei.c | if ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) return res; |
dir | 189 | fs/msdos/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 190 | fs/msdos/namei.c | dir->i_dirt = 1; |
dir | 195 | fs/msdos/namei.c | date_unix2dos(dir->i_mtime,&de->time,&de->date); |
dir | 198 | fs/msdos/namei.c | if ((*result = iget(dir->i_sb,ino)) != NULL) |
dir | 209 | fs/msdos/namei.c | int msdos_create(struct inode *dir,const char *name,int len,int mode, |
dir | 217 | fs/msdos/namei.c | if (!dir) return -ENOENT; |
dir | 218 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
dir | 220 | fs/msdos/namei.c | iput(dir); |
dir | 224 | fs/msdos/namei.c | if (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) { |
dir | 227 | fs/msdos/namei.c | iput(dir); |
dir | 230 | fs/msdos/namei.c | res = msdos_create_entry(dir,msdos_name,S_ISDIR(mode),result); |
dir | 232 | fs/msdos/namei.c | iput(dir); |
dir | 257 | fs/msdos/namei.c | int msdos_mkdir(struct inode *dir,const char *name,int len,int mode) |
dir | 265 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
dir | 267 | fs/msdos/namei.c | iput(dir); |
dir | 271 | fs/msdos/namei.c | if (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) { |
dir | 274 | fs/msdos/namei.c | iput(dir); |
dir | 277 | fs/msdos/namei.c | if ((res = msdos_create_entry(dir,msdos_name,1,&inode)) < 0) { |
dir | 279 | fs/msdos/namei.c | iput(dir); |
dir | 282 | fs/msdos/namei.c | dir->i_nlink++; |
dir | 296 | fs/msdos/namei.c | dot->i_size = dir->i_size; |
dir | 297 | fs/msdos/namei.c | MSDOS_I(dot)->i_start = MSDOS_I(dir)->i_start; |
dir | 298 | fs/msdos/namei.c | dot->i_nlink = dir->i_nlink; |
dir | 303 | fs/msdos/namei.c | iput(dir); |
dir | 307 | fs/msdos/namei.c | if (msdos_rmdir(dir,name,len) < 0) |
dir | 308 | fs/msdos/namei.c | fs_panic(dir->i_sb,"rmdir in mkdir failed"); |
dir | 314 | fs/msdos/namei.c | static int msdos_empty(struct inode *dir) |
dir | 320 | fs/msdos/namei.c | if (dir->i_count > 1) |
dir | 322 | fs/msdos/namei.c | if (MSDOS_I(dir)->i_start) { /* may be zero in mkdir */ |
dir | 325 | fs/msdos/namei.c | while (msdos_get_entry(dir,&pos,&bh,&de) > -1) |
dir | 339 | fs/msdos/namei.c | int msdos_rmdir(struct inode *dir,const char *name,int len) |
dir | 351 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done; |
dir | 353 | fs/msdos/namei.c | if (!(inode = iget(dir->i_sb,ino))) goto rmdir_done; |
dir | 357 | fs/msdos/namei.c | if (dir->i_dev != inode->i_dev || dir == inode) goto rmdir_done; |
dir | 362 | fs/msdos/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 363 | fs/msdos/namei.c | dir->i_nlink--; |
dir | 364 | fs/msdos/namei.c | inode->i_dirt = dir->i_dirt = 1; |
dir | 370 | fs/msdos/namei.c | iput(dir); |
dir | 377 | fs/msdos/namei.c | struct inode *dir, |
dir | 389 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) |
dir | 391 | fs/msdos/namei.c | if (!(inode = iget(dir->i_sb,ino))) { |
dir | 400 | fs/msdos/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 402 | fs/msdos/namei.c | inode->i_dirt = dir->i_dirt = 1; |
dir | 408 | fs/msdos/namei.c | iput(dir); |
dir | 412 | fs/msdos/namei.c | int msdos_unlink(struct inode *dir,const char *name,int len) |
dir | 414 | fs/msdos/namei.c | return msdos_unlinkx (dir,name,len,1); |
dir | 419 | fs/msdos/namei.c | int msdos_unlink_umsdos(struct inode *dir,const char *name,int len) |
dir | 421 | fs/msdos/namei.c | return msdos_unlinkx (dir,name,len,0); |
dir | 157 | fs/namei.c | int lookup(struct inode * dir,const char * name, int len, |
dir | 164 | fs/namei.c | if (!dir) |
dir | 167 | fs/namei.c | perm = permission(dir,MAY_EXEC); |
dir | 169 | fs/namei.c | if (dir == current->fs->root) { |
dir | 170 | fs/namei.c | *result = dir; |
dir | 172 | fs/namei.c | } else if ((sb = dir->i_sb) && (dir == sb->s_mounted)) { |
dir | 173 | fs/namei.c | sb = dir->i_sb; |
dir | 174 | fs/namei.c | iput(dir); |
dir | 175 | fs/namei.c | dir = sb->s_covered; |
dir | 176 | fs/namei.c | if (!dir) |
dir | 178 | fs/namei.c | dir->i_count++; |
dir | 181 | fs/namei.c | if (!dir->i_op || !dir->i_op->lookup) { |
dir | 182 | fs/namei.c | iput(dir); |
dir | 186 | fs/namei.c | iput(dir); |
dir | 190 | fs/namei.c | *result = dir; |
dir | 193 | fs/namei.c | return dir->i_op->lookup(dir,name,len,result); |
dir | 196 | fs/namei.c | int follow_link(struct inode * dir, struct inode * inode, |
dir | 199 | fs/namei.c | if (!dir || !inode) { |
dir | 200 | fs/namei.c | iput(dir); |
dir | 206 | fs/namei.c | iput(dir); |
dir | 210 | fs/namei.c | return inode->i_op->follow_link(dir,inode,flag,mode,res_inode); |
dir | 342 | fs/namei.c | struct inode * dir, *inode; |
dir | 346 | fs/namei.c | error = dir_namei(pathname,&namelen,&basename,base,&dir); |
dir | 351 | fs/namei.c | iput(dir); |
dir | 355 | fs/namei.c | if (!permission(dir,ACC_MODE(flag))) { |
dir | 356 | fs/namei.c | iput(dir); |
dir | 359 | fs/namei.c | *res_inode=dir; |
dir | 362 | fs/namei.c | dir->i_count++; /* lookup eats the dir */ |
dir | 364 | fs/namei.c | down(&dir->i_sem); |
dir | 365 | fs/namei.c | error = lookup(dir,basename,namelen,&inode); |
dir | 371 | fs/namei.c | } else if (!permission(dir,MAY_WRITE | MAY_EXEC)) |
dir | 373 | fs/namei.c | else if (!dir->i_op || !dir->i_op->create) |
dir | 375 | fs/namei.c | else if (IS_RDONLY(dir)) |
dir | 378 | fs/namei.c | dir->i_count++; /* create eats the dir */ |
dir | 379 | fs/namei.c | error = dir->i_op->create(dir,basename,namelen,mode,res_inode); |
dir | 380 | fs/namei.c | up(&dir->i_sem); |
dir | 381 | fs/namei.c | iput(dir); |
dir | 384 | fs/namei.c | up(&dir->i_sem); |
dir | 386 | fs/namei.c | error = lookup(dir,basename,namelen,&inode); |
dir | 388 | fs/namei.c | iput(dir); |
dir | 391 | fs/namei.c | error = follow_link(dir,inode,flag,mode,&inode); |
dir | 449 | fs/namei.c | struct inode * dir; |
dir | 452 | fs/namei.c | error = dir_namei(filename,&namelen,&basename, NULL, &dir); |
dir | 456 | fs/namei.c | iput(dir); |
dir | 459 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 460 | fs/namei.c | iput(dir); |
dir | 463 | fs/namei.c | if (!permission(dir,MAY_WRITE | MAY_EXEC)) { |
dir | 464 | fs/namei.c | iput(dir); |
dir | 467 | fs/namei.c | if (!dir->i_op || !dir->i_op->mknod) { |
dir | 468 | fs/namei.c | iput(dir); |
dir | 471 | fs/namei.c | dir->i_count++; |
dir | 472 | fs/namei.c | down(&dir->i_sem); |
dir | 473 | fs/namei.c | error = dir->i_op->mknod(dir,basename,namelen,mode,dev); |
dir | 474 | fs/namei.c | up(&dir->i_sem); |
dir | 475 | fs/namei.c | iput(dir); |
dir | 507 | fs/namei.c | struct inode * dir; |
dir | 509 | fs/namei.c | error = dir_namei(pathname,&namelen,&basename,NULL,&dir); |
dir | 513 | fs/namei.c | iput(dir); |
dir | 516 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 517 | fs/namei.c | iput(dir); |
dir | 520 | fs/namei.c | if (!permission(dir,MAY_WRITE | MAY_EXEC)) { |
dir | 521 | fs/namei.c | iput(dir); |
dir | 524 | fs/namei.c | if (!dir->i_op || !dir->i_op->mkdir) { |
dir | 525 | fs/namei.c | iput(dir); |
dir | 528 | fs/namei.c | dir->i_count++; |
dir | 529 | fs/namei.c | down(&dir->i_sem); |
dir | 530 | fs/namei.c | error = dir->i_op->mkdir(dir, basename, namelen, mode & 0777 & ~current->fs->umask); |
dir | 531 | fs/namei.c | up(&dir->i_sem); |
dir | 532 | fs/namei.c | iput(dir); |
dir | 553 | fs/namei.c | struct inode * dir; |
dir | 555 | fs/namei.c | error = dir_namei(name,&namelen,&basename,NULL,&dir); |
dir | 559 | fs/namei.c | iput(dir); |
dir | 562 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 563 | fs/namei.c | iput(dir); |
dir | 566 | fs/namei.c | if (!permission(dir,MAY_WRITE | MAY_EXEC)) { |
dir | 567 | fs/namei.c | iput(dir); |
dir | 573 | fs/namei.c | if (IS_APPEND(dir)) { |
dir | 574 | fs/namei.c | iput(dir); |
dir | 577 | fs/namei.c | if (!dir->i_op || !dir->i_op->rmdir) { |
dir | 578 | fs/namei.c | iput(dir); |
dir | 581 | fs/namei.c | return dir->i_op->rmdir(dir,basename,namelen); |
dir | 601 | fs/namei.c | struct inode * dir; |
dir | 603 | fs/namei.c | error = dir_namei(name,&namelen,&basename,NULL,&dir); |
dir | 607 | fs/namei.c | iput(dir); |
dir | 610 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 611 | fs/namei.c | iput(dir); |
dir | 614 | fs/namei.c | if (!permission(dir,MAY_WRITE | MAY_EXEC)) { |
dir | 615 | fs/namei.c | iput(dir); |
dir | 621 | fs/namei.c | if (IS_APPEND(dir)) { |
dir | 622 | fs/namei.c | iput(dir); |
dir | 625 | fs/namei.c | if (!dir->i_op || !dir->i_op->unlink) { |
dir | 626 | fs/namei.c | iput(dir); |
dir | 629 | fs/namei.c | return dir->i_op->unlink(dir,basename,namelen); |
dir | 647 | fs/namei.c | struct inode * dir; |
dir | 651 | fs/namei.c | error = dir_namei(newname,&namelen,&basename,NULL,&dir); |
dir | 655 | fs/namei.c | iput(dir); |
dir | 658 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 659 | fs/namei.c | iput(dir); |
dir | 662 | fs/namei.c | if (!permission(dir,MAY_WRITE | MAY_EXEC)) { |
dir | 663 | fs/namei.c | iput(dir); |
dir | 666 | fs/namei.c | if (!dir->i_op || !dir->i_op->symlink) { |
dir | 667 | fs/namei.c | iput(dir); |
dir | 670 | fs/namei.c | dir->i_count++; |
dir | 671 | fs/namei.c | down(&dir->i_sem); |
dir | 672 | fs/namei.c | error = dir->i_op->symlink(dir,basename,namelen,oldname); |
dir | 673 | fs/namei.c | up(&dir->i_sem); |
dir | 674 | fs/namei.c | iput(dir); |
dir | 697 | fs/namei.c | struct inode * dir; |
dir | 701 | fs/namei.c | error = dir_namei(newname,&namelen,&basename,NULL,&dir); |
dir | 708 | fs/namei.c | iput(dir); |
dir | 711 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 713 | fs/namei.c | iput(dir); |
dir | 716 | fs/namei.c | if (dir->i_dev != oldinode->i_dev) { |
dir | 717 | fs/namei.c | iput(dir); |
dir | 721 | fs/namei.c | if (!permission(dir,MAY_WRITE | MAY_EXEC)) { |
dir | 722 | fs/namei.c | iput(dir); |
dir | 730 | fs/namei.c | iput(dir); |
dir | 734 | fs/namei.c | if (!dir->i_op || !dir->i_op->link) { |
dir | 735 | fs/namei.c | iput(dir); |
dir | 739 | fs/namei.c | dir->i_count++; |
dir | 740 | fs/namei.c | down(&dir->i_sem); |
dir | 741 | fs/namei.c | error = dir->i_op->link(oldinode, dir, basename, namelen); |
dir | 742 | fs/namei.c | up(&dir->i_sem); |
dir | 743 | fs/namei.c | iput(dir); |
dir | 27 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *name, int len, |
dir | 29 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
dir | 31 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode); |
dir | 32 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len); |
dir | 33 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len); |
dir | 36 | fs/nfs/dir.c | static int nfs_link(struct inode *oldinode, struct inode *dir, |
dir | 38 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, int mode, |
dir | 186 | fs/nfs/dir.c | static struct nfs_lookup_cache_entry *nfs_lookup_cache_index(struct inode *dir, |
dir | 194 | fs/nfs/dir.c | if (entry->dev == dir->i_dev && entry->inode == dir->i_ino |
dir | 201 | fs/nfs/dir.c | static int nfs_lookup_cache_lookup(struct inode *dir, const char *filename, |
dir | 213 | fs/nfs/dir.c | if ((entry = nfs_lookup_cache_index(dir, filename))) { |
dir | 225 | fs/nfs/dir.c | static void nfs_lookup_cache_add(struct inode *dir, const char *filename, |
dir | 236 | fs/nfs/dir.c | if (!(entry = nfs_lookup_cache_index(dir, filename))) { |
dir | 241 | fs/nfs/dir.c | entry->dev = dir->i_dev; |
dir | 242 | fs/nfs/dir.c | entry->inode = dir->i_ino; |
dir | 247 | fs/nfs/dir.c | ? NFS_SERVER(dir)->acdirmax : NFS_SERVER(dir)->acregmax); |
dir | 250 | fs/nfs/dir.c | static void nfs_lookup_cache_remove(struct inode *dir, struct inode *inode, |
dir | 262 | fs/nfs/dir.c | else if ((entry = nfs_lookup_cache_index(dir, filename))) { |
dir | 290 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *__name, int len, |
dir | 299 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 301 | fs/nfs/dir.c | iput(dir); |
dir | 305 | fs/nfs/dir.c | iput(dir); |
dir | 311 | fs/nfs/dir.c | *result = dir; |
dir | 314 | fs/nfs/dir.c | if ((NFS_SERVER(dir)->flags & NFS_MOUNT_NOAC) |
dir | 315 | fs/nfs/dir.c | || !nfs_lookup_cache_lookup(dir, name, &fhandle, &fattr)) { |
dir | 316 | fs/nfs/dir.c | if ((error = nfs_proc_lookup(NFS_SERVER(dir), NFS_FH(dir), |
dir | 318 | fs/nfs/dir.c | iput(dir); |
dir | 321 | fs/nfs/dir.c | nfs_lookup_cache_add(dir, name, &fhandle, &fattr); |
dir | 323 | fs/nfs/dir.c | if (!(*result = nfs_fhget(dir->i_sb, &fhandle, &fattr))) { |
dir | 324 | fs/nfs/dir.c | iput(dir); |
dir | 327 | fs/nfs/dir.c | iput(dir); |
dir | 331 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
dir | 340 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 342 | fs/nfs/dir.c | iput(dir); |
dir | 346 | fs/nfs/dir.c | iput(dir); |
dir | 352 | fs/nfs/dir.c | if ((error = nfs_proc_create(NFS_SERVER(dir), NFS_FH(dir), |
dir | 354 | fs/nfs/dir.c | iput(dir); |
dir | 357 | fs/nfs/dir.c | if (!(*result = nfs_fhget(dir->i_sb, &fhandle, &fattr))) { |
dir | 358 | fs/nfs/dir.c | iput(dir); |
dir | 361 | fs/nfs/dir.c | nfs_lookup_cache_add(dir, name, &fhandle, &fattr); |
dir | 362 | fs/nfs/dir.c | iput(dir); |
dir | 366 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, |
dir | 374 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 376 | fs/nfs/dir.c | iput(dir); |
dir | 380 | fs/nfs/dir.c | iput(dir); |
dir | 390 | fs/nfs/dir.c | error = nfs_proc_create(NFS_SERVER(dir), NFS_FH(dir), |
dir | 393 | fs/nfs/dir.c | nfs_lookup_cache_add(dir, name, &fhandle, &fattr); |
dir | 394 | fs/nfs/dir.c | iput(dir); |
dir | 398 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode) |
dir | 405 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 407 | fs/nfs/dir.c | iput(dir); |
dir | 411 | fs/nfs/dir.c | iput(dir); |
dir | 417 | fs/nfs/dir.c | error = nfs_proc_mkdir(NFS_SERVER(dir), NFS_FH(dir), |
dir | 420 | fs/nfs/dir.c | nfs_lookup_cache_add(dir, name, &fhandle, &fattr); |
dir | 421 | fs/nfs/dir.c | iput(dir); |
dir | 425 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len) |
dir | 429 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 431 | fs/nfs/dir.c | iput(dir); |
dir | 435 | fs/nfs/dir.c | iput(dir); |
dir | 438 | fs/nfs/dir.c | error = nfs_proc_rmdir(NFS_SERVER(dir), NFS_FH(dir), name); |
dir | 440 | fs/nfs/dir.c | nfs_lookup_cache_remove(dir, NULL, name); |
dir | 441 | fs/nfs/dir.c | iput(dir); |
dir | 445 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len) |
dir | 449 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 451 | fs/nfs/dir.c | iput(dir); |
dir | 455 | fs/nfs/dir.c | iput(dir); |
dir | 458 | fs/nfs/dir.c | error = nfs_proc_remove(NFS_SERVER(dir), NFS_FH(dir), name); |
dir | 460 | fs/nfs/dir.c | nfs_lookup_cache_remove(dir, NULL, name); |
dir | 461 | fs/nfs/dir.c | iput(dir); |
dir | 465 | fs/nfs/dir.c | static int nfs_symlink(struct inode *dir, const char *name, int len, |
dir | 471 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 473 | fs/nfs/dir.c | iput(dir); |
dir | 477 | fs/nfs/dir.c | iput(dir); |
dir | 481 | fs/nfs/dir.c | iput(dir); |
dir | 487 | fs/nfs/dir.c | error = nfs_proc_symlink(NFS_SERVER(dir), NFS_FH(dir), |
dir | 489 | fs/nfs/dir.c | iput(dir); |
dir | 493 | fs/nfs/dir.c | static int nfs_link(struct inode *oldinode, struct inode *dir, |
dir | 501 | fs/nfs/dir.c | iput(dir); |
dir | 504 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 507 | fs/nfs/dir.c | iput(dir); |
dir | 512 | fs/nfs/dir.c | iput(dir); |
dir | 516 | fs/nfs/dir.c | NFS_FH(dir), name); |
dir | 518 | fs/nfs/dir.c | nfs_lookup_cache_remove(dir, oldinode, NULL); |
dir | 520 | fs/nfs/dir.c | iput(dir); |
dir | 299 | fs/nfs/proc.c | int nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir, const char *name, |
dir | 315 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 462 | fs/nfs/proc.c | int nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir, |
dir | 475 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 502 | fs/nfs/proc.c | int nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir, const char *name) |
dir | 513 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 577 | fs/nfs/proc.c | struct nfs_fh *dir, const char *name) |
dir | 589 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 613 | fs/nfs/proc.c | int nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir, |
dir | 625 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 651 | fs/nfs/proc.c | int nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir, |
dir | 664 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 691 | fs/nfs/proc.c | int nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir, const char *name) |
dir | 702 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 46 | fs/nfs/symlink.c | static int nfs_follow_link(struct inode *dir, struct inode *inode, |
dir | 54 | fs/nfs/symlink.c | if (!dir) { |
dir | 55 | fs/nfs/symlink.c | dir = current->fs->root; |
dir | 56 | fs/nfs/symlink.c | dir->i_count++; |
dir | 59 | fs/nfs/symlink.c | iput(dir); |
dir | 63 | fs/nfs/symlink.c | iput(dir); |
dir | 69 | fs/nfs/symlink.c | iput(dir); |
dir | 76 | fs/nfs/symlink.c | iput(dir); |
dir | 88 | fs/nfs/symlink.c | error = open_namei(res2, flag, mode, res_inode, dir); |
dir | 82 | fs/proc/base.c | static int proc_lookupbase(struct inode * dir,const char * name, int len, |
dir | 89 | fs/proc/base.c | if (!dir) |
dir | 91 | fs/proc/base.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 92 | fs/proc/base.c | iput(dir); |
dir | 95 | fs/proc/base.c | ino = dir->i_ino; |
dir | 101 | fs/proc/base.c | iput(dir); |
dir | 112 | fs/proc/base.c | iput(dir); |
dir | 115 | fs/proc/base.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 116 | fs/proc/base.c | iput(dir); |
dir | 119 | fs/proc/base.c | iput(dir); |
dir | 53 | fs/proc/fd.c | static int proc_lookupfd(struct inode * dir,const char * name, int len, |
dir | 62 | fs/proc/fd.c | ino = dir->i_ino; |
dir | 65 | fs/proc/fd.c | if (!dir) |
dir | 67 | fs/proc/fd.c | sb = dir->i_sb; |
dir | 68 | fs/proc/fd.c | if (!pid || ino != PROC_PID_FD || !S_ISDIR(dir->i_mode)) { |
dir | 69 | fs/proc/fd.c | iput(dir); |
dir | 75 | fs/proc/fd.c | *result = dir; |
dir | 79 | fs/proc/fd.c | iput(dir); |
dir | 82 | fs/proc/fd.c | iput(dir); |
dir | 85 | fs/proc/fd.c | iput(dir); |
dir | 100 | fs/proc/link.c | static int proc_follow_link(struct inode * dir, struct inode * inode, |
dir | 109 | fs/proc/link.c | if (dir) |
dir | 110 | fs/proc/link.c | iput(dir); |
dir | 152 | fs/proc/link.c | if (dir) { |
dir | 137 | fs/proc/net.c | static int proc_lookupnet(struct inode * dir,const char * name, int len, |
dir | 143 | fs/proc/net.c | if (!dir) |
dir | 145 | fs/proc/net.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 146 | fs/proc/net.c | iput(dir); |
dir | 152 | fs/proc/net.c | *result = iget(dir->i_sb, de->low_ino); |
dir | 153 | fs/proc/net.c | iput(dir); |
dir | 79 | fs/proc/root.c | static int proc_lookuproot(struct inode * dir,const char * name, int len, |
dir | 86 | fs/proc/root.c | if (!dir) |
dir | 88 | fs/proc/root.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 89 | fs/proc/root.c | iput(dir); |
dir | 98 | fs/proc/root.c | *result = dir; |
dir | 123 | fs/proc/root.c | iput(dir); |
dir | 128 | fs/proc/root.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 129 | fs/proc/root.c | iput(dir); |
dir | 132 | fs/proc/root.c | iput(dir); |
dir | 429 | fs/super.c | static int do_mount(dev_t dev, const char * dir, char * type, int flags, void * data) |
dir | 435 | fs/super.c | error = namei(dir,&dir_i); |
dir | 492 | fs/super.c | static int do_remount(const char *dir,int flags,char *data) |
dir | 497 | fs/super.c | retval = namei(dir,&dir_i); |
dir | 102 | fs/sysv/ialloc.c | struct inode * sysv_new_inode(const struct inode * dir) |
dir | 110 | fs/sysv/ialloc.c | if (!dir || !(inode = get_empty_inode())) |
dir | 112 | fs/sysv/ialloc.c | sb = dir->i_sb; |
dir | 155 | 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 | 203 | fs/sysv/namei.c | int sysv_create(struct inode * dir,const char * name, int len, int mode, |
dir | 212 | fs/sysv/namei.c | if (!dir) |
dir | 214 | fs/sysv/namei.c | inode = sysv_new_inode(dir); |
dir | 216 | fs/sysv/namei.c | iput(dir); |
dir | 222 | fs/sysv/namei.c | error = sysv_add_entry(dir,name,len, &bh ,&de); |
dir | 227 | fs/sysv/namei.c | iput(dir); |
dir | 233 | fs/sysv/namei.c | iput(dir); |
dir | 238 | fs/sysv/namei.c | int sysv_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
dir | 245 | fs/sysv/namei.c | if (!dir) |
dir | 247 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 250 | fs/sysv/namei.c | iput(dir); |
dir | 253 | fs/sysv/namei.c | inode = sysv_new_inode(dir); |
dir | 255 | fs/sysv/namei.c | iput(dir); |
dir | 265 | fs/sysv/namei.c | if (dir->i_mode & S_ISGID) |
dir | 279 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
dir | 284 | fs/sysv/namei.c | iput(dir); |
dir | 290 | fs/sysv/namei.c | iput(dir); |
dir | 295 | fs/sysv/namei.c | int sysv_mkdir(struct inode * dir, const char * name, int len, int mode) |
dir | 302 | fs/sysv/namei.c | if (!dir) { |
dir | 303 | fs/sysv/namei.c | iput(dir); |
dir | 306 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 309 | fs/sysv/namei.c | iput(dir); |
dir | 312 | fs/sysv/namei.c | if (dir->i_nlink >= dir->i_sb->sv_link_max) { |
dir | 313 | fs/sysv/namei.c | iput(dir); |
dir | 316 | fs/sysv/namei.c | inode = sysv_new_inode(dir); |
dir | 318 | fs/sysv/namei.c | iput(dir); |
dir | 325 | fs/sysv/namei.c | iput(dir); |
dir | 335 | fs/sysv/namei.c | de->inode = dir->i_ino; |
dir | 341 | fs/sysv/namei.c | if (dir->i_mode & S_ISGID) |
dir | 344 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
dir | 346 | fs/sysv/namei.c | iput(dir); |
dir | 353 | fs/sysv/namei.c | dir->i_nlink++; |
dir | 354 | fs/sysv/namei.c | dir->i_dirt = 1; |
dir | 355 | fs/sysv/namei.c | iput(dir); |
dir | 420 | fs/sysv/namei.c | int sysv_rmdir(struct inode * dir, const char * name, int len) |
dir | 428 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 433 | fs/sysv/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 435 | fs/sysv/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 437 | fs/sysv/namei.c | current->fsuid != dir->i_uid) |
dir | 439 | fs/sysv/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 441 | fs/sysv/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 465 | fs/sysv/namei.c | dir->i_nlink--; |
dir | 466 | fs/sysv/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 467 | fs/sysv/namei.c | dir->i_dirt=1; |
dir | 470 | fs/sysv/namei.c | iput(dir); |
dir | 476 | fs/sysv/namei.c | int sysv_unlink(struct inode * dir, const char * name, int len) |
dir | 486 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 489 | fs/sysv/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 501 | fs/sysv/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 503 | fs/sysv/namei.c | current->fsuid != dir->i_uid) |
dir | 516 | fs/sysv/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 517 | fs/sysv/namei.c | dir->i_dirt = 1; |
dir | 519 | fs/sysv/namei.c | inode->i_ctime = dir->i_ctime; |
dir | 525 | fs/sysv/namei.c | iput(dir); |
dir | 529 | fs/sysv/namei.c | int sysv_symlink(struct inode * dir, const char * name, int len, const char * symname) |
dir | 540 | fs/sysv/namei.c | if (!(inode = sysv_new_inode(dir))) { |
dir | 541 | fs/sysv/namei.c | iput(dir); |
dir | 548 | fs/sysv/namei.c | iput(dir); |
dir | 564 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 570 | fs/sysv/namei.c | iput(dir); |
dir | 573 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
dir | 578 | fs/sysv/namei.c | iput(dir); |
dir | 584 | fs/sysv/namei.c | iput(dir); |
dir | 589 | fs/sysv/namei.c | int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
dir | 597 | fs/sysv/namei.c | iput(dir); |
dir | 602 | fs/sysv/namei.c | iput(dir); |
dir | 605 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 608 | fs/sysv/namei.c | iput(dir); |
dir | 612 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
dir | 614 | fs/sysv/namei.c | iput(dir); |
dir | 621 | fs/sysv/namei.c | iput(dir); |
dir | 47 | fs/sysv/symlink.c | static int sysv_follow_link(struct inode * dir, struct inode * inode, |
dir | 54 | fs/sysv/symlink.c | if (!dir) { |
dir | 55 | fs/sysv/symlink.c | dir = current->fs->root; |
dir | 56 | fs/sysv/symlink.c | dir->i_count++; |
dir | 59 | fs/sysv/symlink.c | iput(dir); |
dir | 63 | fs/sysv/symlink.c | iput(dir); |
dir | 69 | fs/sysv/symlink.c | iput(dir); |
dir | 74 | fs/sysv/symlink.c | iput(dir); |
dir | 79 | fs/sysv/symlink.c | error = open_namei(bh->b_data,flag,mode,res_inode,dir); |
dir | 45 | fs/umsdos/dir.c | struct inode *dir, /* Point to a description of the super block */ |
dir | 56 | fs/umsdos/dir.c | umsdos_startlookup(dir); |
dir | 58 | fs/umsdos/dir.c | && dir == pseudo_root |
dir | 70 | fs/umsdos/dir.c | put_fs_long(dir->i_sb->s_mounted->i_ino,&dirent->d_ino); |
dir | 78 | fs/umsdos/dir.c | || (dir != dir->i_sb->s_mounted && filp->f_pos == 32)){ |
dir | 112 | fs/umsdos/dir.c | ret = msdos_readdir(dir,filp,dirent,count); |
dir | 116 | fs/umsdos/dir.c | struct inode *emd_dir = umsdos_emd_dir_lookup(dir,0); |
dir | 153 | fs/umsdos/dir.c | lret = umsdos_real_lookup (dir,info.fake.fname |
dir | 205 | fs/umsdos/dir.c | ret = umsdos_writeentry (dir,emd_dir,&info,1); |
dir | 215 | fs/umsdos/dir.c | umsdos_endlookup(dir); |
dir | 216 | fs/umsdos/dir.c | PRINTK (("read dir %p pos %d ret %d\n",dir,filp->f_pos,ret)); |
dir | 225 | fs/umsdos/dir.c | struct inode *dir, /* Point to a description of the super block */ |
dir | 234 | fs/umsdos/dir.c | ret = umsdos_readdir_x (dir,filp,dirent,1,count,&entry,1,&f_pos); |
dir | 243 | fs/umsdos/dir.c | struct inode *dir, |
dir | 277 | fs/umsdos/dir.c | if (inode->i_sb == dir->i_sb && !umsdos_isinit(inode)){ |
dir | 320 | fs/umsdos/dir.c | umsdos_patch_inode(inode,dir,emd_pos); |
dir | 334 | fs/umsdos/dir.c | struct inode *dir, |
dir | 348 | fs/umsdos/dir.c | struct inode *emddir = umsdos_emd_dir_lookup(dir,0); |
dir | 357 | fs/umsdos/dir.c | if (umsdos_readdir_kmem (dir,&filp,&dirent,1) <= 0){ |
dir | 365 | fs/umsdos/dir.c | inode->u.umsdos_i.i_dir_owner = dir->i_ino; |
dir | 379 | fs/umsdos/dir.c | if (umsdos_readdir_x(dir,&filp,&dirent |
dir | 386 | fs/umsdos/dir.c | umsdos_lookup_patch (dir,inode,entry,f_pos); |
dir | 399 | fs/umsdos/dir.c | struct inode *dir, |
dir | 404 | fs/umsdos/dir.c | umsdos_patch_inode (dir,NULL,0); |
dir | 405 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,"..",2,result); |
dir | 409 | fs/umsdos/dir.c | ret = umsdos_inode2entry (adir,dir,entry); |
dir | 425 | fs/umsdos/dir.c | struct inode *dir = inode; |
dir | 435 | fs/umsdos/dir.c | ret = umsdos_get_dirowner (inode,&dir); |
dir | 438 | fs/umsdos/dir.c | ret = umsdos_inode2entry (dir,inode,&entry); |
dir | 446 | fs/umsdos/dir.c | dir->i_count++; |
dir | 449 | fs/umsdos/dir.c | while (dir != dir->i_sb->s_mounted){ |
dir | 451 | fs/umsdos/dir.c | ret = umsdos_locate_ancestor (dir,&adir,&entry); |
dir | 452 | fs/umsdos/dir.c | iput (dir); |
dir | 453 | fs/umsdos/dir.c | dir = NULL; |
dir | 459 | fs/umsdos/dir.c | dir = adir; |
dir | 470 | fs/umsdos/dir.c | iput (dir); |
dir | 478 | fs/umsdos/dir.c | struct inode *dir, |
dir | 489 | fs/umsdos/dir.c | return dir == pseudo_root |
dir | 498 | fs/umsdos/dir.c | struct inode *dir, |
dir | 506 | fs/umsdos/dir.c | umsdos_startlookup(dir); |
dir | 508 | fs/umsdos/dir.c | *result = dir; |
dir | 509 | fs/umsdos/dir.c | dir->i_count++; |
dir | 512 | fs/umsdos/dir.c | if (pseudo_root != NULL && dir == pseudo_root->i_sb->s_mounted){ |
dir | 532 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,"..",2,result); |
dir | 533 | fs/umsdos/dir.c | PRINTK (("ancestor ret %d dir %p *result %p ",ret,dir,*result)); |
dir | 535 | fs/umsdos/dir.c | && *result != dir->i_sb->s_mounted |
dir | 543 | fs/umsdos/dir.c | }else if (umsdos_is_pseudodos(dir,name,len)){ |
dir | 548 | fs/umsdos/dir.c | *result = dir->i_sb->s_mounted; |
dir | 554 | fs/umsdos/dir.c | if (ret == 0) ret = umsdos_findentry (dir,&info,0); |
dir | 568 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,info.fake.fname,info.fake.len,result); |
dir | 573 | fs/umsdos/dir.c | umsdos_delentry (dir,&info,S_ISDIR(info.entry.mode)); |
dir | 575 | fs/umsdos/dir.c | umsdos_lookup_patch (dir,inode,&info.entry,info.f_pos); |
dir | 598 | fs/umsdos/dir.c | umsdos_endlookup(dir); |
dir | 599 | fs/umsdos/dir.c | iput (dir); |
dir | 607 | fs/umsdos/dir.c | struct inode *dir, |
dir | 612 | fs/umsdos/dir.c | return umsdos_lookup_x(dir,name,len,result,0); |
dir | 633 | fs/umsdos/dir.c | struct inode *dir; |
dir | 635 | fs/umsdos/dir.c | dir = hlink->i_sb->s_mounted; |
dir | 638 | fs/umsdos/dir.c | dir->i_count++; |
dir | 645 | fs/umsdos/dir.c | if (dir->u.umsdos_i.i_emd_dir == 0){ |
dir | 647 | fs/umsdos/dir.c | ret = msdos_lookup(dir,start,len,result); |
dir | 649 | fs/umsdos/dir.c | ret = umsdos_lookup_x(dir,start,len,result,1); |
dir | 653 | fs/umsdos/dir.c | dir = *result; |
dir | 112 | fs/umsdos/emd.c | struct inode *umsdos_emd_dir_lookup(struct inode *dir, int creat) |
dir | 115 | fs/umsdos/emd.c | if (dir->u.umsdos_i.i_emd_dir != 0){ |
dir | 116 | fs/umsdos/emd.c | ret = iget (dir->i_sb,dir->u.umsdos_i.i_emd_dir); |
dir | 118 | fs/umsdos/emd.c | ,dir->u.umsdos_i.i_emd_dir,ret,ret->i_count)); |
dir | 120 | fs/umsdos/emd.c | umsdos_real_lookup (dir,UMSDOS_EMD_FILE,UMSDOS_EMD_NAMELEN,&ret); |
dir | 124 | fs/umsdos/emd.c | dir->u.umsdos_i.i_emd_dir = ret->i_ino; |
dir | 128 | fs/umsdos/emd.c | dir->i_count++; |
dir | 129 | fs/umsdos/emd.c | code = msdos_create (dir,UMSDOS_EMD_FILE,UMSDOS_EMD_NAMELEN |
dir | 133 | fs/umsdos/emd.c | dir->u.umsdos_i.i_emd_dir = ret->i_ino; |
dir | 173 | fs/umsdos/emd.c | struct inode *dir, |
dir | 208 | fs/umsdos/emd.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 209 | fs/umsdos/emd.c | dir->i_dirt = 1; |
dir | 276 | fs/umsdos/emd.c | struct inode *dir, |
dir | 288 | fs/umsdos/emd.c | struct inode *emd_dir = umsdos_emd_dir_lookup(dir,1); |
dir | 376 | fs/umsdos/emd.c | struct inode *dir, |
dir | 380 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
dir | 384 | fs/umsdos/emd.c | ret = umsdos_writeentry(dir,emd_dir,info,0); |
dir | 395 | fs/umsdos/emd.c | struct inode *dir, |
dir | 402 | fs/umsdos/emd.c | ret = umsdos_find (dir,info,&emd_dir); |
dir | 423 | fs/umsdos/emd.c | struct inode *dir, |
dir | 428 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
dir | 438 | fs/umsdos/emd.c | ret = umsdos_writeentry(dir,emd_dir,info,1); |
dir | 453 | fs/umsdos/emd.c | int umsdos_isempty (struct inode *dir) |
dir | 456 | fs/umsdos/emd.c | struct inode *emd_dir = umsdos_emd_dir_lookup(dir,0); |
dir | 485 | fs/umsdos/emd.c | struct inode *dir, |
dir | 492 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
dir | 72 | fs/umsdos/inode.c | struct inode *dir, |
dir | 78 | fs/umsdos/inode.c | dir->i_count++; |
dir | 79 | fs/umsdos/inode.c | ret = msdos_lookup (dir,name,len,result); |
dir | 105 | fs/umsdos/inode.c | struct inode *dir, |
dir | 108 | fs/umsdos/inode.c | struct inode *emd_owner = umsdos_emd_dir_lookup(dir,1); |
dir | 109 | fs/umsdos/inode.c | inode->u.umsdos_i.i_dir_owner = dir->i_ino; |
dir | 133 | fs/umsdos/inode.c | struct inode *dir, /* May be NULL */ |
dir | 168 | fs/umsdos/inode.c | if (dir != NULL){ |
dir | 180 | fs/umsdos/inode.c | if (dir != NULL){ |
dir | 191 | fs/umsdos/inode.c | umsdos_set_dirinfo (inode,dir,f_pos); |
dir | 193 | fs/umsdos/inode.c | }else if (dir != NULL){ |
dir | 198 | fs/umsdos/inode.c | struct inode *emd_owner = umsdos_emd_dir_lookup(dir,1); |
dir | 221 | fs/umsdos/inode.c | struct inode *dir = *result = iget(inode->i_sb,ino); |
dir | 222 | fs/umsdos/inode.c | if (dir != NULL){ |
dir | 223 | fs/umsdos/inode.c | umsdos_patch_inode (dir,NULL,0); |
dir | 23 | fs/umsdos/ioctl.c | struct inode *dir, |
dir | 79 | fs/umsdos/ioctl.c | ret = msdos_readdir(dir,filp,&idata->dos_dirent,1); |
dir | 92 | fs/umsdos/ioctl.c | struct inode *emd_dir = umsdos_emd_dir_lookup (dir,0); |
dir | 136 | fs/umsdos/ioctl.c | struct inode *emd_dir = umsdos_emd_dir_lookup (dir,1); |
dir | 140 | fs/umsdos/ioctl.c | dir->i_op = ret |
dir | 162 | fs/umsdos/ioctl.c | ret = umsdos_newentry (dir,&info); |
dir | 179 | fs/umsdos/ioctl.c | ret = umsdos_delentry (dir,&info |
dir | 189 | fs/umsdos/ioctl.c | dir->i_count++; |
dir | 190 | fs/umsdos/ioctl.c | ret = msdos_unlink (dir,data.dos_dirent.d_name |
dir | 200 | fs/umsdos/ioctl.c | dir->i_count++; |
dir | 201 | fs/umsdos/ioctl.c | ret = msdos_rmdir (dir,data.dos_dirent.d_name |
dir | 215 | fs/umsdos/ioctl.c | ret = umsdos_real_lookup (dir,data.dos_dirent.d_name |
dir | 247 | fs/umsdos/ioctl.c | dir->i_sb->u.msdos_sb.fs_uid = data.umsdos_dirent.uid; |
dir | 248 | fs/umsdos/ioctl.c | dir->i_sb->u.msdos_sb.fs_gid = data.umsdos_dirent.gid; |
dir | 249 | fs/umsdos/ioctl.c | dir->i_sb->u.msdos_sb.fs_umask = data.umsdos_dirent.mode; |
dir | 31 | fs/umsdos/namei.c | static int umsdos_waitcreate(struct inode *dir) |
dir | 34 | fs/umsdos/namei.c | if (dir->u.umsdos_i.u.dir_info.creating |
dir | 35 | fs/umsdos/namei.c | && dir->u.umsdos_i.u.dir_info.pid != current->pid){ |
dir | 36 | fs/umsdos/namei.c | sleep_on(&dir->u.umsdos_i.u.dir_info.p); |
dir | 44 | fs/umsdos/namei.c | static void umsdos_waitlookup (struct inode *dir) |
dir | 46 | fs/umsdos/namei.c | while (dir->u.umsdos_i.u.dir_info.looking){ |
dir | 47 | fs/umsdos/namei.c | sleep_on(&dir->u.umsdos_i.u.dir_info.p); |
dir | 53 | fs/umsdos/namei.c | void umsdos_lockcreate (struct inode *dir) |
dir | 87 | fs/umsdos/namei.c | while (umsdos_waitcreate(dir)!=0); |
dir | 88 | fs/umsdos/namei.c | dir->u.umsdos_i.u.dir_info.creating++; |
dir | 89 | fs/umsdos/namei.c | dir->u.umsdos_i.u.dir_info.pid = current->pid; |
dir | 90 | fs/umsdos/namei.c | umsdos_waitlookup (dir); |
dir | 120 | fs/umsdos/namei.c | void umsdos_startlookup (struct inode *dir) |
dir | 122 | fs/umsdos/namei.c | while (umsdos_waitcreate (dir) != 0); |
dir | 123 | 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 | 400 | fs/umsdos/namei.c | struct inode * dir, |
dir | 419 | fs/umsdos/namei.c | dir->i_count++; /* We keep the inode in case we need it */ |
dir | 421 | fs/umsdos/namei.c | ret = umsdos_create_any (dir,name,len,mode,0,flags,&inode); |
dir | 440 | fs/umsdos/namei.c | UMSDOS_unlink (dir,name,len); |
dir | 441 | fs/umsdos/namei.c | dir = NULL; |
dir | 444 | fs/umsdos/namei.c | iput (dir); |
dir | 453 | fs/umsdos/namei.c | struct inode * dir, |
dir | 458 | fs/umsdos/namei.c | return umsdos_symlink_x (dir,name,len,symname,S_IFLNK|0777,0); |
dir | 465 | fs/umsdos/namei.c | struct inode * dir, |
dir | 540 | fs/umsdos/namei.c | }else if ((ret = umsdos_nevercreat(dir,name,len,-EPERM))==0){ |
dir | 547 | fs/umsdos/namei.c | umsdos_lockcreate2(dir,olddir); |
dir | 589 | fs/umsdos/namei.c | dir->i_count++; |
dir | 590 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len |
dir | 606 | fs/umsdos/namei.c | dir->i_count++; |
dir | 607 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len,path |
dir | 615 | fs/umsdos/namei.c | umsdos_unlockcreate(dir); |
dir | 626 | fs/umsdos/namei.c | iput (dir); |
dir | 638 | fs/umsdos/namei.c | struct inode *dir, |
dir | 645 | fs/umsdos/namei.c | return umsdos_create_any (dir,name,len,mode,0,0,result); |
dir | 651 | fs/umsdos/namei.c | struct inode * dir, |
dir | 656 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EEXIST); |
dir | 665 | fs/umsdos/namei.c | info.entry.gid = (dir->i_mode & S_ISGID) |
dir | 666 | fs/umsdos/namei.c | ? dir->i_gid : current->fsgid; |
dir | 670 | fs/umsdos/namei.c | umsdos_lockcreate(dir); |
dir | 672 | fs/umsdos/namei.c | ret = umsdos_newentry (dir,&info); |
dir | 675 | fs/umsdos/namei.c | dir->i_count++; |
dir | 676 | fs/umsdos/namei.c | ret = msdos_mkdir (dir,info.fake.fname,info.fake.len,mode); |
dir | 678 | fs/umsdos/namei.c | umsdos_delentry (dir,&info,1); |
dir | 691 | fs/umsdos/namei.c | ret = umsdos_real_lookup (dir,info.fake.fname |
dir | 706 | fs/umsdos/namei.c | umsdos_unlockcreate(dir); |
dir | 710 | fs/umsdos/namei.c | iput (dir); |
dir | 717 | fs/umsdos/namei.c | struct inode * dir, |
dir | 738 | fs/umsdos/namei.c | int ret = umsdos_create_any (dir,name,len,mode,rdev,0,&inode); |
dir | 747 | fs/umsdos/namei.c | struct inode * dir, |
dir | 832 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
dir | 835 | fs/umsdos/namei.c | dir->i_count++; |
dir | 836 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&sdir); |
dir | 840 | fs/umsdos/namei.c | umsdos_lockcreate(dir); |
dir | 854 | fs/umsdos/namei.c | PRINTK (("isempty ret %d nlink %d ",ret,dir->i_nlink)); |
dir | 857 | fs/umsdos/namei.c | dir->i_count++; |
dir | 861 | fs/umsdos/namei.c | umsdos_findentry (dir,&info,2); |
dir | 862 | fs/umsdos/namei.c | ret = msdos_rmdir (dir,info.fake.fname |
dir | 865 | fs/umsdos/namei.c | ret = umsdos_delentry (dir,&info,1); |
dir | 875 | fs/umsdos/namei.c | umsdos_unlockcreate(dir); |
dir | 878 | fs/umsdos/namei.c | iput (dir); |
dir | 886 | fs/umsdos/namei.c | struct inode * dir, |
dir | 891 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
dir | 895 | fs/umsdos/namei.c | umsdos_lockcreate(dir); |
dir | 896 | fs/umsdos/namei.c | ret = umsdos_findentry(dir,&info,1); |
dir | 913 | fs/umsdos/namei.c | dir->i_count++; |
dir | 914 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&inode); |
dir | 938 | fs/umsdos/namei.c | ret = umsdos_delentry (dir,&info,0); |
dir | 941 | fs/umsdos/namei.c | dir->i_count++; |
dir | 942 | fs/umsdos/namei.c | ret = msdos_unlink_umsdos (dir,info.fake.fname |
dir | 949 | fs/umsdos/namei.c | umsdos_unlockcreate(dir); |
dir | 952 | fs/umsdos/namei.c | iput (dir); |
dir | 28 | fs/umsdos/rdir.c | struct inode *dir, |
dir | 35 | fs/umsdos/rdir.c | ret = msdos_readdir(dir,filp,dirent,count); |
dir | 38 | fs/umsdos/rdir.c | && dir->i_sb->s_mounted == pseudo_root->i_sb->s_mounted){ |
dir | 49 | fs/umsdos/rdir.c | && dir == dir->i_sb->s_mounted |
dir | 50 | fs/umsdos/rdir.c | && dir == pseudo_root->i_sb->s_mounted){ |
dir | 64 | fs/umsdos/rdir.c | struct inode *dir, |
dir | 74 | fs/umsdos/rdir.c | && dir == dir->i_sb->s_mounted |
dir | 75 | fs/umsdos/rdir.c | && dir == pseudo_root->i_sb->s_mounted){ |
dir | 84 | fs/umsdos/rdir.c | ret = umsdos_real_lookup (dir,name,len,result); |
dir | 102 | fs/umsdos/rdir.c | iput (dir); |
dir | 107 | fs/umsdos/rdir.c | struct inode *dir, |
dir | 126 | fs/umsdos/rdir.c | if (umsdos_is_pseudodos(dir,name,len)){ |
dir | 137 | fs/umsdos/rdir.c | umsdos_lockcreate (dir); |
dir | 138 | fs/umsdos/rdir.c | dir->i_count++; |
dir | 139 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
dir | 142 | fs/umsdos/rdir.c | dir->i_count++; |
dir | 143 | fs/umsdos/rdir.c | ret = UMSDOS_rlookup (dir,name,len,&sdir); |
dir | 161 | fs/umsdos/rdir.c | dir->i_count++; |
dir | 162 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
dir | 171 | fs/umsdos/rdir.c | umsdos_unlockcreate (dir); |
dir | 173 | fs/umsdos/rdir.c | iput (dir); |
dir | 51 | fs/umsdos/symlink.c | struct inode * dir, |
dir | 64 | fs/umsdos/symlink.c | if (!dir) { |
dir | 65 | fs/umsdos/symlink.c | dir = current->fs[1].root; |
dir | 66 | fs/umsdos/symlink.c | dir->i_count++; |
dir | 85 | fs/umsdos/symlink.c | ret = open_namei(path,flag,mode,res_inode,dir); |
dir | 87 | fs/umsdos/symlink.c | dir = NULL; |
dir | 96 | fs/umsdos/symlink.c | iput(dir); |
dir | 305 | fs/xiafs/bitmap.c | struct inode * xiafs_new_inode(struct inode * dir) |
dir | 311 | fs/xiafs/bitmap.c | sb = dir->i_sb; |
dir | 312 | fs/xiafs/bitmap.c | if (!dir || !(inode = get_empty_inode())) |
dir | 317 | fs/xiafs/bitmap.c | tmp=get_free_ibit(sb, dir->i_ino); |
dir | 326 | fs/xiafs/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
dir | 115 | fs/xiafs/namei.c | int xiafs_lookup(struct inode * dir, const char * name, int len, |
dir | 123 | fs/xiafs/namei.c | if (!dir) |
dir | 125 | fs/xiafs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 126 | fs/xiafs/namei.c | iput(dir); |
dir | 129 | fs/xiafs/namei.c | if (!(bh = xiafs_find_entry(dir, name, len, &dep, NULL))) { |
dir | 130 | fs/xiafs/namei.c | iput(dir); |
dir | 135 | fs/xiafs/namei.c | if (!(*result = iget(dir->i_sb, ino))) { |
dir | 136 | fs/xiafs/namei.c | iput(dir); |
dir | 139 | fs/xiafs/namei.c | iput(dir); |
dir | 153 | fs/xiafs/namei.c | static struct buffer_head * xiafs_add_entry(struct inode * dir, |
dir | 162 | fs/xiafs/namei.c | if (!dir || !namelen || namelen > _XIAFS_NAME_LEN) |
dir | 165 | fs/xiafs/namei.c | if (dir->i_size & (XIAFS_ZSIZE(dir->i_sb) - 1)) { |
dir | 171 | fs/xiafs/namei.c | bh = xiafs_bread(dir, pos >> XIAFS_ZSIZE_BITS(dir->i_sb), pos ? 1:0); |
dir | 186 | fs/xiafs/namei.c | while (offset < XIAFS_ZSIZE(dir->i_sb)) { |
dir | 187 | fs/xiafs/namei.c | if (pos >= dir->i_size) { |
dir | 191 | fs/xiafs/namei.c | de->d_rec_len=XIAFS_ZSIZE(dir->i_sb); |
dir | 192 | fs/xiafs/namei.c | dir->i_size += XIAFS_ZSIZE(dir->i_sb); |
dir | 193 | fs/xiafs/namei.c | dir->i_dirt = 1; |
dir | 195 | fs/xiafs/namei.c | if (de->d_ino > dir->i_sb->u.xiafs_sb.s_ninodes || |
dir | 197 | fs/xiafs/namei.c | (char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(dir->i_sb) || |
dir | 219 | fs/xiafs/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 220 | fs/xiafs/namei.c | dir->i_dirt = 1; |
dir | 235 | fs/xiafs/namei.c | if (offset > XIAFS_ZSIZE(dir->i_sb)) { |
dir | 239 | fs/xiafs/namei.c | pos+=XIAFS_ZSIZE(dir->i_sb); |
dir | 244 | fs/xiafs/namei.c | int xiafs_create(struct inode * dir, const char * name, int len, int mode, |
dir | 252 | fs/xiafs/namei.c | if (!dir) |
dir | 254 | fs/xiafs/namei.c | inode = xiafs_new_inode(dir); |
dir | 256 | fs/xiafs/namei.c | iput(dir); |
dir | 262 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
dir | 267 | fs/xiafs/namei.c | iput(dir); |
dir | 273 | fs/xiafs/namei.c | iput(dir); |
dir | 278 | fs/xiafs/namei.c | int xiafs_mknod(struct inode *dir, const char *name, int len, int mode, int rdev) |
dir | 284 | fs/xiafs/namei.c | if (!dir) |
dir | 286 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
dir | 289 | fs/xiafs/namei.c | iput(dir); |
dir | 292 | fs/xiafs/namei.c | inode = xiafs_new_inode(dir); |
dir | 294 | fs/xiafs/namei.c | iput(dir); |
dir | 304 | fs/xiafs/namei.c | if (dir->i_mode & S_ISGID) |
dir | 319 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
dir | 324 | fs/xiafs/namei.c | iput(dir); |
dir | 330 | fs/xiafs/namei.c | iput(dir); |
dir | 335 | fs/xiafs/namei.c | int xiafs_mkdir(struct inode * dir, const char * name, int len, int mode) |
dir | 341 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
dir | 344 | fs/xiafs/namei.c | iput(dir); |
dir | 347 | fs/xiafs/namei.c | if (dir->i_nlink > 64000) { |
dir | 348 | fs/xiafs/namei.c | iput(dir); |
dir | 351 | fs/xiafs/namei.c | inode = xiafs_new_inode(dir); |
dir | 353 | fs/xiafs/namei.c | iput(dir); |
dir | 357 | fs/xiafs/namei.c | inode->i_size = XIAFS_ZSIZE(dir->i_sb); |
dir | 361 | fs/xiafs/namei.c | iput(dir); |
dir | 373 | fs/xiafs/namei.c | de->d_ino = dir->i_ino; |
dir | 376 | fs/xiafs/namei.c | de->d_rec_len=XIAFS_ZSIZE(dir->i_sb)-12; |
dir | 381 | fs/xiafs/namei.c | if (dir->i_mode & S_ISGID) |
dir | 384 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
dir | 386 | fs/xiafs/namei.c | iput(dir); |
dir | 393 | fs/xiafs/namei.c | dir->i_nlink++; |
dir | 394 | fs/xiafs/namei.c | dir->i_dirt = 1; |
dir | 395 | fs/xiafs/namei.c | iput(dir); |
dir | 484 | fs/xiafs/namei.c | int xiafs_rmdir(struct inode * dir, const char * name, int len) |
dir | 492 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
dir | 497 | fs/xiafs/namei.c | if (!(inode = iget(dir->i_sb, de->d_ino))) |
dir | 499 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 501 | fs/xiafs/namei.c | current->fsuid != dir->i_uid) |
dir | 503 | fs/xiafs/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 505 | fs/xiafs/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 525 | fs/xiafs/namei.c | dir->i_nlink--; |
dir | 526 | fs/xiafs/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 527 | fs/xiafs/namei.c | dir->i_dirt=1; |
dir | 530 | fs/xiafs/namei.c | iput(dir); |
dir | 536 | fs/xiafs/namei.c | int xiafs_unlink(struct inode * dir, const char * name, int len) |
dir | 546 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
dir | 549 | fs/xiafs/namei.c | if (!(inode = iget(dir->i_sb, de->d_ino))) |
dir | 561 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && !fsuser() && |
dir | 563 | fs/xiafs/namei.c | current->fsuid != dir->i_uid) |
dir | 571 | fs/xiafs/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 572 | fs/xiafs/namei.c | dir->i_dirt = 1; |
dir | 579 | fs/xiafs/namei.c | iput(dir); |
dir | 583 | fs/xiafs/namei.c | int xiafs_symlink(struct inode * dir, const char * name, |
dir | 592 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len, &de, NULL); |
dir | 595 | fs/xiafs/namei.c | iput(dir); |
dir | 598 | fs/xiafs/namei.c | if (!(inode = xiafs_new_inode(dir))) { |
dir | 599 | fs/xiafs/namei.c | iput(dir); |
dir | 606 | fs/xiafs/namei.c | iput(dir); |
dir | 619 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
dir | 624 | fs/xiafs/namei.c | iput(dir); |
dir | 630 | fs/xiafs/namei.c | iput(dir); |
dir | 635 | fs/xiafs/namei.c | int xiafs_link(struct inode * oldinode, struct inode * dir, |
dir | 643 | fs/xiafs/namei.c | iput(dir); |
dir | 648 | fs/xiafs/namei.c | iput(dir); |
dir | 651 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, NULL); |
dir | 654 | fs/xiafs/namei.c | iput(dir); |
dir | 658 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
dir | 660 | fs/xiafs/namei.c | iput(dir); |
dir | 667 | fs/xiafs/namei.c | iput(dir); |
dir | 75 | fs/xiafs/symlink.c | static int xiafs_follow_link(struct inode * dir, struct inode * inode, |
dir | 82 | fs/xiafs/symlink.c | if (!dir) { |
dir | 83 | fs/xiafs/symlink.c | dir = current->fs->root; |
dir | 84 | fs/xiafs/symlink.c | dir->i_count++; |
dir | 87 | fs/xiafs/symlink.c | iput(dir); |
dir | 91 | fs/xiafs/symlink.c | iput(dir); |
dir | 101 | fs/xiafs/symlink.c | iput(dir); |
dir | 106 | fs/xiafs/symlink.c | iput(dir); |
dir | 111 | fs/xiafs/symlink.c | error = open_namei(bh->b_data,flag,mode,res_inode,dir); |
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 | 80 | include/linux/minix_fs.h | extern int minix_lookup(struct inode * dir,const char * name, int len, |
dir | 82 | include/linux/minix_fs.h | extern int minix_create(struct inode * dir,const char * name, int len, int mode, |
dir | 84 | include/linux/minix_fs.h | extern int minix_mkdir(struct inode * dir, const char * name, int len, int mode); |
dir | 85 | include/linux/minix_fs.h | extern int minix_rmdir(struct inode * dir, const char * name, int len); |
dir | 86 | include/linux/minix_fs.h | extern int minix_unlink(struct inode * dir, const char * name, int len); |
dir | 89 | include/linux/minix_fs.h | extern int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
dir | 90 | include/linux/minix_fs.h | extern int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
dir | 93 | include/linux/minix_fs.h | extern struct inode * minix_new_inode(const struct inode * dir); |
dir | 131 | include/linux/msdos_fs.h | extern int msdos_get_entry(struct inode *dir,loff_t *pos,struct buffer_head **bh, |
dir | 133 | include/linux/msdos_fs.h | extern int msdos_scan(struct inode *dir,char *name,struct buffer_head **res_bh, |
dir | 135 | include/linux/msdos_fs.h | extern int msdos_parent_ino(struct inode *dir,int locked); |
dir | 136 | include/linux/msdos_fs.h | extern int msdos_subdirs(struct inode *dir); |
dir | 152 | include/linux/msdos_fs.h | extern int msdos_lookup(struct inode *dir,const char *name,int len, |
dir | 154 | include/linux/msdos_fs.h | extern int msdos_create(struct inode *dir,const char *name,int len,int mode, |
dir | 156 | include/linux/msdos_fs.h | extern int msdos_mkdir(struct inode *dir,const char *name,int len,int mode); |
dir | 157 | include/linux/msdos_fs.h | extern int msdos_rmdir(struct inode *dir,const char *name,int len); |
dir | 158 | include/linux/msdos_fs.h | extern int msdos_unlink(struct inode *dir,const char *name,int len); |
dir | 159 | include/linux/msdos_fs.h | extern int msdos_unlink_umsdos(struct inode *dir,const char *name,int len); |
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 | 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 | 65 | include/linux/xia_fs.h | extern int xiafs_lookup(struct inode * dir,const char * name, int len, |
dir | 67 | include/linux/xia_fs.h | extern int xiafs_create(struct inode * dir,const char * name, int len, int mode, |
dir | 69 | include/linux/xia_fs.h | extern int xiafs_mkdir(struct inode * dir, const char * name, int len, int mode); |
dir | 70 | include/linux/xia_fs.h | extern int xiafs_rmdir(struct inode * dir, const char * name, int len); |
dir | 71 | include/linux/xia_fs.h | extern int xiafs_unlink(struct inode * dir, const char * name, int len); |
dir | 74 | include/linux/xia_fs.h | extern int xiafs_link(struct inode * oldinode, struct inode * dir, |
dir | 76 | include/linux/xia_fs.h | extern int xiafs_mknod(struct inode * dir, const char * name, int len, |
dir | 81 | include/linux/xia_fs.h | extern struct inode * xiafs_new_inode(struct inode * dir); |
dir | 89 | mm/filemap.c | unsigned long *page_table, *dir; |
dir | 93 | mm/filemap.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,start); |
dir | 99 | mm/filemap.c | for ( ; size > 0; ++dir, size -= pcnt, |
dir | 101 | mm/filemap.c | if (!(PAGE_PRESENT & (page_dir = *dir))) { |
dir | 290 | mm/memory.c | unsigned long *page_table, *dir; |
dir | 298 | mm/memory.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,from); |
dir | 303 | mm/memory.c | for ( ; size > 0; ++dir, size -= pcnt, |
dir | 305 | mm/memory.c | if (!(page_dir = *dir)) { |
dir | 331 | mm/memory.c | *dir = 0; |
dir | 341 | mm/memory.c | unsigned long *page_table, *dir; |
dir | 356 | mm/memory.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,from); |
dir | 363 | mm/memory.c | if (!(PAGE_PRESENT & *dir)) { |
dir | 369 | mm/memory.c | if (PAGE_PRESENT & *dir) { |
dir | 371 | mm/memory.c | page_table = (unsigned long *)(PAGE_MASK & *dir++); |
dir | 373 | mm/memory.c | *dir++ = ((unsigned long) page_table) | PAGE_TABLE; |
dir | 375 | mm/memory.c | page_table = (unsigned long *)(PAGE_MASK & *dir++); |
dir | 404 | mm/memory.c | unsigned long *page_table, *dir; |
dir | 418 | mm/memory.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,from); |
dir | 425 | mm/memory.c | if (!(PAGE_PRESENT & *dir)) { |
dir | 431 | mm/memory.c | *dir++ = ((unsigned long) page_table) | PAGE_TABLE; |
dir | 434 | mm/memory.c | page_table = (unsigned long *)(PAGE_MASK & *dir++); |
dir | 23 | mm/mprotect.c | unsigned long *page_table, *dir; |
dir | 27 | mm/mprotect.c | dir = PAGE_DIR_OFFSET(current->tss.cr3, start); |
dir | 31 | mm/mprotect.c | page = *dir; |
dir | 32 | mm/mprotect.c | dir++; |