Fork me on GitHub
dir                21 fs/ext2/namei.c static struct buffer * find_dir_entry(struct inode *dir, struct inode *i, struct ext2_dir_entry_2 **d_res, char *name)
dir                30 fs/ext2/namei.c 	blksize = dir->sb->s_blocksize;
dir                37 fs/ext2/namei.c 	while(offset < dir->i_size) {
dir                38 fs/ext2/namei.c 		if((block = bmap(dir, offset, FOR_READING)) < 0) {
dir                42 fs/ext2/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
dir                97 fs/ext2/namei.c static struct buffer * add_dir_entry(struct inode *dir, struct ext2_dir_entry_2 **d_res, char *name)
dir               102 fs/ext2/namei.c 	if(!(buf = find_dir_entry(dir, NULL, d_res, name))) {
dir               103 fs/ext2/namei.c 		if((block = bmap(dir, dir->i_size, FOR_WRITING)) < 0) {
dir               106 fs/ext2/namei.c 		if(!(buf = bread(dir->dev, block, dir->sb->s_blocksize))) {
dir               110 fs/ext2/namei.c 		dir->i_size += dir->sb->s_blocksize;
dir               111 fs/ext2/namei.c 		(*d_res)->rec_len = dir->sb->s_blocksize;
dir               117 fs/ext2/namei.c static int is_dir_empty(struct inode *dir)
dir               125 fs/ext2/namei.c 	blksize = dir->sb->s_blocksize;
dir               128 fs/ext2/namei.c 	while(offset < dir->i_size) {
dir               129 fs/ext2/namei.c 		if((block = bmap(dir, offset, FOR_READING)) < 0) {
dir               133 fs/ext2/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
dir               138 fs/ext2/namei.c 				if(doffset + offset >= dir->i_size) {
dir               188 fs/ext2/namei.c int ext2_lookup(const char *name, struct inode *dir, struct inode **i_res)
dir               197 fs/ext2/namei.c 	blksize = dir->sb->s_blocksize;
dir               200 fs/ext2/namei.c 	while(offset < dir->i_size && !inode) {
dir               201 fs/ext2/namei.c 		if((block = bmap(dir, offset, FOR_READING)) < 0) {
dir               205 fs/ext2/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
dir               206 fs/ext2/namei.c 				iput(dir);
dir               230 fs/ext2/namei.c 				if(inode == dir->inode) {
dir               231 fs/ext2/namei.c 					*i_res = dir;
dir               235 fs/ext2/namei.c 				if(!(*i_res = iget(dir->sb, inode))) {
dir               236 fs/ext2/namei.c 					iput(dir);
dir               239 fs/ext2/namei.c 				iput(dir);
dir               246 fs/ext2/namei.c 	iput(dir);
dir               250 fs/ext2/namei.c int ext2_rmdir(struct inode *dir, struct inode *i)
dir               262 fs/ext2/namei.c 	inode_lock(dir);
dir               264 fs/ext2/namei.c 	if(!(buf = find_dir_entry(dir, i, &d, NULL))) {
dir               266 fs/ext2/namei.c 		inode_unlock(dir);
dir               272 fs/ext2/namei.c 	dir->i_nlink--;
dir               276 fs/ext2/namei.c 	dir->i_mtime = CURRENT_TIME;
dir               277 fs/ext2/namei.c 	dir->i_ctime = CURRENT_TIME;
dir               280 fs/ext2/namei.c 	dir->dirty = 1;
dir               285 fs/ext2/namei.c 	inode_unlock(dir);
dir               332 fs/ext2/namei.c int ext2_unlink(struct inode *dir, struct inode *i, char *name)
dir               337 fs/ext2/namei.c 	inode_lock(dir);
dir               340 fs/ext2/namei.c 	if(!(buf = find_dir_entry(dir, i, &d, name))) {
dir               341 fs/ext2/namei.c 		inode_unlock(dir);
dir               357 fs/ext2/namei.c 	dir->i_mtime = CURRENT_TIME;
dir               358 fs/ext2/namei.c 	dir->i_ctime = CURRENT_TIME;
dir               361 fs/ext2/namei.c 	dir->dirty = 1;
dir               365 fs/ext2/namei.c 	inode_unlock(dir);
dir               370 fs/ext2/namei.c int ext2_symlink(struct inode *dir, char *name, char *oldname)
dir               379 fs/ext2/namei.c 	inode_lock(dir);
dir               381 fs/ext2/namei.c 	if(!(i = ialloc(dir->sb, S_IFLNK))) {
dir               382 fs/ext2/namei.c 		inode_unlock(dir);
dir               386 fs/ext2/namei.c 	if(!(buf = add_dir_entry(dir, &d, name))) {
dir               388 fs/ext2/namei.c 		inode_unlock(dir);
dir               395 fs/ext2/namei.c 	i->dev = dir->dev;
dir               401 fs/ext2/namei.c 		if((block = ext2_balloc(dir->sb)) < 0) {
dir               404 fs/ext2/namei.c 			inode_unlock(dir);
dir               407 fs/ext2/namei.c 		if(!(buf2 = bread(dir->dev, block, dir->sb->s_blocksize))) {
dir               410 fs/ext2/namei.c 			ext2_bfree(dir->sb, block);
dir               411 fs/ext2/namei.c 			inode_unlock(dir);
dir               423 fs/ext2/namei.c 		i->i_blocks = dir->sb->s_blocksize / 512;
dir               453 fs/ext2/namei.c 	dir->i_mtime = CURRENT_TIME;
dir               454 fs/ext2/namei.c 	dir->i_ctime = CURRENT_TIME;
dir               455 fs/ext2/namei.c 	dir->dirty = 1;
dir               459 fs/ext2/namei.c 	inode_unlock(dir);
dir               463 fs/ext2/namei.c int ext2_mkdir(struct inode *dir, char *name, __mode_t mode)
dir               472 fs/ext2/namei.c 	inode_lock(dir);
dir               474 fs/ext2/namei.c 	if(!(i = ialloc(dir->sb, S_IFDIR))) {
dir               475 fs/ext2/namei.c 		inode_unlock(dir);
dir               483 fs/ext2/namei.c 	i->dev = dir->dev;
dir               489 fs/ext2/namei.c 		inode_unlock(dir);
dir               493 fs/ext2/namei.c 	if(!(buf2 = bread(i->dev, block, dir->sb->s_blocksize))) {
dir               494 fs/ext2/namei.c 		ext2_bfree(dir->sb, block);
dir               496 fs/ext2/namei.c 		inode_unlock(dir);
dir               500 fs/ext2/namei.c 	if(!(buf = add_dir_entry(dir, &d, name))) {
dir               501 fs/ext2/namei.c 		ext2_bfree(dir->sb, block);
dir               504 fs/ext2/namei.c 		inode_unlock(dir);
dir               531 fs/ext2/namei.c 	d2->inode = dir->inode;
dir               540 fs/ext2/namei.c 	i->i_blocks = dir->sb->s_blocksize / 512;
dir               543 fs/ext2/namei.c 	dir->i_mtime = CURRENT_TIME;
dir               544 fs/ext2/namei.c 	dir->i_ctime = CURRENT_TIME;
dir               545 fs/ext2/namei.c 	dir->i_nlink++;
dir               546 fs/ext2/namei.c 	dir->dirty = 1;
dir               551 fs/ext2/namei.c 	inode_unlock(dir);
dir               555 fs/ext2/namei.c int ext2_mknod(struct inode *dir, char *name, __mode_t mode, __dev_t dev)
dir               563 fs/ext2/namei.c 	inode_lock(dir);
dir               565 fs/ext2/namei.c 	if(!(i = ialloc(dir->sb, mode & S_IFMT))) {
dir               566 fs/ext2/namei.c 		inode_unlock(dir);
dir               570 fs/ext2/namei.c 	if(!(buf = add_dir_entry(dir, &d, name))) {
dir               573 fs/ext2/namei.c 		inode_unlock(dir);
dir               592 fs/ext2/namei.c 	i->dev = dir->dev;
dir               618 fs/ext2/namei.c 	dir->i_mtime = CURRENT_TIME;
dir               619 fs/ext2/namei.c 	dir->i_ctime = CURRENT_TIME;
dir               620 fs/ext2/namei.c 	dir->dirty = 1;
dir               624 fs/ext2/namei.c 	inode_unlock(dir);
dir               628 fs/ext2/namei.c int ext2_create(struct inode *dir, char *name, __mode_t mode, struct inode **i_res)
dir               636 fs/ext2/namei.c 	if(IS_RDONLY_FS(dir)) {
dir               640 fs/ext2/namei.c 	inode_lock(dir);
dir               642 fs/ext2/namei.c 	if(!(i = ialloc(dir->sb, S_IFREG))) {
dir               643 fs/ext2/namei.c 		inode_unlock(dir);
dir               647 fs/ext2/namei.c 	if(!(buf = add_dir_entry(dir, &d, name))) {
dir               650 fs/ext2/namei.c 		inode_unlock(dir);
dir               672 fs/ext2/namei.c 	i->dev = dir->dev;
dir               679 fs/ext2/namei.c 	dir->i_mtime = CURRENT_TIME;
dir               680 fs/ext2/namei.c 	dir->i_ctime = CURRENT_TIME;
dir               681 fs/ext2/namei.c 	dir->dirty = 1;
dir               685 fs/ext2/namei.c 	inode_unlock(dir);
dir                93 fs/ext2/symlink.c int ext2_followlink(struct inode *dir, struct inode *i, struct inode **i_res)
dir               131 fs/ext2/symlink.c 	errno = parse_namei(name, dir, i_res, NULL, FOLLOW_LINKS);
dir                19 fs/iso9660/namei.c int iso9660_lookup(const char *name, struct inode *dir, struct inode **i_res)
dir                31 fs/iso9660/namei.c 	blksize = dir->sb->s_blocksize;
dir                35 fs/iso9660/namei.c 	while(offset < dir->i_size && !inode) {
dir                36 fs/iso9660/namei.c 		if((dblock = bmap(dir, offset, FOR_READING)) < 0) {
dir                40 fs/iso9660/namei.c 			if(!(buf = bread(dir->dev, dblock, blksize))) {
dir                52 fs/iso9660/namei.c 							inode = dir->inode;
dir                59 fs/iso9660/namei.c 							inode = dir->u.iso9660.i_parent->inode;
dir                67 fs/iso9660/namei.c 				if(dir->sb->u.iso9660.rrip) {
dir                68 fs/iso9660/namei.c 					nm_len = get_rrip_filename(d, dir, nm_name);
dir               101 fs/iso9660/namei.c 				if(inode == dir->inode) {
dir               102 fs/iso9660/namei.c 					*i_res = dir;
dir               106 fs/iso9660/namei.c 				if(!(*i_res = iget(dir->sb, inode))) {
dir               111 fs/iso9660/namei.c 						(*i_res)->u.iso9660.i_parent = dir;
dir               114 fs/iso9660/namei.c 				iput(dir);
dir               119 fs/iso9660/namei.c 	iput(dir);
dir                81 fs/iso9660/symlink.c int iso9660_followlink(struct inode *dir, struct inode *i, struct inode **i_res)
dir               101 fs/iso9660/symlink.c 		if((errno = parse_namei(name, dir, i_res, NULL, FOLLOW_LINKS))) {
dir                19 fs/minix/namei.c static int is_dir_empty(struct inode *dir)
dir                27 fs/minix/namei.c 	blksize = dir->sb->s_blocksize;
dir                28 fs/minix/namei.c 	doffset = dir->sb->u.minix.dirsize * 2;	/* accept only "." and ".." */
dir                31 fs/minix/namei.c 	while(offset < dir->i_size) {
dir                32 fs/minix/namei.c 		if((block = bmap(dir, offset, FOR_READING)) < 0) {
dir                36 fs/minix/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
dir                40 fs/minix/namei.c 				if(doffset + offset >= dir->i_size) {
dir                48 fs/minix/namei.c 				doffset += dir->sb->u.minix.dirsize;
dir                62 fs/minix/namei.c static struct buffer * find_dir_entry(struct inode *dir, struct inode *i, struct minix_dir_entry **d_res, char *name)
dir                69 fs/minix/namei.c 	blksize = dir->sb->s_blocksize;
dir                72 fs/minix/namei.c 	while(offset < dir->i_size) {
dir                73 fs/minix/namei.c 		if((block = bmap(dir, offset, FOR_READING)) < 0) {
dir                77 fs/minix/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
dir                85 fs/minix/namei.c 					if(!(*d_res)->inode || (doffset + offset >= dir->i_size)) {
dir                87 fs/minix/namei.c 						if(doffset + offset >= dir->i_size) {
dir                88 fs/minix/namei.c 							dir->i_size += dir->sb->u.minix.dirsize;
dir               104 fs/minix/namei.c 				doffset += dir->sb->u.minix.dirsize;
dir               117 fs/minix/namei.c static struct buffer * add_dir_entry(struct inode *dir, struct minix_dir_entry **d_res)
dir               122 fs/minix/namei.c 	if(!(buf = find_dir_entry(dir, NULL, d_res, NULL))) {
dir               123 fs/minix/namei.c 		if((block = bmap(dir, dir->i_size, FOR_WRITING)) < 0) {
dir               126 fs/minix/namei.c 		if(!(buf = bread(dir->dev, block, dir->sb->s_blocksize))) {
dir               130 fs/minix/namei.c 		dir->i_size += dir->sb->u.minix.dirsize;
dir               160 fs/minix/namei.c int minix_lookup(const char *name, struct inode *dir, struct inode **i_res)
dir               169 fs/minix/namei.c 	blksize = dir->sb->s_blocksize;
dir               172 fs/minix/namei.c 	while(offset < dir->i_size && !inode) {
dir               173 fs/minix/namei.c 		if((block = bmap(dir, offset, FOR_READING)) < 0) {
dir               174 fs/minix/namei.c 			iput(dir);
dir               178 fs/minix/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
dir               179 fs/minix/namei.c 				iput(dir);
dir               192 fs/minix/namei.c 				doffset += dir->sb->u.minix.dirsize;
dir               197 fs/minix/namei.c 				if(!(*i_res = iget(dir->sb, inode))) {
dir               198 fs/minix/namei.c 					iput(dir);
dir               201 fs/minix/namei.c 				iput(dir);
dir               209 fs/minix/namei.c 	iput(dir);
dir               213 fs/minix/namei.c int minix_rmdir(struct inode *dir, struct inode *i)
dir               225 fs/minix/namei.c 	inode_lock(dir);
dir               227 fs/minix/namei.c 	if(!(buf = find_dir_entry(dir, i, &d, NULL))) {
dir               229 fs/minix/namei.c 		inode_unlock(dir);
dir               235 fs/minix/namei.c 	dir->i_nlink--;
dir               238 fs/minix/namei.c 	dir->i_mtime = CURRENT_TIME;
dir               239 fs/minix/namei.c 	dir->i_ctime = CURRENT_TIME;
dir               242 fs/minix/namei.c 	dir->dirty = 1;
dir               247 fs/minix/namei.c 	inode_unlock(dir);
dir               292 fs/minix/namei.c int minix_unlink(struct inode *dir, struct inode *i, char *name)
dir               297 fs/minix/namei.c 	inode_lock(dir);
dir               300 fs/minix/namei.c 	if(!(buf = find_dir_entry(dir, i, &d, name))) {
dir               301 fs/minix/namei.c 		inode_unlock(dir);
dir               310 fs/minix/namei.c 	dir->i_mtime = CURRENT_TIME;
dir               311 fs/minix/namei.c 	dir->i_ctime = CURRENT_TIME;
dir               314 fs/minix/namei.c 	dir->dirty = 1;
dir               318 fs/minix/namei.c 	inode_unlock(dir);
dir               323 fs/minix/namei.c int minix_symlink(struct inode *dir, char *name, char *oldname)
dir               332 fs/minix/namei.c 	inode_lock(dir);
dir               334 fs/minix/namei.c 	if(!(i = ialloc(dir->sb, S_IFLNK))) {
dir               335 fs/minix/namei.c 		inode_unlock(dir);
dir               343 fs/minix/namei.c 	i->dev = dir->dev;
dir               348 fs/minix/namei.c 	block = minix_balloc(dir->sb);
dir               352 fs/minix/namei.c 		inode_unlock(dir);
dir               361 fs/minix/namei.c 	blksize = dir->sb->s_blocksize;
dir               362 fs/minix/namei.c 	if(!(buf_new = bread(dir->dev, block, blksize))) {
dir               363 fs/minix/namei.c 		minix_bfree(dir->sb, block);
dir               366 fs/minix/namei.c 		inode_unlock(dir);
dir               370 fs/minix/namei.c 	if(!(buf = add_dir_entry(dir, &d))) {
dir               371 fs/minix/namei.c 		minix_bfree(dir->sb, block);
dir               374 fs/minix/namei.c 		inode_unlock(dir);
dir               399 fs/minix/namei.c 	dir->i_mtime = CURRENT_TIME;
dir               400 fs/minix/namei.c 	dir->i_ctime = CURRENT_TIME;
dir               401 fs/minix/namei.c 	dir->dirty = 1;
dir               406 fs/minix/namei.c 	inode_unlock(dir);
dir               410 fs/minix/namei.c int minix_mkdir(struct inode *dir, char *name, __mode_t mode)
dir               418 fs/minix/namei.c 	if(strlen(name) > dir->sb->u.minix.namelen) {
dir               422 fs/minix/namei.c 	inode_lock(dir);
dir               424 fs/minix/namei.c 	if(!(i = ialloc(dir->sb, S_IFDIR))) {
dir               425 fs/minix/namei.c 		inode_unlock(dir);
dir               434 fs/minix/namei.c 	i->dev = dir->dev;
dir               442 fs/minix/namei.c 		inode_unlock(dir);
dir               446 fs/minix/namei.c 	blksize = dir->sb->s_blocksize;
dir               448 fs/minix/namei.c 		minix_bfree(dir->sb, block);
dir               451 fs/minix/namei.c 		inode_unlock(dir);
dir               455 fs/minix/namei.c 	if(!(buf = add_dir_entry(dir, &d))) {
dir               456 fs/minix/namei.c 		minix_bfree(dir->sb, block);
dir               459 fs/minix/namei.c 		inode_unlock(dir);
dir               481 fs/minix/namei.c 	d_new->inode = dir->inode;
dir               487 fs/minix/namei.c 	dir->i_mtime = CURRENT_TIME;
dir               488 fs/minix/namei.c 	dir->i_ctime = CURRENT_TIME;
dir               489 fs/minix/namei.c 	dir->i_nlink++;
dir               490 fs/minix/namei.c 	dir->dirty = 1;
dir               495 fs/minix/namei.c 	inode_unlock(dir);
dir               499 fs/minix/namei.c int minix_mknod(struct inode *dir, char *name, __mode_t mode, __dev_t dev)
dir               506 fs/minix/namei.c 	inode_lock(dir);
dir               508 fs/minix/namei.c 	if(!(i = ialloc(dir->sb, mode & S_IFMT))) {
dir               509 fs/minix/namei.c 		inode_unlock(dir);
dir               513 fs/minix/namei.c 	if(!(buf = add_dir_entry(dir, &d))) {
dir               516 fs/minix/namei.c 		inode_unlock(dir);
dir               535 fs/minix/namei.c 	i->dev = dir->dev;
dir               558 fs/minix/namei.c 	dir->i_mtime = CURRENT_TIME;
dir               559 fs/minix/namei.c 	dir->i_ctime = CURRENT_TIME;
dir               560 fs/minix/namei.c 	dir->dirty = 1;
dir               564 fs/minix/namei.c 	inode_unlock(dir);
dir               568 fs/minix/namei.c int minix_create(struct inode *dir, char *name, __mode_t mode, struct inode **i_res)
dir               575 fs/minix/namei.c 	if(IS_RDONLY_FS(dir)) {
dir               579 fs/minix/namei.c 	inode_lock(dir);
dir               581 fs/minix/namei.c 	if(!(i = ialloc(dir->sb, S_IFREG))) {
dir               582 fs/minix/namei.c 		inode_unlock(dir);
dir               586 fs/minix/namei.c 	if(!(buf = add_dir_entry(dir, &d))) {
dir               589 fs/minix/namei.c 		inode_unlock(dir);
dir               609 fs/minix/namei.c 	i->dev = dir->dev;
dir               614 fs/minix/namei.c 	dir->i_mtime = CURRENT_TIME;
dir               615 fs/minix/namei.c 	dir->i_ctime = CURRENT_TIME;
dir               616 fs/minix/namei.c 	dir->dirty = 1;
dir               620 fs/minix/namei.c 	inode_unlock(dir);
dir                95 fs/minix/symlink.c int minix_followlink(struct inode *dir, struct inode *i, struct inode **i_res)
dir               133 fs/minix/symlink.c 	errno = parse_namei(name, dir, i_res, NULL, FOLLOW_LINKS);
dir                20 fs/namei.c     static int namei_lookup(char *name, struct inode *dir, struct inode **i_res)
dir                22 fs/namei.c     	if(dir->fsop && dir->fsop->lookup) {
dir                23 fs/namei.c     		return dir->fsop->lookup(name, dir, i_res);
dir                28 fs/namei.c     static int do_namei(char *path, struct inode *dir, struct inode **i_res, struct inode **d_res, int follow_links)
dir                36 fs/namei.c     	*i_res = dir;
dir                63 fs/namei.c     			if(dir == dir->sb->root) {
dir                64 fs/namei.c     				sb = dir->sb;
dir                65 fs/namei.c     				iput(dir);
dir                66 fs/namei.c     				dir = sb->dir;
dir                67 fs/namei.c     				dir->count++;
dir                71 fs/namei.c     		if((errno = check_permission(TO_EXEC, dir))) {
dir                75 fs/namei.c     		dir->count++;
dir                76 fs/namei.c     		if((errno = namei_lookup(name, dir, &i))) {
dir                83 fs/namei.c     				iput(dir);
dir                89 fs/namei.c     					if((errno = i->fsop->followlink(dir, i, &i))) {
dir                90 fs/namei.c     						iput(dir);
dir                97 fs/namei.c     				if((errno = i->fsop->followlink(dir, i, &i))) {
dir                98 fs/namei.c     					iput(dir);
dir               108 fs/namei.c     			*d_res = dir;
dir               110 fs/namei.c     			iput(dir);
dir               112 fs/namei.c     		dir = i;
dir               126 fs/namei.c     			*d_res = dir;
dir               127 fs/namei.c     			dir->count++;
dir               133 fs/namei.c     		iput(dir);
dir               136 fs/namei.c     		iput(dir);
dir               144 fs/namei.c     	struct inode *dir;
dir               154 fs/namei.c     	if(!(dir = base_dir)) {
dir               155 fs/namei.c     		dir = current->pwd;
dir               160 fs/namei.c     		dir = current->root;
dir               162 fs/namei.c     	dir->count++;
dir               163 fs/namei.c     	errno = do_namei(path, dir, i_res, d_res, follow_links);
dir                19 fs/procfs/namei.c int procfs_lookup(const char *name, struct inode *dir, struct inode **i_res)
dir                29 fs/procfs/namei.c 	if((dir->inode & 0xF0000000) == PROC_PID_INO) {
dir                30 fs/procfs/namei.c 		pid = (dir->inode >> 12) & 0xFFFF;
dir                33 fs/procfs/namei.c 	lev = bmap(dir, 0, FOR_READING);
dir                42 fs/procfs/namei.c 						inode = dir->inode;
dir                56 fs/procfs/namei.c 			if(inode == dir->inode) {
dir                57 fs/procfs/namei.c 				*i_res = dir;
dir                61 fs/procfs/namei.c 			if(!(*i_res = iget(dir->sb, inode))) {
dir                64 fs/procfs/namei.c 			iput(dir);
dir                77 fs/procfs/namei.c 			if(!(*i_res = iget(dir->sb, inode))) {
dir                80 fs/procfs/namei.c 			iput(dir);
dir                85 fs/procfs/namei.c 	iput(dir);
dir                89 fs/procfs/symlink.c int procfs_followlink(struct inode *dir, struct inode *i, struct inode **i_res)
dir               143 fs/procfs/symlink.c 			if((errno = parse_namei(current->pidstr, dir, i_res, NULL, FOLLOW_LINKS))) {
dir               168 fs/super.c     	mt->sb.dir = NULL;
dir               210 fs/super.c     	mt->sb.dir = mt->sb.root;
dir               211 fs/super.c     	mt->sb.dir->count++;
dir               121 include/fiwix/fs.h 	struct inode *dir;		/* inode on which the fs was mounted */
dir                20 kernel/syscalls/link.c 	struct inode *i, *dir, *i_new, *dir_new;
dir                36 kernel/syscalls/link.c 	if((errno = namei(tmp_oldname, &i, &dir, !FOLLOW_LINKS))) {
dir                37 kernel/syscalls/link.c 		if(dir) {
dir                38 kernel/syscalls/link.c 			iput(dir);
dir                46 kernel/syscalls/link.c 		iput(dir);
dir                53 kernel/syscalls/link.c 		iput(dir);
dir                60 kernel/syscalls/link.c 		iput(dir);
dir                70 kernel/syscalls/link.c 			iput(dir);
dir                78 kernel/syscalls/link.c 		iput(dir);
dir                87 kernel/syscalls/link.c 		iput(dir);
dir                95 kernel/syscalls/link.c 		iput(dir);
dir               108 kernel/syscalls/link.c 	iput(dir);
dir                21 kernel/syscalls/mkdir.c 	struct inode *i, *dir;
dir                33 kernel/syscalls/mkdir.c 	if((errno = namei(basename, &i, &dir, !FOLLOW_LINKS))) {
dir                34 kernel/syscalls/mkdir.c 		if(!dir) {
dir                41 kernel/syscalls/mkdir.c 		iput(dir);
dir                45 kernel/syscalls/mkdir.c 	if(IS_RDONLY_FS(dir)) {
dir                46 kernel/syscalls/mkdir.c 		iput(dir);
dir                51 kernel/syscalls/mkdir.c 	if(check_permission(TO_EXEC | TO_WRITE, dir) < 0) {
dir                52 kernel/syscalls/mkdir.c 		iput(dir);
dir                58 kernel/syscalls/mkdir.c 	if(dir->fsop && dir->fsop->mkdir) {
dir                59 kernel/syscalls/mkdir.c 		errno = dir->fsop->mkdir(dir, basename, mode);
dir                63 kernel/syscalls/mkdir.c 	iput(dir);
dir                21 kernel/syscalls/mknod.c 	struct inode *i, *dir;
dir                40 kernel/syscalls/mknod.c 	if((errno = namei(tmp_name, &i, &dir, !FOLLOW_LINKS))) {
dir                41 kernel/syscalls/mknod.c 		if(!dir) {
dir                48 kernel/syscalls/mknod.c 		iput(dir);
dir                52 kernel/syscalls/mknod.c 	if(IS_RDONLY_FS(dir)) {
dir                53 kernel/syscalls/mknod.c 		iput(dir);
dir                57 kernel/syscalls/mknod.c 	if(check_permission(TO_EXEC | TO_WRITE, dir) < 0) {
dir                58 kernel/syscalls/mknod.c 		iput(dir);
dir                63 kernel/syscalls/mknod.c 	if(dir->fsop && dir->fsop->mknod) {
dir                64 kernel/syscalls/mknod.c 		errno = dir->fsop->mknod(dir, basename, mode, dev);
dir                68 kernel/syscalls/mknod.c 	iput(dir);
dir               214 kernel/syscalls/mount.c 	mt->sb.dir = i_target;
dir                19 kernel/syscalls/open.c 	struct inode *i, *dir;
dir                33 kernel/syscalls/open.c 	if((errno = namei(tmp_name, &i, &dir, follow_links))) {
dir                34 kernel/syscalls/open.c 		if(!dir) {
dir                50 kernel/syscalls/open.c 			iput(dir);
dir                59 kernel/syscalls/open.c 			iput(dir);
dir                63 kernel/syscalls/open.c 		if(check_permission(TO_EXEC | TO_WRITE, dir) < 0) {
dir                65 kernel/syscalls/open.c 			iput(dir);
dir                70 kernel/syscalls/open.c 			if(dir->fsop && dir->fsop->create) {
dir                71 kernel/syscalls/open.c 				errno = dir->fsop->create(dir, basename, mode, &i);
dir                73 kernel/syscalls/open.c 					iput(dir);
dir                78 kernel/syscalls/open.c 				iput(dir);
dir                85 kernel/syscalls/open.c 			iput(dir);
dir                91 kernel/syscalls/open.c 			iput(dir);
dir               107 kernel/syscalls/open.c 		iput(dir);
dir               113 kernel/syscalls/open.c 		iput(dir);
dir               120 kernel/syscalls/open.c 		iput(dir);
dir               136 kernel/syscalls/open.c 			iput(dir);
dir               140 kernel/syscalls/open.c 		iput(dir);
dir               149 kernel/syscalls/open.c 	iput(dir);
dir                20 kernel/syscalls/rename.c 	struct inode *i, *dir, *i_new, *dir_new;
dir                32 kernel/syscalls/rename.c 	if((errno = namei(tmp_oldpath, &i, &dir, !FOLLOW_LINKS))) {
dir                33 kernel/syscalls/rename.c 		if(dir) {
dir                34 kernel/syscalls/rename.c 			iput(dir);
dir                41 kernel/syscalls/rename.c 		iput(dir);
dir                48 kernel/syscalls/rename.c 		iput(dir);
dir                56 kernel/syscalls/rename.c 			iput(dir);
dir                62 kernel/syscalls/rename.c 	if(dir->dev != dir_new->dev) {
dir               104 kernel/syscalls/rename.c 		errno = dir_new->fsop->rename(i, dir, i_new, dir_new, oldbasename, newbasename);
dir               111 kernel/syscalls/rename.c 	iput(dir);
dir                19 kernel/syscalls/rmdir.c 	struct inode *i, *dir;
dir                30 kernel/syscalls/rmdir.c 	if((errno = namei(tmp_dirname, &i, &dir, !FOLLOW_LINKS))) {
dir                31 kernel/syscalls/rmdir.c 		if(dir) {
dir                32 kernel/syscalls/rmdir.c 			iput(dir);
dir                39 kernel/syscalls/rmdir.c 		iput(dir);
dir                45 kernel/syscalls/rmdir.c 		iput(dir);
dir                51 kernel/syscalls/rmdir.c 		iput(dir);
dir                55 kernel/syscalls/rmdir.c 	if(i == dir) {
dir                57 kernel/syscalls/rmdir.c 		iput(dir);
dir                61 kernel/syscalls/rmdir.c 	if(check_permission(TO_EXEC | TO_WRITE, dir) < 0) {
dir                63 kernel/syscalls/rmdir.c 		iput(dir);
dir                69 kernel/syscalls/rmdir.c 	if(dir->i_mode & S_ISVTX) {
dir                72 kernel/syscalls/rmdir.c 			iput(dir);
dir                79 kernel/syscalls/rmdir.c 		errno = i->fsop->rmdir(dir, i);
dir                84 kernel/syscalls/rmdir.c 	iput(dir);
dir                20 kernel/syscalls/symlink.c 	struct inode *i, *dir;
dir                36 kernel/syscalls/symlink.c 	if((errno = namei(tmp_newpath, &i, &dir, !FOLLOW_LINKS))) {
dir                37 kernel/syscalls/symlink.c 		if(!dir) {
dir                45 kernel/syscalls/symlink.c 		iput(dir);
dir                50 kernel/syscalls/symlink.c 	if(IS_RDONLY_FS(dir)) {
dir                51 kernel/syscalls/symlink.c 		iput(dir);
dir                57 kernel/syscalls/symlink.c 	if(check_permission(TO_EXEC | TO_WRITE, dir) < 0) {
dir                58 kernel/syscalls/symlink.c 		iput(dir);
dir                64 kernel/syscalls/symlink.c 	if(dir->fsop && dir->fsop->symlink) {
dir                65 kernel/syscalls/symlink.c 		errno = dir->fsop->symlink(dir, basename, tmp_oldpath);
dir                69 kernel/syscalls/symlink.c 	iput(dir);
dir               102 kernel/syscalls/umount2.c 	sb->dir->mount_point = NULL;
dir               104 kernel/syscalls/umount2.c 	iput(sb->dir);
dir                21 kernel/syscalls/unlink.c 	struct inode *i, *dir;
dir                32 kernel/syscalls/unlink.c 	if((errno = namei(tmp_name, &i, &dir, !FOLLOW_LINKS))) {
dir                33 kernel/syscalls/unlink.c 		if(dir) {
dir                34 kernel/syscalls/unlink.c 			iput(dir);
dir                41 kernel/syscalls/unlink.c 		iput(dir);
dir                47 kernel/syscalls/unlink.c 		iput(dir);
dir                51 kernel/syscalls/unlink.c 	if(check_permission(TO_EXEC | TO_WRITE, dir) < 0) {
dir                53 kernel/syscalls/unlink.c 		iput(dir);
dir                59 kernel/syscalls/unlink.c 	if(dir->i_mode & S_ISVTX) {
dir                62 kernel/syscalls/unlink.c 			iput(dir);
dir                69 kernel/syscalls/unlink.c 	if(dir->fsop && dir->fsop->unlink) {
dir                70 kernel/syscalls/unlink.c 		errno = dir->fsop->unlink(dir, i, basename);
dir                75 kernel/syscalls/unlink.c 	iput(dir);