Home
last modified time | relevance | path

Searched refs:S_ISDIR (Results 1 – 25 of 110) sorted by relevance

12345

/linux-2.4.37.9/fs/qnx4/
Dtruncate.c26 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in qnx4_truncate()
30 if (!(S_ISDIR(inode->i_mode))) { in qnx4_truncate()
/linux-2.4.37.9/fs/jfs/
Djfs_inode.c55 rc = diAlloc(parent, S_ISDIR(mode), inode); in ialloc()
67 if (S_ISDIR(mode)) in ialloc()
73 if (S_ISDIR(mode)) in ialloc()
Dnamei.c759 if (S_ISDIR(ip->i_mode)) in jfs_link()
1076 if (S_ISDIR(old_ip->i_mode)) { in jfs_rename()
1111 if (S_ISDIR(new_ip->i_mode)) { in jfs_rename()
1118 if (!S_ISDIR(old_ip->i_mode) && new_ip) in jfs_rename()
1161 if (S_ISDIR(old_ip->i_mode)) in jfs_rename()
1176 if (S_ISDIR(old_ip->i_mode)) { in jfs_rename()
1262 if (new_ip && !S_ISDIR(new_ip->i_mode)) in jfs_rename()
/linux-2.4.37.9/fs/udf/
Dialloc.c52 is_directory = S_ISDIR(inode->i_mode); in udf_free_inode()
103 if (S_ISDIR(mode)) in udf_new_inode()
120 if (S_ISDIR(mode)) in udf_new_inode()
/linux-2.4.37.9/fs/hpfs/
Dinode.c214 if ((i->i_mode != ((i->i_sb->s_hpfs_mode & ~(S_ISDIR(i->i_mode) ? 0 : 0111)) in hpfs_write_inode_ea()
215 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG)) in hpfs_write_inode_ea()
216 && i->i_mode != ((i->i_sb->s_hpfs_mode & ~(S_ISDIR(i->i_mode) ? 0222 : 0333)) in hpfs_write_inode_ea()
217 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG))) || i->i_hpfs_ea_mode) { in hpfs_write_inode_ea()
271 } else if (S_ISDIR(i->i_mode)) { in hpfs_write_inode_nolock()
285 if (S_ISDIR(i->i_mode)) { in hpfs_write_inode_nolock()
/linux-2.4.37.9/fs/nfsd/
Dnfsfh.c80 if (!dir || !S_ISDIR(dir->i_mode)) in nfsd_get_name()
416 || (!S_ISDIR(result->d_inode->i_mode) && ! needpath)) { in find_fh_dentry()
432 if (!S_ISDIR(result->d_inode->i_mode)) { in find_fh_dentry()
441 || !S_ISDIR(dentry->d_inode->i_mode)) { in find_fh_dentry()
652 if (S_ISDIR(dentry->d_inode->i_mode) && in fh_verify()
755 int need_parent = !S_ISDIR(dentry->d_inode->i_mode) && in _fh_update()
767 S_ISDIR(dentry->d_inode->i_mode) || in _fh_update()
785 if (S_ISDIR(dentry->d_inode->i_mode) || in _fh_update_old()
/linux-2.4.37.9/fs/reiserfs/
Dnamei.c483 if (!S_ISDIR (inode->i_mode) && visible) in reiserfs_add_entry()
516 if (S_ISDIR(mode)) in new_inode_init()
943 if (S_ISDIR(inode->i_mode)) in reiserfs_link()
1073 if (S_ISDIR(old_inode_mode)) { in reiserfs_rename()
1148 if (S_ISDIR(old_inode->i_mode)) { in reiserfs_rename()
1178 if (S_ISDIR(old_inode_mode)) in reiserfs_rename()
1182 if (S_ISDIR(old_inode_mode)) { in reiserfs_rename()
1193 RFALSE( S_ISDIR(old_inode_mode) && in reiserfs_rename()
1213 if (S_ISDIR(new_dentry_inode->i_mode)) { in reiserfs_rename()
1223 if (S_ISDIR(old_inode_mode)) { in reiserfs_rename()
/linux-2.4.37.9/fs/ufs/
Dialloc.c99 is_directory = S_ISDIR(inode->i_mode); in ufs_free_inode()
237 if (S_ISDIR(mode)) { in ufs_new_inode()
255 if (S_ISDIR(mode)) in ufs_new_inode()
Dnamei.c161 if (S_ISDIR(inode->i_mode)) in ufs_link()
268 if (S_ISDIR(old_inode->i_mode)) { in ufs_rename()
/linux-2.4.37.9/drivers/net/wan/
Dcomx-proto-fr.c133 if(!S_ISDIR(dir->mode)) { in fr_keepalive_timerfun()
178 if(!S_ISDIR(dir->mode)) { in fr_rx_lmi()
260 if(!S_ISDIR(dir->mode)) { in fr_rx()
309 if(!S_ISDIR(dir->mode)) { in fr_tx()
354 if(!S_ISDIR(dir->mode)) { in fr_status()
456 if(!S_ISDIR(dir->mode)) { in fr_close()
517 if(!S_ISDIR(dir->mode)) { in fr_xmit()
575 if(!S_ISDIR(dir->mode)) { in fr_statistics()
726 if(!S_ISDIR(dir->mode)) { in fr_exit()
/linux-2.4.37.9/fs/umsdos/
Dinode.c71 if (!S_ISDIR(inode->i_mode)) in umsdos_setup_dir()
145 } else if (S_ISDIR (inode->i_mode)) { in umsdos_patch_dentry_inode()
428 if (!root->d_inode || !S_ISDIR(root->d_inode->i_mode)) in check_pseudo_root()
438 if (!sbin->d_inode || !S_ISDIR(sbin->d_inode->i_mode)) in check_pseudo_root()
Dioctl.c315 S_ISDIR (data.umsdos_dirent.mode)); in UMSDOS_ioctl_dir()
341 if (!S_ISDIR(temp->d_inode->i_mode)) in UMSDOS_ioctl_dir()
367 if (S_ISDIR(temp->d_inode->i_mode)) in UMSDOS_ioctl_dir()
Dnamei.c303 umsdos_delentry (dentry->d_parent, &info, S_ISDIR (info.entry.mode)); in umsdos_create_any()
386 S_ISDIR(new_info.entry.mode)); in umsdos_rename_f()
432 S_ISDIR (new_info.entry.mode)); in umsdos_rename_f()
442 S_ISDIR (old_info.entry.mode)); in umsdos_rename_f()
547 if (S_ISDIR (oldinode->i_mode)) in UMSDOS_link()
1118 if (S_ISDIR(old_dentry->d_inode->i_mode)) in UMSDOS_rename()
Demd.c568 if ((isdir != 0) != (S_ISDIR (info->entry.mode) != 0)) { in umsdos_delentry()
569 if (S_ISDIR (info->entry.mode)) { in umsdos_delentry()
649 if (S_ISDIR (info->entry.mode)) in umsdos_findentry()
653 if (!S_ISDIR (info->entry.mode)) in umsdos_findentry()
/linux-2.4.37.9/fs/
Ddnotify.c49 if (!S_ISDIR(inode->i_mode)) in dnotify_flush()
81 if (!S_ISDIR(inode->i_mode)) in fcntl_dirnotify()
Dnamei.c160 (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode))) in vfs_permission()
192 if (mask == MAY_READ || (S_ISDIR(inode->i_mode) && !(mask & MAY_WRITE))) in vfs_permission()
681 if (!nd->dentry->d_inode || S_ISDIR(nd->dentry->d_inode->i_mode)) { in __emul_lookup_dentry()
930 if (!S_ISDIR(victim->d_inode->i_mode)) in may_delete()
934 } else if (S_ISDIR(victim->d_inode->i_mode)) in may_delete()
1108 if (dentry->d_inode && S_ISDIR(dentry->d_inode->i_mode)) in open_namei()
1121 if (S_ISDIR(inode->i_mode) && (flag & FMODE_WRITE)) in open_namei()
1293 if (S_ISDIR(mode)) in sys_mknod()
1565 S_ISDIR(dentry->d_inode->i_mode) ? -EISDIR : -ENOTDIR; in sys_unlink()
1866 if (S_ISDIR(old_dentry->d_inode->i_mode)) in vfs_rename()
[all …]
/linux-2.4.37.9/fs/ext2/
Dialloc.c176 is_directory = S_ISDIR(inode->i_mode); in ext2_free_inode()
334 if (S_ISDIR(mode)) in ext2_new_inode()
378 if (S_ISDIR(mode)) in ext2_new_inode()
413 if (S_ISDIR(mode)) in ext2_new_inode()
Dnamei.c167 if (S_ISDIR(inode->i_mode)) in ext2_link()
275 if (S_ISDIR(old_inode->i_mode)) { in ext2_rename()
/linux-2.4.37.9/fs/proc/
Dgeneric.c377 if (S_ISDIR(dp->mode)) { in proc_register()
523 if (S_ISDIR(mode)) { in create_proc_entry()
537 if (S_ISDIR(mode)) { in create_proc_entry()
581 if (S_ISDIR(de->mode)) in remove_proc_entry()
/linux-2.4.37.9/include/linux/
Dstat.h26 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/linux-2.4.37.9/fs/ext3/
Dialloc.c222 is_directory = S_ISDIR(inode->i_mode); in ext3_free_inode()
329 if (S_ISDIR(mode)) { in ext3_new_inode()
453 if (S_ISDIR(mode)) in ext3_new_inode()
475 if (S_ISDIR(mode)) in ext3_new_inode()
/linux-2.4.37.9/fs/efs/
Dnamei.c62 if (!dir || !S_ISDIR(dir->i_mode)) in efs_lookup()
/linux-2.4.37.9/fs/sysv/
Dnamei.c140 if (S_ISDIR(inode->i_mode)) in sysv_link()
248 if (S_ISDIR(old_inode->i_mode)) { in sysv_rename()
/linux-2.4.37.9/fs/ramfs/
Dinode.c145 if (S_ISDIR(mode)) in ramfs_mknod()
172 if (S_ISDIR(inode->i_mode)) in ramfs_link()
/linux-2.4.37.9/fs/devfs/
Dbase.c957 if ( !S_ISDIR (dir->mode) ) in _devfs_search_dir()
994 if ( S_ISDIR (mode) ) rwlock_init (&new->u.dir.lock); in _devfs_alloc_entry()
1032 if ( !S_ISDIR (dir->mode) ) in _devfs_append_entry()
1171 if ( !old || !S_ISDIR (old->mode) ) in _devfs_make_parent_for_leaf()
1276 if ( !S_ISDIR (dir->mode) ) in _devfs_find_by_dev()
1302 if ( !S_ISDIR (entry->mode) ) continue; in _devfs_find_by_dev()
1570 if ( S_ISDIR (mode) ) in devfs_register()
1691 if ( !S_ISDIR (de->mode) ) return; in _devfs_unregister()
1842 if ( old && S_ISDIR (old->mode) ) in devfs_mk_dir()
1970 if ( S_ISDIR (de->mode) ) return -EISDIR; in devfs_get_maj_min()
[all …]

12345