Searched refs:S_ISDIR (Results 1 - 25 of 277) sorted by relevance

1234567891011>>

/linux-master/fs/xfs/scrub/
H A Dnlinks.h97 if (ip && S_ISDIR(VFS_I(ip)->i_mode) && VFS_I(ip)->i_nlink)
H A Dparent.c146 if (dp == sc->ip || !S_ISDIR(VFS_I(dp)->i_mode)) {
201 if (!S_ISDIR(VFS_I(sc->ip)->i_mode))
H A Dinode.c293 !S_ISDIR(mode))
334 if ((flags2 & XFS_DIFLAG2_DAX) && !(S_ISREG(mode) || S_ISDIR(mode)))
467 if (!S_ISDIR(mode) && !S_ISLNK(mode))
471 if (!S_ISREG(mode) && !S_ISDIR(mode) && !S_ISLNK(mode))
475 if (!S_ISREG(mode) && !S_ISDIR(mode))
499 if (!S_ISDIR(mode) && !S_ISREG(mode) && !S_ISLNK(mode) && isize != 0)
503 if (S_ISDIR(mode) && (isize == 0 || isize >= XFS_DIR2_SPACE_SIZE))
H A Dnlinks_repair.c95 if (!S_ISDIR(VFS_I(ip)->i_mode) && obs.children != 0) {
/linux-master/fs/nfs/
H A Dnfs4getroot.c30 || !S_ISDIR(fsinfo.fattr->mode)) {
H A Dnfs3acl.c82 if (S_ISDIR(inode->i_mode))
179 if (acl == NULL && (!S_ISDIR(inode->i_mode) || dfacl == NULL))
193 if (S_ISDIR(inode->i_mode)) {
264 if (S_ISDIR(inode->i_mode)) {
/linux-master/tools/power/acpi/os_specific/service_layers/
H A Dosunixdir.c131 if ((S_ISDIR(temp_stat.st_mode)
134 || ((!S_ISDIR(temp_stat.st_mode)
/linux-master/tools/perf/util/
H A Dpath.c68 return S_ISDIR(st.st_mode);
80 return !S_ISDIR(st.st_mode) && (st.st_mode & S_IXUSR);
/linux-master/fs/jfs/
H A Djfs_inode.c56 rc = diAlloc(parent, S_ISDIR(mode), inode);
88 if (S_ISDIR(mode)) {
H A Dioctl.c87 if (!S_ISDIR(inode->i_mode))
/linux-master/scripts/dtc/
H A Dfstree.c53 } else if (S_ISDIR(st.st_mode)) {
/linux-master/fs/hpfs/
H A Dinode.c166 if ((i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0 : 0111))
167 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG))
168 && i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0222 : 0333))
169 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG))) || hpfs_inode->i_ea_mode) {
227 } else if (S_ISDIR(i->i_mode)) {
241 if (S_ISDIR(i->i_mode)) {
/linux-master/fs/gfs2/
H A Dinode.c62 } else if (S_ISDIR(mode)) {
376 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1)
388 if (S_ISDIR(inode->i_mode))
397 if (S_ISDIR(inode->i_mode))
660 if (S_ISDIR(inode->i_mode)) {
698 set_nlink(inode, S_ISDIR(mode) ? 2 : 1);
957 if (S_ISDIR(inode->i_mode))
1126 if (S_ISDIR(inode->i_mode))
1186 if (S_ISDIR(inode->i_mode)) {
1436 if (S_ISDIR(i
[all...]
/linux-master/tools/testing/selftests/powerpc/papr_attributes/
H A Dattr_test.c71 FAIL_IF(!S_ISDIR(s.st_mode));
/linux-master/fs/coda/
H A Dcache.c109 if ( !inode || !S_ISDIR(inode->i_mode))
/linux-master/tools/power/cpupower/lib/
H A Dcpuidle.c292 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode))
296 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode))
299 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) {
/linux-master/tools/power/cpupower/utils/helpers/
H A Dsysfs.c362 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode))
366 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode))
369 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) {
/linux-master/fs/bcachefs/
H A Dfs-common.c16 return S_ISDIR(inode->bi_mode) && !inode->bi_subvol;
274 if (!deleting_subvol && S_ISDIR(inode_u->bi_mode)) {
483 if (S_ISDIR(src_inode_u->bi_mode) !=
484 S_ISDIR(dst_inode_u->bi_mode)) {
489 if (S_ISDIR(dst_inode_u->bi_mode)) {
497 S_ISDIR(src_inode_u->bi_mode)) {
504 S_ISDIR(dst_inode_u->bi_mode)) {
/linux-master/fs/xfs/libxfs/
H A Dxfs_inode_buf.c382 if (S_ISDIR(mode) || S_ISLNK(mode)) {
504 if ((S_ISLNK(mode) || S_ISDIR(mode)) && di_size == 0)
522 if (S_ISDIR(mode) && nextents > mp->m_dir_geo->max_extents)
702 if ((hint_flag || inherit_flag) && !(S_ISDIR(mode) || S_ISREG(mode)))
708 if (inherit_flag && !S_ISDIR(mode))
762 if (hint_flag && !(S_ISDIR(mode) || S_ISREG(mode)))
H A Dxfs_dir2.c201 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
241 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
274 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
372 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
442 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
500 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
/linux-master/include/linux/
H A Dfsnotify.h56 if (S_ISDIR(inode->i_mode))
71 if (S_ISDIR(inode->i_mode)) {
286 if (S_ISDIR(inode->i_mode))
/linux-master/include/uapi/linux/
H A Dstat.h23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/linux-master/tools/include/uapi/linux/
H A Dstat.h23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/linux-master/fs/
H A Dremap_range.c295 if (S_ISDIR(inode_in->i_mode) || S_ISDIR(inode_out->i_mode))
471 if (S_ISDIR(file_inode(dst_file)->i_mode))
512 if (S_ISDIR(src->i_mode))
/linux-master/fs/btrfs/
H A Dacl.c69 if (!S_ISDIR(inode->i_mode))

Completed in 1184 milliseconds

1234567891011>>