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 | 690 | drivers/scsi/buslogic.c | ccb[mbo].dir = direction; |
dir | 147 | drivers/scsi/buslogic.h | unsigned char dir; |
dir | 246 | fs/ext/freelists.c | struct inode * ext_new_inode(const struct inode * dir) |
dir | 254 | fs/ext/freelists.c | if (!dir || !(inode=get_empty_inode())) |
dir | 256 | fs/ext/freelists.c | sb = dir->i_sb; |
dir | 293 | fs/ext/freelists.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
dir | 87 | fs/ext/namei.c | static struct buffer_head * ext_find_entry(struct inode * dir, |
dir | 96 | fs/ext/namei.c | if (!dir) |
dir | 105 | fs/ext/namei.c | bh = ext_bread(dir,0,0); |
dir | 114 | fs/ext/namei.c | while (offset < dir->i_size) { |
dir | 118 | fs/ext/namei.c | bh = ext_bread(dir,offset>>BLOCK_SIZE_BITS,0); |
dir | 130 | fs/ext/namei.c | dir->i_dev, dir->i_ino, offset, de->rec_len, de->name_len); |
dir | 140 | fs/ext/namei.c | if (offset + de->rec_len < dir->i_size && |
dir | 157 | fs/ext/namei.c | int ext_lookup(struct inode * dir,const char * name, int len, |
dir | 165 | fs/ext/namei.c | if (!dir) |
dir | 167 | fs/ext/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 168 | fs/ext/namei.c | iput(dir); |
dir | 171 | fs/ext/namei.c | if (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) { |
dir | 172 | fs/ext/namei.c | iput(dir); |
dir | 177 | fs/ext/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 178 | fs/ext/namei.c | iput(dir); |
dir | 181 | fs/ext/namei.c | iput(dir); |
dir | 195 | fs/ext/namei.c | static struct buffer_head * ext_add_entry(struct inode * dir, |
dir | 205 | fs/ext/namei.c | if (!dir) |
dir | 216 | fs/ext/namei.c | bh = ext_bread(dir,0,0); |
dir | 223 | fs/ext/namei.c | if ((char *)de >= BLOCK_SIZE+bh->b_data && offset < dir->i_size) { |
dir | 229 | fs/ext/namei.c | bh = ext_bread(dir,offset>>BLOCK_SIZE_BITS,0); |
dir | 234 | fs/ext/namei.c | if (offset >= dir->i_size) { |
dir | 247 | fs/ext/namei.c | dir->i_size += de->rec_len; |
dir | 248 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 250 | fs/ext/namei.c | dir->i_ctime = CURRENT_TIME; |
dir | 259 | fs/ext/namei.c | bh = ext_bread(dir,offset>>BLOCK_SIZE_BITS,1); |
dir | 267 | fs/ext/namei.c | dir->i_size += de->rec_len; |
dir | 268 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 270 | fs/ext/namei.c | dir->i_ctime = CURRENT_TIME; |
dir | 278 | fs/ext/namei.c | dir->i_dev, dir->i_ino, offset, de->rec_len, de->name_len); |
dir | 295 | fs/ext/namei.c | dir->i_mtime = dir->i_ctime = CURRENT_TIME; |
dir | 310 | fs/ext/namei.c | int ext_create(struct inode * dir,const char * name, int len, int mode, |
dir | 318 | fs/ext/namei.c | if (!dir) |
dir | 320 | fs/ext/namei.c | inode = ext_new_inode(dir); |
dir | 322 | fs/ext/namei.c | iput(dir); |
dir | 328 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 333 | fs/ext/namei.c | iput(dir); |
dir | 339 | fs/ext/namei.c | iput(dir); |
dir | 344 | fs/ext/namei.c | int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
dir | 350 | fs/ext/namei.c | if (!dir) |
dir | 352 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
dir | 355 | fs/ext/namei.c | iput(dir); |
dir | 358 | fs/ext/namei.c | inode = ext_new_inode(dir); |
dir | 360 | fs/ext/namei.c | iput(dir); |
dir | 370 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
dir | 387 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 392 | fs/ext/namei.c | iput(dir); |
dir | 398 | fs/ext/namei.c | iput(dir); |
dir | 403 | fs/ext/namei.c | int ext_mkdir(struct inode * dir, const char * name, int len, int mode) |
dir | 409 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
dir | 412 | fs/ext/namei.c | iput(dir); |
dir | 415 | fs/ext/namei.c | inode = ext_new_inode(dir); |
dir | 417 | fs/ext/namei.c | iput(dir); |
dir | 431 | fs/ext/namei.c | iput(dir); |
dir | 443 | fs/ext/namei.c | de->inode = dir->i_ino; |
dir | 451 | fs/ext/namei.c | if (dir->i_mode & S_ISGID) |
dir | 454 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 456 | fs/ext/namei.c | iput(dir); |
dir | 463 | fs/ext/namei.c | dir->i_nlink++; |
dir | 464 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 465 | fs/ext/namei.c | iput(dir); |
dir | 531 | fs/ext/namei.c | int ext_rmdir(struct inode * dir, const char * name, int len) |
dir | 539 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
dir | 544 | fs/ext/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 546 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
dir | 548 | fs/ext/namei.c | current->euid != dir->i_uid) |
dir | 550 | fs/ext/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 552 | fs/ext/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 574 | fs/ext/namei.c | dir->i_nlink--; |
dir | 575 | fs/ext/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 576 | fs/ext/namei.c | dir->i_dirt=1; |
dir | 579 | fs/ext/namei.c | iput(dir); |
dir | 585 | fs/ext/namei.c | int ext_unlink(struct inode * dir, const char * name, int len) |
dir | 594 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
dir | 597 | fs/ext/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 600 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
dir | 602 | fs/ext/namei.c | current->euid != dir->i_uid) |
dir | 618 | fs/ext/namei.c | dir->i_ctime = dir->i_mtime = inode->i_ctime; |
dir | 619 | fs/ext/namei.c | dir->i_dirt = 1; |
dir | 624 | fs/ext/namei.c | iput(dir); |
dir | 628 | fs/ext/namei.c | int ext_symlink(struct inode * dir, const char * name, int len, const char * symname) |
dir | 636 | fs/ext/namei.c | if (!(inode = ext_new_inode(dir))) { |
dir | 637 | fs/ext/namei.c | iput(dir); |
dir | 644 | fs/ext/namei.c | iput(dir); |
dir | 658 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
dir | 664 | fs/ext/namei.c | iput(dir); |
dir | 667 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 672 | fs/ext/namei.c | iput(dir); |
dir | 678 | fs/ext/namei.c | iput(dir); |
dir | 683 | fs/ext/namei.c | int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
dir | 690 | fs/ext/namei.c | iput(dir); |
dir | 695 | fs/ext/namei.c | iput(dir); |
dir | 698 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
dir | 701 | fs/ext/namei.c | iput(dir); |
dir | 705 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
dir | 707 | fs/ext/namei.c | iput(dir); |
dir | 714 | 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 | 27 | fs/ext2/dcache.c | unsigned long dir; |
dir | 55 | fs/ext2/dcache.c | #define hash(dev,dir) ((dev ^ dir) % HASH_QUEUES) |
dir | 85 | fs/ext2/dcache.c | unsigned long dir, |
dir | 91 | fs/ext2/dcache.c | p->dir != dir || p->len != len || |
dir | 109 | fs/ext2/dcache.c | p->dev, p->dir, p->name); |
dir | 190 | fs/ext2/dcache.c | remove_from_queue (hash (p->dev, p->dir), p); |
dir | 203 | fs/ext2/dcache.c | unsigned long ext2_dcache_lookup (unsigned short dev, unsigned long dir, |
dir | 217 | fs/ext2/dcache.c | printk ("dcache_lookup (%04x, %lu, %s, %d)\n", dev, dir, our_name, len); |
dir | 219 | fs/ext2/dcache.c | queue = hash (dev, dir); |
dir | 220 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, our_name, len))) { |
dir | 253 | fs/ext2/dcache.c | void ext2_dcache_add (unsigned short dev, unsigned long dir, const char * name, |
dir | 263 | fs/ext2/dcache.c | dev, dir, name, len, ino); |
dir | 267 | fs/ext2/dcache.c | queue = hash (dev, dir); |
dir | 268 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, name, len))) { |
dir | 269 | fs/ext2/dcache.c | p->dir = dir; |
dir | 291 | fs/ext2/dcache.c | remove_from_queue (hash (p->dev, p->dir), p); |
dir | 295 | fs/ext2/dcache.c | p->dir = dir; |
dir | 313 | fs/ext2/dcache.c | void ext2_dcache_remove (unsigned short dev, unsigned long dir, |
dir | 322 | fs/ext2/dcache.c | printk ("dcache_remove (%04x, %lu, %s, %d)\n", dev, dir, name, len); |
dir | 326 | fs/ext2/dcache.c | queue = hash (dev, dir); |
dir | 327 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, name, len))) { |
dir | 67 | fs/ext2/dir.c | int ext2_check_dir_entry (char * function, struct inode * dir, |
dir | 79 | fs/ext2/dir.c | else if (dir && ((char *) de - bh->b_data) + de->rec_len > |
dir | 80 | fs/ext2/dir.c | dir->i_sb->s_blocksize) |
dir | 84 | fs/ext2/dir.c | ext2_error (dir->i_sb, function, "bad directory entry: %s\n" |
dir | 330 | fs/ext2/ialloc.c | struct inode * ext2_new_inode (const struct inode * dir, int mode) |
dir | 342 | fs/ext2/ialloc.c | if (!dir || !(inode = get_empty_inode ())) |
dir | 344 | fs/ext2/ialloc.c | sb = dir->i_sb; |
dir | 388 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group; |
dir | 413 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group + 1; |
dir | 480 | fs/ext2/ialloc.c | inode->i_gid = dir->i_gid; |
dir | 481 | fs/ext2/ialloc.c | else if (dir->i_mode & S_ISGID) { |
dir | 482 | fs/ext2/ialloc.c | inode->i_gid = dir->i_gid; |
dir | 492 | fs/ext2/ialloc.c | inode->u.ext2_i.i_flags = dir->u.ext2_i.i_flags; |
dir | 75 | fs/ext2/namei.c | static struct buffer_head * ext2_find_entry (struct inode * dir, |
dir | 86 | fs/ext2/namei.c | if (!dir) |
dir | 88 | fs/ext2/namei.c | sb = dir->i_sb; |
dir | 103 | fs/ext2/namei.c | if ((block << EXT2_BLOCK_SIZE_BITS (sb)) >= dir->i_size) |
dir | 105 | fs/ext2/namei.c | bh = ext2_getblk (dir, block, 0, &err); |
dir | 113 | fs/ext2/namei.c | while (offset < dir->i_size) { |
dir | 137 | fs/ext2/namei.c | if (!ext2_check_dir_entry ("ext2_find_entry", dir, |
dir | 155 | fs/ext2/namei.c | dir->i_size) |
dir | 158 | fs/ext2/namei.c | bh = ext2_getblk (dir, block + NAMEI_RA_SIZE, 0, &err); |
dir | 170 | fs/ext2/namei.c | int ext2_lookup (struct inode * dir, const char * name, int len, |
dir | 178 | fs/ext2/namei.c | if (!dir) |
dir | 180 | fs/ext2/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 181 | fs/ext2/namei.c | iput (dir); |
dir | 185 | fs/ext2/namei.c | if (!(ino = ext2_dcache_lookup (dir->i_dev, dir->i_ino, name, len))) { |
dir | 187 | fs/ext2/namei.c | if (!(bh = ext2_find_entry (dir, name, len, &de))) { |
dir | 188 | fs/ext2/namei.c | iput (dir); |
dir | 193 | fs/ext2/namei.c | ext2_dcache_add (dir->i_dev, dir->i_ino, de->name, |
dir | 200 | fs/ext2/namei.c | if (!(*result = iget (dir->i_sb, ino))) { |
dir | 201 | fs/ext2/namei.c | iput (dir); |
dir | 204 | fs/ext2/namei.c | iput (dir); |
dir | 218 | fs/ext2/namei.c | static struct buffer_head * ext2_add_entry (struct inode * dir, |
dir | 231 | fs/ext2/namei.c | if (!dir) |
dir | 233 | fs/ext2/namei.c | sb = dir->i_sb; |
dir | 246 | fs/ext2/namei.c | if (dir->i_size == 0) |
dir | 251 | fs/ext2/namei.c | bh = ext2_bread (dir, 0, 0, err); |
dir | 262 | fs/ext2/namei.c | bh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 1, err); |
dir | 265 | fs/ext2/namei.c | if (dir->i_size <= offset) { |
dir | 266 | fs/ext2/namei.c | if (dir->i_size == 0) { |
dir | 276 | fs/ext2/namei.c | dir->i_size = offset + sb->s_blocksize; |
dir | 277 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 285 | fs/ext2/namei.c | if (!ext2_check_dir_entry ("ext2_add_entry", dir, de, bh, |
dir | 321 | fs/ext2/namei.c | dir->i_mtime = dir->i_ctime = CURRENT_TIME; |
dir | 322 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 339 | fs/ext2/namei.c | static int ext2_delete_entry (struct ext2_dir_entry * dir, |
dir | 352 | fs/ext2/namei.c | if (de == dir) { |
dir | 354 | fs/ext2/namei.c | pde->rec_len += dir->rec_len; |
dir | 355 | fs/ext2/namei.c | dir->inode = 0; |
dir | 365 | fs/ext2/namei.c | int ext2_create (struct inode * dir,const char * name, int len, int mode, |
dir | 374 | fs/ext2/namei.c | if (!dir) |
dir | 376 | fs/ext2/namei.c | inode = ext2_new_inode (dir, mode); |
dir | 378 | fs/ext2/namei.c | iput (dir); |
dir | 384 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 389 | fs/ext2/namei.c | iput (dir); |
dir | 394 | fs/ext2/namei.c | ext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len, |
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); |
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 | 460 | fs/ext2/namei.c | ext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len, |
dir | 464 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 469 | fs/ext2/namei.c | iput (dir); |
dir | 474 | fs/ext2/namei.c | int ext2_mkdir (struct inode * dir, const char * name, int len, int mode) |
dir | 481 | fs/ext2/namei.c | if (!dir) |
dir | 483 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 486 | fs/ext2/namei.c | iput (dir); |
dir | 489 | fs/ext2/namei.c | if (dir->i_nlink >= EXT2_LINK_MAX) { |
dir | 490 | fs/ext2/namei.c | iput (dir); |
dir | 493 | fs/ext2/namei.c | inode = ext2_new_inode (dir, S_IFDIR); |
dir | 495 | fs/ext2/namei.c | iput (dir); |
dir | 502 | fs/ext2/namei.c | iput (dir); |
dir | 515 | fs/ext2/namei.c | de->inode = dir->i_ino; |
dir | 523 | fs/ext2/namei.c | if (dir->i_mode & S_ISGID) |
dir | 526 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 528 | fs/ext2/namei.c | iput (dir); |
dir | 536 | fs/ext2/namei.c | ext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len, |
dir | 540 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 544 | fs/ext2/namei.c | dir->i_nlink++; |
dir | 545 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 546 | fs/ext2/namei.c | iput (dir); |
dir | 606 | fs/ext2/namei.c | int ext2_rmdir (struct inode * dir, const char * name, int len) |
dir | 614 | fs/ext2/namei.c | if (!dir) |
dir | 617 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 622 | fs/ext2/namei.c | if (!(inode = iget (dir->i_sb, de->inode))) |
dir | 624 | fs/ext2/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 633 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
dir | 635 | fs/ext2/namei.c | current->euid != dir->i_uid) |
dir | 637 | fs/ext2/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 665 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 678 | fs/ext2/namei.c | ext2_dcache_remove (dir->i_dev, dir->i_ino, de->name, de->name_len); |
dir | 682 | fs/ext2/namei.c | dir->i_nlink--; |
dir | 683 | fs/ext2/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 684 | fs/ext2/namei.c | dir->i_dirt = 1; |
dir | 686 | fs/ext2/namei.c | iput (dir); |
dir | 692 | fs/ext2/namei.c | int ext2_unlink (struct inode * dir, const char * name, int len) |
dir | 700 | fs/ext2/namei.c | if (!dir) |
dir | 704 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 707 | fs/ext2/namei.c | if (!(inode = iget (dir->i_sb, de->inode))) |
dir | 719 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
dir | 721 | fs/ext2/namei.c | current->euid != dir->i_uid) |
dir | 733 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 738 | fs/ext2/namei.c | ext2_dcache_remove (dir->i_dev, dir->i_ino, de->name, de->name_len); |
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))) { |
dir | 765 | fs/ext2/namei.c | iput (dir); |
dir | 779 | fs/ext2/namei.c | iput (dir); |
dir | 802 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 808 | fs/ext2/namei.c | iput (dir); |
dir | 811 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 816 | fs/ext2/namei.c | iput (dir); |
dir | 821 | fs/ext2/namei.c | ext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len, |
dir | 825 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 830 | fs/ext2/namei.c | iput (dir); |
dir | 835 | fs/ext2/namei.c | int ext2_link (struct inode * oldinode, struct inode * dir, |
dir | 844 | fs/ext2/namei.c | iput (dir); |
dir | 849 | fs/ext2/namei.c | iput (dir); |
dir | 852 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
dir | 855 | fs/ext2/namei.c | iput (dir); |
dir | 859 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
dir | 861 | fs/ext2/namei.c | iput (dir); |
dir | 867 | fs/ext2/namei.c | ext2_dcache_add (dir->i_dev, dir->i_ino, de->name, de->name_len, |
dir | 871 | fs/ext2/namei.c | if (IS_SYNC(dir)) { |
dir | 876 | fs/ext2/namei.c | iput (dir); |
dir | 50 | fs/ext2/symlink.c | static int ext2_follow_link(struct inode * dir, struct inode * inode, |
dir | 58 | fs/ext2/symlink.c | if (!dir) { |
dir | 59 | fs/ext2/symlink.c | dir = current->fs->root; |
dir | 60 | fs/ext2/symlink.c | dir->i_count++; |
dir | 63 | fs/ext2/symlink.c | iput (dir); |
dir | 67 | fs/ext2/symlink.c | iput (dir); |
dir | 72 | fs/ext2/symlink.c | iput (dir); |
dir | 78 | fs/ext2/symlink.c | iput (dir); |
dir | 86 | fs/ext2/symlink.c | error = open_namei (link, flag, mode, res_inode, dir); |
dir | 1101 | fs/hpfs/hpfs_fs.c | static int hpfs_lookup(struct inode *dir, const char *name, int len, |
dir | 1112 | fs/hpfs/hpfs_fs.c | if (dir == 0) |
dir | 1114 | fs/hpfs/hpfs_fs.c | if (!S_ISDIR(dir->i_mode)) |
dir | 1123 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, dir->i_hpfs_dno, "\001\001", 2, &qbh); |
dir | 1125 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, |
dir | 1126 | fs/hpfs/hpfs_fs.c | fnode_dno(dir->i_dev, dir->i_hpfs_parent_dir), |
dir | 1129 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh); |
dir | 1151 | fs/hpfs/hpfs_fs.c | if (!(inode = iget(dir->i_sb, ino))) |
dir | 1184 | fs/hpfs/hpfs_fs.c | iput(dir); |
dir | 1193 | fs/hpfs/hpfs_fs.c | iput(dir); |
dir | 218 | fs/isofs/dir.c | cache.dir = inode->i_ino; |
dir | 65 | fs/isofs/namei.c | static struct buffer_head * isofs_find_entry(struct inode * dir, |
dir | 68 | fs/isofs/namei.c | unsigned long bufsize = ISOFS_BUFFER_SIZE(dir); |
dir | 69 | fs/isofs/namei.c | unsigned char bufbits = ISOFS_BUFFER_BITS(dir); |
dir | 81 | fs/isofs/namei.c | if (!dir) return NULL; |
dir | 83 | fs/isofs/namei.c | if (!(block = dir->u.isofs_i.i_first_extent)) return NULL; |
dir | 88 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos >> bufbits); |
dir | 90 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) return NULL; |
dir | 92 | fs/isofs/namei.c | while (f_pos < dir->i_size) { |
dir | 94 | fs/isofs/namei.c | backlink = dir->i_ino; |
dir | 105 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
dir | 106 | 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 << bufbits, |
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 | 148 | fs/isofs/namei.c | << bufbits) != dir->i_ino) |
dir | 149 | fs/isofs/namei.c | inode_number = dir->u.isofs_i.i_backlink; |
dir | 151 | fs/isofs/namei.c | inode_number = dir->i_ino; |
dir | 158 | fs/isofs/namei.c | rrflag = get_rock_ridge_filename(de, &dpnt, &dlen, dir); |
dir | 162 | fs/isofs/namei.c | if(dir->i_sb->u.isofs_sb.s_mapping == 'n') { |
dir | 190 | fs/isofs/namei.c | isofs_lookup_grandparent(dir, |
dir | 191 | fs/isofs/namei.c | find_rock_ridge_relocation(de,dir)); |
dir | 210 | fs/isofs/namei.c | int isofs_lookup(struct inode * dir,const char * name, int len, |
dir | 217 | fs/isofs/namei.c | printk("lookup: %x %d\n",dir->i_ino, len); |
dir | 220 | fs/isofs/namei.c | if (!dir) |
dir | 223 | fs/isofs/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 224 | fs/isofs/namei.c | iput(dir); |
dir | 229 | fs/isofs/namei.c | if (dir->i_dev == cache.dev && |
dir | 230 | fs/isofs/namei.c | dir->i_ino == cache.dir && |
dir | 235 | fs/isofs/namei.c | ino_back = dir->i_ino; |
dir | 244 | fs/isofs/namei.c | if (!(bh = isofs_find_entry(dir,name,len, &ino, &ino_back))) { |
dir | 245 | fs/isofs/namei.c | iput(dir); |
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 | 181 | fs/minix/bitmap.c | struct inode * minix_new_inode(const struct inode * dir) |
dir | 188 | fs/minix/bitmap.c | if (!dir || !(inode = get_empty_inode())) |
dir | 190 | fs/minix/bitmap.c | sb = dir->i_sb; |
dir | 217 | fs/minix/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
dir | 68 | fs/minix/namei.c | static struct buffer_head * minix_find_entry(struct inode * dir, |
dir | 76 | fs/minix/namei.c | if (!dir || !dir->i_sb) |
dir | 78 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
dir | 88 | fs/minix/namei.c | while (block*BLOCK_SIZE+offset < dir->i_size) { |
dir | 90 | fs/minix/namei.c | bh = minix_bread(dir,block,0); |
dir | 111 | fs/minix/namei.c | int minix_lookup(struct inode * dir,const char * name, int len, |
dir | 119 | fs/minix/namei.c | if (!dir) |
dir | 121 | fs/minix/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 122 | fs/minix/namei.c | iput(dir); |
dir | 125 | fs/minix/namei.c | if (!(bh = minix_find_entry(dir,name,len,&de))) { |
dir | 126 | fs/minix/namei.c | iput(dir); |
dir | 131 | fs/minix/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 132 | fs/minix/namei.c | iput(dir); |
dir | 135 | fs/minix/namei.c | iput(dir); |
dir | 149 | fs/minix/namei.c | static int minix_add_entry(struct inode * dir, |
dir | 162 | fs/minix/namei.c | if (!dir || !dir->i_sb) |
dir | 164 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
dir | 178 | fs/minix/namei.c | bh = minix_bread(dir,block,1); |
dir | 184 | fs/minix/namei.c | if (block*bh->b_size + offset > dir->i_size) { |
dir | 186 | fs/minix/namei.c | dir->i_size = block*bh->b_size + offset; |
dir | 187 | fs/minix/namei.c | dir->i_dirt = 1; |
dir | 195 | fs/minix/namei.c | dir->i_mtime = dir->i_ctime = CURRENT_TIME; |
dir | 213 | fs/minix/namei.c | int minix_create(struct inode * dir,const char * name, int len, int mode, |
dir | 222 | fs/minix/namei.c | if (!dir) |
dir | 224 | fs/minix/namei.c | inode = minix_new_inode(dir); |
dir | 226 | fs/minix/namei.c | iput(dir); |
dir | 232 | fs/minix/namei.c | error = minix_add_entry(dir,name,len, &bh ,&de); |
dir | 237 | fs/minix/namei.c | iput(dir); |
dir | 243 | fs/minix/namei.c | iput(dir); |
dir | 248 | fs/minix/namei.c | int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
dir | 255 | fs/minix/namei.c | if (!dir) |
dir | 257 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 260 | fs/minix/namei.c | iput(dir); |
dir | 263 | fs/minix/namei.c | inode = minix_new_inode(dir); |
dir | 265 | fs/minix/namei.c | iput(dir); |
dir | 275 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
dir | 289 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
dir | 294 | fs/minix/namei.c | iput(dir); |
dir | 300 | fs/minix/namei.c | iput(dir); |
dir | 305 | fs/minix/namei.c | int minix_mkdir(struct inode * dir, const char * name, int len, int mode) |
dir | 313 | fs/minix/namei.c | if (!dir || !dir->i_sb) { |
dir | 314 | fs/minix/namei.c | iput(dir); |
dir | 317 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
dir | 318 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 321 | fs/minix/namei.c | iput(dir); |
dir | 324 | fs/minix/namei.c | if (dir->i_nlink >= MINIX_LINK_MAX) { |
dir | 325 | fs/minix/namei.c | iput(dir); |
dir | 328 | fs/minix/namei.c | inode = minix_new_inode(dir); |
dir | 330 | fs/minix/namei.c | iput(dir); |
dir | 337 | fs/minix/namei.c | iput(dir); |
dir | 347 | fs/minix/namei.c | de->inode = dir->i_ino; |
dir | 353 | fs/minix/namei.c | if (dir->i_mode & S_ISGID) |
dir | 356 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
dir | 358 | fs/minix/namei.c | iput(dir); |
dir | 365 | fs/minix/namei.c | dir->i_nlink++; |
dir | 366 | fs/minix/namei.c | dir->i_dirt = 1; |
dir | 367 | fs/minix/namei.c | iput(dir); |
dir | 431 | fs/minix/namei.c | int minix_rmdir(struct inode * dir, const char * name, int len) |
dir | 439 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 444 | fs/minix/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 446 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
dir | 448 | fs/minix/namei.c | current->euid != dir->i_uid) |
dir | 450 | fs/minix/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 452 | fs/minix/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 476 | fs/minix/namei.c | dir->i_nlink--; |
dir | 477 | fs/minix/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
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) && !suser() && |
dir | 514 | fs/minix/namei.c | current->euid != dir->i_uid) |
dir | 527 | fs/minix/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 528 | fs/minix/namei.c | dir->i_dirt = 1; |
dir | 530 | fs/minix/namei.c | inode->i_ctime = dir->i_ctime; |
dir | 536 | fs/minix/namei.c | iput(dir); |
dir | 540 | fs/minix/namei.c | int minix_symlink(struct inode * dir, const char * name, int len, const char * symname) |
dir | 548 | fs/minix/namei.c | if (!(inode = minix_new_inode(dir))) { |
dir | 549 | fs/minix/namei.c | iput(dir); |
dir | 556 | fs/minix/namei.c | iput(dir); |
dir | 570 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 576 | fs/minix/namei.c | iput(dir); |
dir | 579 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
dir | 584 | fs/minix/namei.c | iput(dir); |
dir | 590 | fs/minix/namei.c | iput(dir); |
dir | 595 | fs/minix/namei.c | int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
dir | 603 | fs/minix/namei.c | iput(dir); |
dir | 608 | fs/minix/namei.c | iput(dir); |
dir | 611 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
dir | 614 | fs/minix/namei.c | iput(dir); |
dir | 618 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
dir | 620 | fs/minix/namei.c | iput(dir); |
dir | 627 | 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 | 267 | fs/msdos/misc.c | int msdos_get_entry(struct inode *dir, off_t *pos,struct buffer_head **bh, |
dir | 275 | fs/msdos/misc.c | if ((sector = msdos_smap(dir,offset >> SECTOR_BITS)) == -1) |
dir | 282 | fs/msdos/misc.c | if (!(*bh = msdos_sread(dir->i_dev,sector,&data))) { |
dir | 455 | fs/msdos/misc.c | int msdos_parent_ino(struct inode *dir,int locked) |
dir | 460 | fs/msdos/misc.c | if (!S_ISDIR(dir->i_mode)) panic("Non-directory fed to m_p_i"); |
dir | 461 | fs/msdos/misc.c | if (dir->i_ino == MSDOS_ROOT_INO) return dir->i_ino; |
dir | 463 | fs/msdos/misc.c | if ((current = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,MSDOS_DOTDOT, |
dir | 470 | fs/msdos/misc.c | if ((prev = raw_scan(dir->i_sb,current,MSDOS_DOTDOT,&zero,NULL, |
dir | 475 | fs/msdos/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,¤t,&nr,NULL, |
dir | 491 | fs/msdos/misc.c | int msdos_subdirs(struct inode *dir) |
dir | 496 | fs/msdos/misc.c | if (dir->i_ino == MSDOS_ROOT_INO) |
dir | 497 | fs/msdos/misc.c | (void) raw_scan_root(dir->i_sb,NULL,&count,NULL,NULL,NULL); |
dir | 499 | fs/msdos/misc.c | if (!MSDOS_I(dir)->i_start) return 0; /* in mkdir */ |
dir | 500 | fs/msdos/misc.c | else (void) raw_scan_nonroot(dir->i_sb,MSDOS_I(dir)->i_start, |
dir | 512 | fs/msdos/misc.c | int msdos_scan(struct inode *dir,char *name,struct buffer_head **res_bh, |
dir | 518 | fs/msdos/misc.c | res = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,name,NULL,ino, |
dir | 520 | fs/msdos/misc.c | else res = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,NULL,NULL,ino, |
dir | 93 | fs/msdos/namei.c | static int msdos_find(struct inode *dir,const char *name,int len, |
dir | 99 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
dir | 101 | fs/msdos/namei.c | return msdos_scan(dir,msdos_name,bh,de,ino); |
dir | 105 | fs/msdos/namei.c | int msdos_lookup(struct inode *dir,const char *name,int len, |
dir | 114 | fs/msdos/namei.c | if (!dir) return -ENOENT; |
dir | 115 | fs/msdos/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 116 | fs/msdos/namei.c | iput(dir); |
dir | 120 | fs/msdos/namei.c | *result = dir; |
dir | 124 | fs/msdos/namei.c | ino = msdos_parent_ino(dir,0); |
dir | 125 | fs/msdos/namei.c | iput(dir); |
dir | 127 | fs/msdos/namei.c | if (!(*result = iget(dir->i_sb,ino))) return -EACCES; |
dir | 130 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) { |
dir | 131 | fs/msdos/namei.c | iput(dir); |
dir | 136 | fs/msdos/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 137 | fs/msdos/namei.c | iput(dir); |
dir | 142 | fs/msdos/namei.c | iput(dir); |
dir | 149 | fs/msdos/namei.c | fs_panic(dir->i_sb,"msdos_lookup: Can't happen"); |
dir | 150 | fs/msdos/namei.c | iput(dir); |
dir | 154 | fs/msdos/namei.c | iput(dir); |
dir | 161 | fs/msdos/namei.c | static int msdos_create_entry(struct inode *dir,char *name,int is_dir, |
dir | 168 | fs/msdos/namei.c | if ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) { |
dir | 170 | fs/msdos/namei.c | if (dir->i_ino == MSDOS_ROOT_INO) return -ENOSPC; |
dir | 171 | fs/msdos/namei.c | if ((res = msdos_add_cluster(dir)) < 0) return res; |
dir | 172 | fs/msdos/namei.c | if ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) return res; |
dir | 177 | fs/msdos/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 178 | fs/msdos/namei.c | dir->i_dirt = 1; |
dir | 182 | fs/msdos/namei.c | date_unix2dos(dir->i_mtime,&de->time,&de->date); |
dir | 185 | fs/msdos/namei.c | if ((*result = iget(dir->i_sb,ino)) != NULL) |
dir | 196 | fs/msdos/namei.c | int msdos_create(struct inode *dir,const char *name,int len,int mode, |
dir | 204 | fs/msdos/namei.c | if (!dir) return -ENOENT; |
dir | 205 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
dir | 207 | fs/msdos/namei.c | iput(dir); |
dir | 211 | fs/msdos/namei.c | if (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) { |
dir | 214 | fs/msdos/namei.c | iput(dir); |
dir | 217 | fs/msdos/namei.c | res = msdos_create_entry(dir,msdos_name,S_ISDIR(mode),result); |
dir | 219 | fs/msdos/namei.c | iput(dir); |
dir | 244 | fs/msdos/namei.c | int msdos_mkdir(struct inode *dir,const char *name,int len,int mode) |
dir | 252 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
dir | 254 | fs/msdos/namei.c | iput(dir); |
dir | 258 | fs/msdos/namei.c | if (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) { |
dir | 261 | fs/msdos/namei.c | iput(dir); |
dir | 264 | fs/msdos/namei.c | if ((res = msdos_create_entry(dir,msdos_name,1,&inode)) < 0) { |
dir | 266 | fs/msdos/namei.c | iput(dir); |
dir | 269 | fs/msdos/namei.c | dir->i_nlink++; |
dir | 283 | fs/msdos/namei.c | dot->i_size = dir->i_size; |
dir | 284 | fs/msdos/namei.c | MSDOS_I(dot)->i_start = MSDOS_I(dir)->i_start; |
dir | 285 | fs/msdos/namei.c | dot->i_nlink = dir->i_nlink; |
dir | 290 | fs/msdos/namei.c | iput(dir); |
dir | 294 | fs/msdos/namei.c | if (msdos_rmdir(dir,name,len) < 0) |
dir | 295 | fs/msdos/namei.c | fs_panic(dir->i_sb,"rmdir in mkdir failed"); |
dir | 301 | fs/msdos/namei.c | static int msdos_empty(struct inode *dir) |
dir | 307 | fs/msdos/namei.c | if (dir->i_count > 1) |
dir | 309 | fs/msdos/namei.c | if (MSDOS_I(dir)->i_start) { /* may be zero in mkdir */ |
dir | 312 | fs/msdos/namei.c | while (msdos_get_entry(dir,&pos,&bh,&de) > -1) |
dir | 326 | fs/msdos/namei.c | int msdos_rmdir(struct inode *dir,const char *name,int len) |
dir | 338 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done; |
dir | 340 | fs/msdos/namei.c | if (!(inode = iget(dir->i_sb,ino))) goto rmdir_done; |
dir | 344 | fs/msdos/namei.c | if (dir->i_dev != inode->i_dev || dir == inode) goto rmdir_done; |
dir | 349 | fs/msdos/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 350 | fs/msdos/namei.c | dir->i_nlink--; |
dir | 351 | fs/msdos/namei.c | inode->i_dirt = dir->i_dirt = 1; |
dir | 357 | fs/msdos/namei.c | iput(dir); |
dir | 363 | fs/msdos/namei.c | int msdos_unlink(struct inode *dir,const char *name,int len) |
dir | 372 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) |
dir | 374 | fs/msdos/namei.c | if (!(inode = iget(dir->i_sb,ino))) { |
dir | 383 | fs/msdos/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 385 | fs/msdos/namei.c | inode->i_dirt = dir->i_dirt = 1; |
dir | 391 | fs/msdos/namei.c | iput(dir); |
dir | 94 | fs/namei.c | int lookup(struct inode * dir,const char * name, int len, |
dir | 101 | fs/namei.c | if (!dir) |
dir | 104 | fs/namei.c | perm = permission(dir,MAY_EXEC); |
dir | 106 | fs/namei.c | if (dir == current->fs->root) { |
dir | 107 | fs/namei.c | *result = dir; |
dir | 109 | fs/namei.c | } else if ((sb = dir->i_sb) && (dir == sb->s_mounted)) { |
dir | 110 | fs/namei.c | sb = dir->i_sb; |
dir | 111 | fs/namei.c | iput(dir); |
dir | 112 | fs/namei.c | dir = sb->s_covered; |
dir | 113 | fs/namei.c | if (!dir) |
dir | 115 | fs/namei.c | dir->i_count++; |
dir | 118 | fs/namei.c | if (!dir->i_op || !dir->i_op->lookup) { |
dir | 119 | fs/namei.c | iput(dir); |
dir | 123 | fs/namei.c | iput(dir); |
dir | 127 | fs/namei.c | *result = dir; |
dir | 130 | fs/namei.c | return dir->i_op->lookup(dir,name,len,result); |
dir | 133 | fs/namei.c | int follow_link(struct inode * dir, struct inode * inode, |
dir | 136 | fs/namei.c | if (!dir || !inode) { |
dir | 137 | fs/namei.c | iput(dir); |
dir | 143 | fs/namei.c | iput(dir); |
dir | 147 | fs/namei.c | return inode->i_op->follow_link(dir,inode,flag,mode,res_inode); |
dir | 279 | fs/namei.c | struct inode * dir, *inode; |
dir | 284 | fs/namei.c | error = dir_namei(pathname,&namelen,&basename,base,&dir); |
dir | 289 | fs/namei.c | iput(dir); |
dir | 293 | fs/namei.c | if (!permission(dir,ACC_MODE(flag))) { |
dir | 294 | fs/namei.c | iput(dir); |
dir | 297 | fs/namei.c | *res_inode=dir; |
dir | 300 | fs/namei.c | dir->i_count++; /* lookup eats the dir */ |
dir | 302 | fs/namei.c | down(&dir->i_sem); |
dir | 303 | fs/namei.c | error = lookup(dir,basename,namelen,&inode); |
dir | 309 | fs/namei.c | } else if (!permission(dir,MAY_WRITE | MAY_EXEC)) |
dir | 311 | fs/namei.c | else if (!dir->i_op || !dir->i_op->create) |
dir | 313 | fs/namei.c | else if (IS_RDONLY(dir)) |
dir | 316 | fs/namei.c | dir->i_count++; /* create eats the dir */ |
dir | 317 | fs/namei.c | error = dir->i_op->create(dir,basename,namelen,mode,res_inode); |
dir | 318 | fs/namei.c | up(&dir->i_sem); |
dir | 319 | fs/namei.c | iput(dir); |
dir | 322 | fs/namei.c | up(&dir->i_sem); |
dir | 324 | fs/namei.c | error = lookup(dir,basename,namelen,&inode); |
dir | 326 | fs/namei.c | iput(dir); |
dir | 329 | fs/namei.c | error = follow_link(dir,inode,flag,mode,&inode); |
dir | 388 | fs/namei.c | struct inode * dir; |
dir | 391 | fs/namei.c | error = dir_namei(filename,&namelen,&basename, NULL, &dir); |
dir | 395 | fs/namei.c | iput(dir); |
dir | 398 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 399 | fs/namei.c | iput(dir); |
dir | 402 | fs/namei.c | if (!permission(dir,MAY_WRITE | MAY_EXEC)) { |
dir | 403 | fs/namei.c | iput(dir); |
dir | 406 | fs/namei.c | if (!dir->i_op || !dir->i_op->mknod) { |
dir | 407 | fs/namei.c | iput(dir); |
dir | 410 | fs/namei.c | dir->i_count++; |
dir | 411 | fs/namei.c | down(&dir->i_sem); |
dir | 412 | fs/namei.c | error = dir->i_op->mknod(dir,basename,namelen,mode,dev); |
dir | 413 | fs/namei.c | up(&dir->i_sem); |
dir | 414 | fs/namei.c | iput(dir); |
dir | 446 | fs/namei.c | struct inode * dir; |
dir | 448 | fs/namei.c | error = dir_namei(pathname,&namelen,&basename,NULL,&dir); |
dir | 452 | fs/namei.c | iput(dir); |
dir | 455 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 456 | fs/namei.c | iput(dir); |
dir | 459 | fs/namei.c | if (!permission(dir,MAY_WRITE | MAY_EXEC)) { |
dir | 460 | fs/namei.c | iput(dir); |
dir | 463 | fs/namei.c | if (!dir->i_op || !dir->i_op->mkdir) { |
dir | 464 | fs/namei.c | iput(dir); |
dir | 467 | fs/namei.c | dir->i_count++; |
dir | 468 | fs/namei.c | down(&dir->i_sem); |
dir | 469 | fs/namei.c | error = dir->i_op->mkdir(dir,basename,namelen,mode); |
dir | 470 | fs/namei.c | up(&dir->i_sem); |
dir | 471 | fs/namei.c | iput(dir); |
dir | 492 | fs/namei.c | struct inode * dir; |
dir | 494 | fs/namei.c | error = dir_namei(name,&namelen,&basename,NULL,&dir); |
dir | 498 | fs/namei.c | iput(dir); |
dir | 501 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 502 | fs/namei.c | iput(dir); |
dir | 505 | fs/namei.c | if (!permission(dir,MAY_WRITE | MAY_EXEC)) { |
dir | 506 | fs/namei.c | iput(dir); |
dir | 509 | fs/namei.c | if (!dir->i_op || !dir->i_op->rmdir) { |
dir | 510 | fs/namei.c | iput(dir); |
dir | 513 | fs/namei.c | return dir->i_op->rmdir(dir,basename,namelen); |
dir | 533 | fs/namei.c | struct inode * dir; |
dir | 535 | fs/namei.c | error = dir_namei(name,&namelen,&basename,NULL,&dir); |
dir | 539 | fs/namei.c | iput(dir); |
dir | 542 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 543 | fs/namei.c | iput(dir); |
dir | 546 | fs/namei.c | if (!permission(dir,MAY_WRITE | MAY_EXEC)) { |
dir | 547 | fs/namei.c | iput(dir); |
dir | 550 | fs/namei.c | if (!dir->i_op || !dir->i_op->unlink) { |
dir | 551 | fs/namei.c | iput(dir); |
dir | 554 | fs/namei.c | return dir->i_op->unlink(dir,basename,namelen); |
dir | 572 | fs/namei.c | struct inode * dir; |
dir | 576 | fs/namei.c | error = dir_namei(newname,&namelen,&basename,NULL,&dir); |
dir | 580 | fs/namei.c | iput(dir); |
dir | 583 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 584 | fs/namei.c | iput(dir); |
dir | 587 | fs/namei.c | if (!permission(dir,MAY_WRITE | MAY_EXEC)) { |
dir | 588 | fs/namei.c | iput(dir); |
dir | 591 | fs/namei.c | if (!dir->i_op || !dir->i_op->symlink) { |
dir | 592 | fs/namei.c | iput(dir); |
dir | 595 | fs/namei.c | dir->i_count++; |
dir | 596 | fs/namei.c | down(&dir->i_sem); |
dir | 597 | fs/namei.c | error = dir->i_op->symlink(dir,basename,namelen,oldname); |
dir | 598 | fs/namei.c | up(&dir->i_sem); |
dir | 599 | fs/namei.c | iput(dir); |
dir | 622 | fs/namei.c | struct inode * dir; |
dir | 626 | fs/namei.c | error = dir_namei(newname,&namelen,&basename,NULL,&dir); |
dir | 633 | fs/namei.c | iput(dir); |
dir | 636 | fs/namei.c | if (IS_RDONLY(dir)) { |
dir | 638 | fs/namei.c | iput(dir); |
dir | 641 | fs/namei.c | if (dir->i_dev != oldinode->i_dev) { |
dir | 642 | fs/namei.c | iput(dir); |
dir | 646 | fs/namei.c | if (!permission(dir,MAY_WRITE | MAY_EXEC)) { |
dir | 647 | fs/namei.c | iput(dir); |
dir | 651 | fs/namei.c | if (!dir->i_op || !dir->i_op->link) { |
dir | 652 | fs/namei.c | iput(dir); |
dir | 656 | fs/namei.c | dir->i_count++; |
dir | 657 | fs/namei.c | down(&dir->i_sem); |
dir | 658 | fs/namei.c | error = dir->i_op->link(oldinode, dir, basename, namelen); |
dir | 659 | fs/namei.c | up(&dir->i_sem); |
dir | 660 | fs/namei.c | iput(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 | 183 | fs/nfs/dir.c | static struct nfs_lookup_cache_entry *nfs_lookup_cache_index(struct inode *dir, |
dir | 191 | fs/nfs/dir.c | if (entry->dev == dir->i_dev && entry->inode == dir->i_ino |
dir | 198 | fs/nfs/dir.c | static int nfs_lookup_cache_lookup(struct inode *dir, const char *filename, |
dir | 210 | fs/nfs/dir.c | if ((entry = nfs_lookup_cache_index(dir, filename))) { |
dir | 222 | fs/nfs/dir.c | static void nfs_lookup_cache_add(struct inode *dir, const char *filename, |
dir | 233 | fs/nfs/dir.c | if (!(entry = nfs_lookup_cache_index(dir, filename))) { |
dir | 238 | fs/nfs/dir.c | entry->dev = dir->i_dev; |
dir | 239 | fs/nfs/dir.c | entry->inode = dir->i_ino; |
dir | 244 | fs/nfs/dir.c | ? NFS_SERVER(dir)->acdirmax : NFS_SERVER(dir)->acregmax); |
dir | 247 | fs/nfs/dir.c | static void nfs_lookup_cache_remove(struct inode *dir, struct inode *inode, |
dir | 259 | fs/nfs/dir.c | else if ((entry = nfs_lookup_cache_index(dir, filename))) { |
dir | 287 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *__name, int len, |
dir | 296 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 298 | fs/nfs/dir.c | iput(dir); |
dir | 302 | fs/nfs/dir.c | iput(dir); |
dir | 308 | fs/nfs/dir.c | *result = dir; |
dir | 311 | fs/nfs/dir.c | if ((NFS_SERVER(dir)->flags & NFS_MOUNT_NOAC) |
dir | 312 | fs/nfs/dir.c | || !nfs_lookup_cache_lookup(dir, name, &fhandle, &fattr)) { |
dir | 313 | fs/nfs/dir.c | if ((error = nfs_proc_lookup(NFS_SERVER(dir), NFS_FH(dir), |
dir | 315 | fs/nfs/dir.c | iput(dir); |
dir | 318 | fs/nfs/dir.c | nfs_lookup_cache_add(dir, name, &fhandle, &fattr); |
dir | 320 | fs/nfs/dir.c | if (!(*result = nfs_fhget(dir->i_sb, &fhandle, &fattr))) { |
dir | 321 | fs/nfs/dir.c | iput(dir); |
dir | 324 | fs/nfs/dir.c | iput(dir); |
dir | 328 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
dir | 337 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 339 | fs/nfs/dir.c | iput(dir); |
dir | 343 | fs/nfs/dir.c | iput(dir); |
dir | 349 | fs/nfs/dir.c | if ((error = nfs_proc_create(NFS_SERVER(dir), NFS_FH(dir), |
dir | 351 | fs/nfs/dir.c | iput(dir); |
dir | 354 | fs/nfs/dir.c | if (!(*result = nfs_fhget(dir->i_sb, &fhandle, &fattr))) { |
dir | 355 | fs/nfs/dir.c | iput(dir); |
dir | 358 | fs/nfs/dir.c | nfs_lookup_cache_add(dir, name, &fhandle, &fattr); |
dir | 359 | fs/nfs/dir.c | iput(dir); |
dir | 363 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, |
dir | 371 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 373 | fs/nfs/dir.c | iput(dir); |
dir | 377 | fs/nfs/dir.c | iput(dir); |
dir | 387 | fs/nfs/dir.c | error = nfs_proc_create(NFS_SERVER(dir), NFS_FH(dir), |
dir | 390 | fs/nfs/dir.c | nfs_lookup_cache_add(dir, name, &fhandle, &fattr); |
dir | 391 | fs/nfs/dir.c | iput(dir); |
dir | 395 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode) |
dir | 402 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 404 | fs/nfs/dir.c | iput(dir); |
dir | 408 | fs/nfs/dir.c | iput(dir); |
dir | 414 | fs/nfs/dir.c | error = nfs_proc_mkdir(NFS_SERVER(dir), NFS_FH(dir), |
dir | 417 | fs/nfs/dir.c | nfs_lookup_cache_add(dir, name, &fhandle, &fattr); |
dir | 418 | fs/nfs/dir.c | iput(dir); |
dir | 422 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len) |
dir | 426 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 428 | fs/nfs/dir.c | iput(dir); |
dir | 432 | fs/nfs/dir.c | iput(dir); |
dir | 435 | fs/nfs/dir.c | error = nfs_proc_rmdir(NFS_SERVER(dir), NFS_FH(dir), name); |
dir | 437 | fs/nfs/dir.c | nfs_lookup_cache_remove(dir, NULL, name); |
dir | 438 | fs/nfs/dir.c | iput(dir); |
dir | 442 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len) |
dir | 446 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 448 | fs/nfs/dir.c | iput(dir); |
dir | 452 | fs/nfs/dir.c | iput(dir); |
dir | 455 | fs/nfs/dir.c | error = nfs_proc_remove(NFS_SERVER(dir), NFS_FH(dir), name); |
dir | 457 | fs/nfs/dir.c | nfs_lookup_cache_remove(dir, NULL, name); |
dir | 458 | fs/nfs/dir.c | iput(dir); |
dir | 462 | fs/nfs/dir.c | static int nfs_symlink(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 | 478 | fs/nfs/dir.c | iput(dir); |
dir | 484 | fs/nfs/dir.c | error = nfs_proc_symlink(NFS_SERVER(dir), NFS_FH(dir), |
dir | 486 | fs/nfs/dir.c | iput(dir); |
dir | 490 | fs/nfs/dir.c | static int nfs_link(struct inode *oldinode, struct inode *dir, |
dir | 498 | fs/nfs/dir.c | iput(dir); |
dir | 501 | fs/nfs/dir.c | if (!dir || !S_ISDIR(dir->i_mode)) { |
dir | 504 | fs/nfs/dir.c | iput(dir); |
dir | 509 | fs/nfs/dir.c | iput(dir); |
dir | 513 | fs/nfs/dir.c | NFS_FH(dir), name); |
dir | 515 | fs/nfs/dir.c | nfs_lookup_cache_remove(dir, oldinode, NULL); |
dir | 517 | fs/nfs/dir.c | iput(dir); |
dir | 273 | fs/nfs/proc.c | int nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir, const char *name, |
dir | 289 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 432 | fs/nfs/proc.c | int nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir, |
dir | 445 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 470 | fs/nfs/proc.c | int nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir, const char *name) |
dir | 481 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 541 | fs/nfs/proc.c | struct nfs_fh *dir, const char *name) |
dir | 553 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 575 | fs/nfs/proc.c | int nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir, |
dir | 587 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 611 | fs/nfs/proc.c | int nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir, |
dir | 624 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 649 | fs/nfs/proc.c | int nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir, const char *name) |
dir | 660 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
dir | 43 | fs/nfs/symlink.c | static int nfs_follow_link(struct inode *dir, struct inode *inode, |
dir | 50 | fs/nfs/symlink.c | if (!dir) { |
dir | 51 | fs/nfs/symlink.c | dir = current->fs->root; |
dir | 52 | fs/nfs/symlink.c | dir->i_count++; |
dir | 55 | fs/nfs/symlink.c | iput(dir); |
dir | 59 | fs/nfs/symlink.c | iput(dir); |
dir | 65 | fs/nfs/symlink.c | iput(dir); |
dir | 72 | fs/nfs/symlink.c | iput(dir); |
dir | 78 | fs/nfs/symlink.c | error = open_namei(res, flag, mode, res_inode, dir); |
dir | 91 | fs/proc/base.c | static int proc_lookupbase(struct inode * dir,const char * name, int len, |
dir | 98 | fs/proc/base.c | if (!dir) |
dir | 100 | fs/proc/base.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 101 | fs/proc/base.c | iput(dir); |
dir | 104 | fs/proc/base.c | ino = dir->i_ino; |
dir | 110 | fs/proc/base.c | iput(dir); |
dir | 121 | fs/proc/base.c | iput(dir); |
dir | 124 | fs/proc/base.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 125 | fs/proc/base.c | iput(dir); |
dir | 128 | 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 | 66 | fs/proc/fd.c | if (!dir) |
dir | 68 | fs/proc/fd.c | sb = dir->i_sb; |
dir | 69 | fs/proc/fd.c | if (!pid || ino > 1 || !S_ISDIR(dir->i_mode)) { |
dir | 70 | fs/proc/fd.c | iput(dir); |
dir | 76 | fs/proc/fd.c | *result = dir; |
dir | 80 | fs/proc/fd.c | iput(dir); |
dir | 83 | fs/proc/fd.c | iput(dir); |
dir | 86 | fs/proc/fd.c | iput(dir); |
dir | 41 | fs/proc/link.c | static int proc_follow_link(struct inode * dir, struct inode * inode, |
dir | 49 | fs/proc/link.c | if (dir) |
dir | 50 | fs/proc/link.c | iput(dir); |
dir | 137 | fs/proc/net.c | static int proc_lookupnet(struct inode * dir,const char * name, int len, |
dir | 144 | fs/proc/net.c | if (!dir) |
dir | 146 | fs/proc/net.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 147 | fs/proc/net.c | iput(dir); |
dir | 154 | fs/proc/net.c | iput(dir); |
dir | 158 | fs/proc/net.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 159 | fs/proc/net.c | iput(dir); |
dir | 162 | fs/proc/net.c | iput(dir); |
dir | 76 | fs/proc/root.c | static int proc_lookuproot(struct inode * dir,const char * name, int len, |
dir | 83 | fs/proc/root.c | if (!dir) |
dir | 85 | fs/proc/root.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 86 | fs/proc/root.c | iput(dir); |
dir | 95 | fs/proc/root.c | *result = dir; |
dir | 120 | fs/proc/root.c | iput(dir); |
dir | 125 | fs/proc/root.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 126 | fs/proc/root.c | iput(dir); |
dir | 129 | fs/proc/root.c | iput(dir); |
dir | 439 | fs/super.c | static int do_mount(dev_t dev, const char * dir, char * type, int flags, void * data) |
dir | 445 | fs/super.c | error = namei(dir,&dir_i); |
dir | 495 | fs/super.c | static int do_remount(const char *dir,int flags,char *data) |
dir | 500 | fs/super.c | retval = namei(dir,&dir_i); |
dir | 86 | fs/sysv/ialloc.c | struct inode * sysv_new_inode(const struct inode * dir) |
dir | 95 | fs/sysv/ialloc.c | if (!dir || !(inode = get_empty_inode())) |
dir | 97 | fs/sysv/ialloc.c | sb = dir->i_sb; |
dir | 139 | fs/sysv/ialloc.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
dir | 65 | fs/sysv/namei.c | static struct buffer_head * sysv_find_entry(struct inode * dir, |
dir | 74 | fs/sysv/namei.c | if (!dir) |
dir | 76 | fs/sysv/namei.c | sb = dir->i_sb; |
dir | 84 | fs/sysv/namei.c | while (pos < dir->i_size) { |
dir | 86 | fs/sysv/namei.c | bh = sysv_file_bread(dir,block,0,&bh_data); |
dir | 109 | fs/sysv/namei.c | int sysv_lookup(struct inode * dir,const char * name, int len, |
dir | 117 | fs/sysv/namei.c | if (!dir) |
dir | 119 | fs/sysv/namei.c | if (!S_ISDIR(dir->i_mode)) { |
dir | 120 | fs/sysv/namei.c | iput(dir); |
dir | 123 | fs/sysv/namei.c | if (!(bh = sysv_find_entry(dir,name,len,&de))) { |
dir | 124 | fs/sysv/namei.c | iput(dir); |
dir | 129 | fs/sysv/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
dir | 130 | fs/sysv/namei.c | iput(dir); |
dir | 133 | fs/sysv/namei.c | iput(dir); |
dir | 147 | fs/sysv/namei.c | static int sysv_add_entry(struct inode * dir, |
dir | 161 | fs/sysv/namei.c | if (!dir) |
dir | 163 | fs/sysv/namei.c | sb = dir->i_sb; |
dir | 175 | fs/sysv/namei.c | bh = sysv_file_bread(dir,block,1,&bh_data); |
dir | 182 | fs/sysv/namei.c | if (pos > dir->i_size) { |
dir | 184 | fs/sysv/namei.c | dir->i_size = pos; |
dir | 185 | fs/sysv/namei.c | dir->i_dirt = 1; |
dir | 193 | fs/sysv/namei.c | dir->i_mtime = dir->i_ctime = CURRENT_TIME; |
dir | 210 | fs/sysv/namei.c | int sysv_create(struct inode * dir,const char * name, int len, int mode, |
dir | 219 | fs/sysv/namei.c | if (!dir) |
dir | 221 | fs/sysv/namei.c | inode = sysv_new_inode(dir); |
dir | 223 | fs/sysv/namei.c | iput(dir); |
dir | 232 | fs/sysv/namei.c | error = sysv_add_entry(dir,name,len, &bh ,&de); |
dir | 237 | fs/sysv/namei.c | iput(dir); |
dir | 243 | fs/sysv/namei.c | iput(dir); |
dir | 248 | fs/sysv/namei.c | int sysv_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
dir | 255 | fs/sysv/namei.c | if (!dir) |
dir | 257 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 260 | fs/sysv/namei.c | iput(dir); |
dir | 263 | fs/sysv/namei.c | inode = sysv_new_inode(dir); |
dir | 265 | fs/sysv/namei.c | iput(dir); |
dir | 278 | fs/sysv/namei.c | if (dir->i_mode & S_ISGID) |
dir | 292 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
dir | 297 | fs/sysv/namei.c | iput(dir); |
dir | 303 | fs/sysv/namei.c | iput(dir); |
dir | 308 | fs/sysv/namei.c | int sysv_mkdir(struct inode * dir, const char * name, int len, int mode) |
dir | 316 | fs/sysv/namei.c | if (!dir) { |
dir | 317 | fs/sysv/namei.c | iput(dir); |
dir | 320 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 323 | fs/sysv/namei.c | iput(dir); |
dir | 326 | fs/sysv/namei.c | if (dir->i_nlink >= dir->i_sb->sv_link_max) { |
dir | 327 | fs/sysv/namei.c | iput(dir); |
dir | 330 | fs/sysv/namei.c | inode = sysv_new_inode(dir); |
dir | 332 | fs/sysv/namei.c | iput(dir); |
dir | 339 | fs/sysv/namei.c | iput(dir); |
dir | 349 | fs/sysv/namei.c | de->inode = dir->i_ino; |
dir | 355 | fs/sysv/namei.c | if (dir->i_mode & S_ISGID) |
dir | 358 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
dir | 360 | fs/sysv/namei.c | iput(dir); |
dir | 367 | fs/sysv/namei.c | dir->i_nlink++; |
dir | 368 | fs/sysv/namei.c | dir->i_dirt = 1; |
dir | 369 | fs/sysv/namei.c | iput(dir); |
dir | 435 | fs/sysv/namei.c | int sysv_rmdir(struct inode * dir, const char * name, int len) |
dir | 443 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 448 | fs/sysv/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 450 | fs/sysv/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
dir | 452 | fs/sysv/namei.c | current->euid != dir->i_uid) |
dir | 454 | fs/sysv/namei.c | if (inode->i_dev != dir->i_dev) |
dir | 456 | fs/sysv/namei.c | if (inode == dir) /* we may not delete ".", but "../dir" is ok */ |
dir | 480 | fs/sysv/namei.c | dir->i_nlink--; |
dir | 481 | fs/sysv/namei.c | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 482 | fs/sysv/namei.c | dir->i_dirt=1; |
dir | 485 | fs/sysv/namei.c | iput(dir); |
dir | 491 | fs/sysv/namei.c | int sysv_unlink(struct inode * dir, const char * name, int len) |
dir | 501 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 504 | fs/sysv/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
dir | 516 | fs/sysv/namei.c | if ((dir->i_mode & S_ISVTX) && !suser() && |
dir | 518 | fs/sysv/namei.c | current->euid != dir->i_uid) |
dir | 531 | fs/sysv/namei.c | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
dir | 532 | fs/sysv/namei.c | dir->i_dirt = 1; |
dir | 534 | fs/sysv/namei.c | inode->i_ctime = dir->i_ctime; |
dir | 540 | fs/sysv/namei.c | iput(dir); |
dir | 544 | fs/sysv/namei.c | int sysv_symlink(struct inode * dir, const char * name, int len, const char * symname) |
dir | 555 | fs/sysv/namei.c | if (!(inode = sysv_new_inode(dir))) { |
dir | 556 | fs/sysv/namei.c | iput(dir); |
dir | 563 | fs/sysv/namei.c | iput(dir); |
dir | 578 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 584 | fs/sysv/namei.c | iput(dir); |
dir | 587 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
dir | 592 | fs/sysv/namei.c | iput(dir); |
dir | 598 | fs/sysv/namei.c | iput(dir); |
dir | 603 | fs/sysv/namei.c | int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
dir | 611 | fs/sysv/namei.c | iput(dir); |
dir | 616 | fs/sysv/namei.c | iput(dir); |
dir | 619 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
dir | 622 | fs/sysv/namei.c | iput(dir); |
dir | 626 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
dir | 628 | fs/sysv/namei.c | iput(dir); |
dir | 635 | fs/sysv/namei.c | iput(dir); |
dir | 47 | fs/sysv/symlink.c | static int sysv_follow_link(struct inode * dir, struct inode * inode, |
dir | 55 | fs/sysv/symlink.c | if (!dir) { |
dir | 56 | fs/sysv/symlink.c | dir = current->fs->root; |
dir | 57 | fs/sysv/symlink.c | dir->i_count++; |
dir | 60 | fs/sysv/symlink.c | iput(dir); |
dir | 64 | fs/sysv/symlink.c | iput(dir); |
dir | 70 | fs/sysv/symlink.c | iput(dir); |
dir | 75 | fs/sysv/symlink.c | iput(dir); |
dir | 80 | fs/sysv/symlink.c | error = open_namei(bh_data,flag,mode,res_inode,dir); |
dir | 312 | fs/xiafs/bitmap.c | struct inode * xiafs_new_inode(struct inode * dir) |
dir | 318 | fs/xiafs/bitmap.c | sb = dir->i_sb; |
dir | 319 | fs/xiafs/bitmap.c | if (!dir || !(inode = get_empty_inode())) |
dir | 324 | fs/xiafs/bitmap.c | tmp=get_free_ibit(sb, dir->i_ino); |
dir | 333 | fs/xiafs/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
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) && !suser() && |
dir | 501 | fs/xiafs/namei.c | current->euid != 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) && !suser() && |
dir | 563 | fs/xiafs/namei.c | current->euid != 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 | 64 | include/linux/ext_fs.h | extern int ext_lookup(struct inode * dir,const char * name, int len, |
dir | 66 | include/linux/ext_fs.h | extern int ext_create(struct inode * dir,const char * name, int len, int mode, |
dir | 68 | include/linux/ext_fs.h | extern int ext_mkdir(struct inode * dir, const char * name, int len, int mode); |
dir | 69 | include/linux/ext_fs.h | extern int ext_rmdir(struct inode * dir, const char * name, int len); |
dir | 70 | include/linux/ext_fs.h | extern int ext_unlink(struct inode * dir, const char * name, int len); |
dir | 73 | include/linux/ext_fs.h | extern int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
dir | 74 | include/linux/ext_fs.h | extern int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
dir | 77 | 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 | 194 | include/linux/iso_fs.h | unsigned long dir; /* If this matches... */ |
dir | 72 | include/linux/kd.h | char dir; /* direction in vs out */ |
dir | 78 | include/linux/minix_fs.h | extern int minix_lookup(struct inode * dir,const char * name, int len, |
dir | 80 | include/linux/minix_fs.h | extern int minix_create(struct inode * dir,const char * name, int len, int mode, |
dir | 82 | include/linux/minix_fs.h | extern int minix_mkdir(struct inode * dir, const char * name, int len, int mode); |
dir | 83 | include/linux/minix_fs.h | extern int minix_rmdir(struct inode * dir, const char * name, int len); |
dir | 84 | include/linux/minix_fs.h | extern int minix_unlink(struct inode * dir, const char * name, int len); |
dir | 87 | include/linux/minix_fs.h | extern int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
dir | 88 | include/linux/minix_fs.h | extern int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
dir | 91 | include/linux/minix_fs.h | extern struct inode * minix_new_inode(const struct inode * dir); |
dir | 136 | include/linux/msdos_fs.h | extern int msdos_get_entry(struct inode *dir,off_t *pos,struct buffer_head **bh, |
dir | 138 | include/linux/msdos_fs.h | extern int msdos_scan(struct inode *dir,char *name,struct buffer_head **res_bh, |
dir | 140 | include/linux/msdos_fs.h | extern int msdos_parent_ino(struct inode *dir,int locked); |
dir | 141 | include/linux/msdos_fs.h | extern int msdos_subdirs(struct inode *dir); |
dir | 157 | include/linux/msdos_fs.h | extern int msdos_lookup(struct inode *dir,const char *name,int len, |
dir | 159 | include/linux/msdos_fs.h | extern int msdos_create(struct inode *dir,const char *name,int len,int mode, |
dir | 161 | include/linux/msdos_fs.h | extern int msdos_mkdir(struct inode *dir,const char *name,int len,int mode); |
dir | 162 | include/linux/msdos_fs.h | extern int msdos_rmdir(struct inode *dir,const char *name,int len); |
dir | 163 | include/linux/msdos_fs.h | extern int msdos_unlink(struct inode *dir,const char *name,int len); |
dir | 62 | include/linux/nfs_fs.h | extern int nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir, |
dir | 73 | include/linux/nfs_fs.h | extern int nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir, |
dir | 76 | include/linux/nfs_fs.h | extern int nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir, |
dir | 82 | include/linux/nfs_fs.h | struct nfs_fh *dir, const char *name); |
dir | 83 | include/linux/nfs_fs.h | extern int nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir, |
dir | 85 | include/linux/nfs_fs.h | extern int nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir, |
dir | 88 | include/linux/nfs_fs.h | extern int nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir, |
dir | 393 | include/linux/sysv_fs.h | extern int sysv_lookup(struct inode * dir,const char * name, int len, |
dir | 395 | include/linux/sysv_fs.h | extern int sysv_create(struct inode * dir,const char * name, int len, int mode, |
dir | 397 | include/linux/sysv_fs.h | extern int sysv_mkdir(struct inode * dir, const char * name, int len, int mode); |
dir | 398 | include/linux/sysv_fs.h | extern int sysv_rmdir(struct inode * dir, const char * name, int len); |
dir | 399 | include/linux/sysv_fs.h | extern int sysv_unlink(struct inode * dir, const char * name, int len); |
dir | 402 | include/linux/sysv_fs.h | extern int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
dir | 403 | include/linux/sysv_fs.h | extern int sysv_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
dir | 406 | 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 | 284 | mm/memory.c | unsigned long *page_table, *dir; |
dir | 292 | mm/memory.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,from); |
dir | 297 | mm/memory.c | for ( ; size > 0; ++dir, size -= pcnt, |
dir | 299 | mm/memory.c | if (!(page_dir = *dir)) { |
dir | 325 | mm/memory.c | *dir = 0; |
dir | 335 | mm/memory.c | unsigned long *page_table, *dir; |
dir | 350 | mm/memory.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,from); |
dir | 357 | mm/memory.c | if (!(PAGE_PRESENT & *dir)) { |
dir | 363 | mm/memory.c | if (PAGE_PRESENT & *dir) { |
dir | 365 | mm/memory.c | page_table = (unsigned long *)(PAGE_MASK & *dir++); |
dir | 367 | mm/memory.c | *dir++ = ((unsigned long) page_table) | PAGE_TABLE; |
dir | 369 | mm/memory.c | page_table = (unsigned long *)(PAGE_MASK & *dir++); |
dir | 398 | mm/memory.c | unsigned long *page_table, *dir; |
dir | 412 | mm/memory.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,from); |
dir | 419 | mm/memory.c | if (!(PAGE_PRESENT & *dir)) { |
dir | 425 | mm/memory.c | *dir++ = ((unsigned long) page_table) | PAGE_TABLE; |
dir | 428 | mm/memory.c | page_table = (unsigned long *)(PAGE_MASK & *dir++); |