/fs/overlayfs/ |
D | namei.c | 20 bool is_dir; member 234 if (d->is_dir || !last_element) { in ovl_lookup_single() 254 d->is_dir = true; in ovl_lookup_single() 691 bool is_dir = d_is_dir(origin); in ovl_lookup_index() local 738 } else if (is_dir && verify) { in ovl_lookup_index() 838 .is_dir = false, in ovl_lookup() 861 if (upperdentry && !d.is_dir) { in ovl_lookup() 921 if (upperdentry && !ctr && !ofs->noxattr && d.is_dir) { in ovl_lookup() 939 ((d.is_dir && ovl_verify_lower(dentry->d_sb)) || in ovl_lookup() 940 (!d.is_dir && ofs->config.index && origin_path))) { in ovl_lookup() [all …]
|
D | inode.c | 148 bool is_dir = S_ISDIR(dentry->d_inode->i_mode); in ovl_getattr() local 171 if (!is_dir || samefs || ovl_xino_bits(dentry->d_sb)) { in ovl_getattr() 177 (!is_dir ? STATX_NLINK : 0); in ovl_getattr() 202 (is_dir || lowerstat.nlink == 1))) { in ovl_getattr() 253 if (is_dir && OVL_TYPE_MERGE(type)) in ovl_getattr() 262 if (!is_dir && ovl_test_flag(OVL_INDEX, d_inode(dentry))) in ovl_getattr() 886 bool is_dir, metacopy = false; in ovl_get_inode() local 897 is_dir = S_ISDIR(realinode->i_mode); in ovl_get_inode() 901 unsigned int nlink = is_dir ? 1 : realinode->i_nlink; in ovl_get_inode() 924 if (!is_dir) in ovl_get_inode() [all …]
|
D | dir.c | 768 static int ovl_remove_upper(struct dentry *dentry, bool is_dir, in ovl_remove_upper() argument 796 if (is_dir) in ovl_remove_upper() 825 static int ovl_do_remove(struct dentry *dentry, bool is_dir) in ovl_do_remove() argument 834 if (is_dir && (lower_positive || !ovl_pure_upper(dentry))) { in ovl_do_remove() 854 err = ovl_remove_upper(dentry, is_dir, &list); in ovl_do_remove() 859 if (is_dir) in ovl_do_remove() 1038 bool is_dir = d_is_dir(old); in ovl_rename() local 1073 } else if (is_dir && ovl_dentry_is_whiteout(new)) { in ovl_rename() 1182 else if (is_dir && !old_opaque && ovl_type_merge(new->d_parent)) in ovl_rename()
|
/fs/fat/ |
D | namei_msdos.c | 228 int is_dir, int is_hid, int cluster, in msdos_add_entry() argument 237 de.attr = is_dir ? ATTR_DIR : ATTR_ARCH; in msdos_add_entry() 438 int err, old_attrs, is_dir, update_dotdot, corrupt = 0; in do_msdos_rename() local 450 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename() 451 update_dotdot = (is_dir && old_dir != new_dir); in do_msdos_rename() 495 if (is_dir) { in do_msdos_rename() 503 err = msdos_add_entry(new_dir, new_name, is_dir, is_hid, 0, in do_msdos_rename() 550 if (is_dir) in do_msdos_rename()
|
D | namei_vfat.c | 580 int len, int is_dir, int cluster, in vfat_build_slots() argument 643 de->attr = is_dir ? ATTR_DIR : ATTR_ARCH; in vfat_build_slots() 657 int is_dir, int cluster, struct timespec64 *ts, in vfat_add_entry() argument 672 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, in vfat_add_entry() 905 int err, is_dir, update_dotdot, corrupt = 0; in vfat_rename() local 919 is_dir = S_ISDIR(old_inode->i_mode); in vfat_rename() 920 update_dotdot = (is_dir && old_dir != new_dir); in vfat_rename() 930 if (is_dir) { in vfat_rename() 938 err = vfat_add_entry(new_dir, &new_dentry->d_name, is_dir, 0, in vfat_rename() 981 if (is_dir) in vfat_rename()
|
D | file.c | 39 int is_dir = S_ISDIR(inode->i_mode); in fat_ioctl_set_attributes() local 62 (is_dir ? ATTR_DIR : 0); in fat_ioctl_set_attributes() 68 if (is_dir) in fat_ioctl_set_attributes()
|
/fs/ocfs2/ |
D | journal.h | 418 static inline int ocfs2_mknod_credits(struct super_block *sb, int is_dir, in ocfs2_mknod_credits() argument 423 if (is_dir) in ocfs2_mknod_credits()
|
/fs/f2fs/ |
D | node.h | 428 static inline void set_cold_node(struct page *page, bool is_dir) in set_cold_node() argument 433 if (is_dir) in set_cold_node()
|
D | checkpoint.c | 1040 bool is_dir = (type == DIR_INODE); in f2fs_sync_dirty_inodes() local 1043 trace_f2fs_sync_dirty_inodes_enter(sbi->sb, is_dir, in f2fs_sync_dirty_inodes() 1044 get_pages(sbi, is_dir ? in f2fs_sync_dirty_inodes() 1055 trace_f2fs_sync_dirty_inodes_exit(sbi->sb, is_dir, in f2fs_sync_dirty_inodes() 1056 get_pages(sbi, is_dir ? in f2fs_sync_dirty_inodes()
|
/fs/ubifs/ |
D | dir.c | 1256 int is_dir = S_ISDIR(old_inode->i_mode); in do_rename() local 1287 if (unlink && is_dir) { in do_rename() 1352 if (is_dir) { in do_rename() 1392 if (is_dir) in do_rename() 1463 if (is_dir) { in do_rename()
|
/fs/ |
D | namei.c | 3722 bool is_dir = (lookup_flags & LOOKUP_DIRECTORY); in filename_create() local 3762 if (unlikely(!is_dir && last.name[last.len])) { in filename_create() 4546 bool is_dir = d_is_dir(old_dentry); in vfs_rename2() local 4556 error = may_delete(mnt, old_dir, old_dentry, is_dir); in vfs_rename2() 4566 error = may_delete(mnt, new_dir, new_dentry, is_dir); in vfs_rename2() 4581 if (is_dir) { in vfs_rename2() 4600 if (!is_dir || (flags & RENAME_EXCHANGE)) in vfs_rename2() 4611 if (is_dir && !new_is_dir && new_dir->i_nlink >= max_links) in vfs_rename2() 4613 if ((flags & RENAME_EXCHANGE) && !is_dir && new_is_dir && in vfs_rename2() 4617 if (!is_dir) { in vfs_rename2() [all …]
|
/fs/xfs/ |
D | xfs_inode.c | 1133 int is_dir = S_ISDIR(mode); in xfs_create() local 1163 if (is_dir) { in xfs_create() 1202 error = xfs_dir_ialloc(&tp, dp, mode, is_dir ? 2 : 1, rdev, prid, &ip); in xfs_create() 1226 if (is_dir) { in xfs_create() 2865 int is_dir = S_ISDIR(VFS_I(ip)->i_mode); in xfs_remove() local 2911 if (is_dir) { in xfs_remove() 2964 if (is_dir && xfs_inode_is_filestream(ip)) in xfs_remove()
|
/fs/ext4/ |
D | namei.c | 3447 bool is_dir; member 3912 old.is_dir = true; in ext4_cross_rename() 3918 new.is_dir = true; in ext4_cross_rename() 3928 if (old.dir != new.dir && old.is_dir != new.is_dir) { in ext4_cross_rename() 3929 old.dir_nlink_delta = old.is_dir ? -1 : 1; in ext4_cross_rename()
|
/fs/cifs/ |
D | cifsglob.h | 488 __le16 *path, int is_dir,
|
D | smb2ops.c | 1357 __le16 *path, int is_dir, in smb2_ioctl_query_info() argument 1417 if (is_dir) in smb2_ioctl_query_info()
|