/Linux-v5.15/fs/reiserfs/ |
D | xattr.c | 91 inode_lock_nested(d_inode(dentry), I_MUTEX_CHILD); in xattr_unlink() 93 inode_unlock(d_inode(dentry)); in xattr_unlink() 106 inode_lock_nested(d_inode(dentry), I_MUTEX_CHILD); in xattr_rmdir() 109 d_inode(dentry)->i_flags |= S_DEAD; in xattr_rmdir() 110 inode_unlock(d_inode(dentry)); in xattr_rmdir() 127 inode_lock_nested(d_inode(privroot), I_MUTEX_XATTR); in open_xa_root() 136 err = xattr_mkdir(d_inode(privroot), xaroot, 0700); in open_xa_root() 143 inode_unlock(d_inode(privroot)); in open_xa_root() 160 inode_lock_nested(d_inode(xaroot), I_MUTEX_XATTR); in open_xa_dir() 167 err = xattr_mkdir(d_inode(xaroot), xadir, 0700); in open_xa_dir() [all …]
|
/Linux-v5.15/fs/overlayfs/ |
D | dir.c | 55 if (!IS_ERR(temp) && temp->d_inode) { in ovl_lookup_temp() 70 struct inode *wdir = workdir->d_inode; in ovl_whiteout() 97 ofs->whiteout->d_inode->i_nlink, err); in ovl_whiteout() 112 struct inode *wdir = ofs->workdir->d_inode; in ovl_cleanup_and_whiteout() 180 if (newdentry->d_inode) in ovl_create_real() 212 if (!err && WARN_ON(!newdentry->d_inode)) { in ovl_create_real() 229 return ovl_create_real(d_inode(workdir), ovl_lookup_temp(workdir), in ovl_create_temp() 293 WARN_ON(ovl_inode_real(inode) != d_inode(newdentry)); in ovl_instantiate() 326 struct inode *udir = upperdir->d_inode; in ovl_create_upper() 366 struct inode *wdir = workdir->d_inode; in ovl_clear_empty() [all …]
|
D | util.c | 140 if (ovl_test_flag(OVL_CONST_INO, d_inode(dentry))) in ovl_path_type() 143 !ovl_has_upperdata(d_inode(dentry))) in ovl_path_type() 199 return ovl_upperdentry_dereference(OVL_I(d_inode(dentry))); in ovl_dentry_upper() 243 return upperdentry ? d_inode(upperdentry) : NULL; in ovl_inode_upper() 309 return !dentry->d_inode && ovl_dentry_is_opaque(dentry); in ovl_dentry_is_whiteout() 378 return !ovl_test_flag(OVL_UPPERDATA, d_inode(dentry)); in ovl_dentry_needs_data_copy_up_locked() 386 return !ovl_has_upperdata(d_inode(dentry)); in ovl_dentry_needs_data_copy_up() 398 return OVL_I(d_inode(dentry))->redirect; in ovl_dentry_get_redirect() 403 struct ovl_inode *oi = OVL_I(d_inode(dentry)); in ovl_dentry_set_redirect() 411 struct inode *upperinode = d_inode(upperdentry); in ovl_inode_update() [all …]
|
D | inode.c | 51 winode = d_inode(upperdentry); in ovl_setattr() 78 inode_lock(upperdentry->d_inode); in ovl_setattr() 83 ovl_copyattr(upperdentry->d_inode, dentry->d_inode); in ovl_setattr() 84 inode_unlock(upperdentry->d_inode); in ovl_setattr() 130 if (S_ISDIR(dentry->d_inode->i_mode)) { in ovl_map_dev_ino() 141 stat->ino = dentry->d_inode->i_ino; in ovl_map_dev_ino() 160 struct inode *inode = d_inode(dentry); in ovl_getattr() 215 if (ovl_test_flag(OVL_INDEX, d_inode(dentry)) || in ovl_getattr() 269 if (!is_dir && ovl_test_flag(OVL_INDEX, d_inode(dentry))) in ovl_getattr() 270 stat->nlink = dentry->d_inode->i_nlink; in ovl_getattr() [all …]
|
D | copy_up.c | 55 if (!(old->d_inode->i_opflags & IOP_XATTR) || in ovl_copy_xattr() 56 !(new->d_inode->i_opflags & IOP_XATTR)) in ovl_copy_xattr() 429 struct inode *dir = d_inode(indexdir); in ovl_create_index() 447 if (WARN_ON(ovl_test_flag(OVL_INDEX, d_inode(dentry)))) in ovl_create_index() 499 struct inode *udir = d_inode(upperdir); in ovl_link_up() 536 struct inode *inode = d_inode(c->dentry); in ovl_copy_up_inode() 592 inode_lock(temp->d_inode); in ovl_copy_up_inode() 597 inode_unlock(temp->d_inode); in ovl_copy_up_inode() 637 struct inode *udir = d_inode(c->destdir), *wdir = d_inode(c->workdir); in ovl_copy_up_workdir() 685 ovl_set_upperdata(d_inode(c->dentry)); in ovl_copy_up_workdir() [all …]
|
D | readdir.c | 137 ovl_test_flag(OVL_IMPURE, d_inode(rdd->dentry))) in ovl_calc_d_ino() 245 if (ovl_dir_cache(d_inode(dentry)) == cache) in ovl_cache_put() 246 ovl_set_dir_cache(d_inode(dentry), NULL); in ovl_cache_put() 276 err = down_write_killable(&dir->d_inode->i_rwsem); in ovl_check_whiteouts() 287 inode_unlock(dir->d_inode); in ovl_check_whiteouts() 398 cache = ovl_dir_cache(d_inode(dentry)); in ovl_cache_get() 404 ovl_set_dir_cache(d_inode(dentry), NULL); in ovl_cache_get() 422 ovl_set_dir_cache(d_inode(dentry), cache); in ovl_cache_get() 483 if (IS_ERR_OR_NULL(this) || !this->d_inode) { in ovl_cache_update_ino() 602 cache = ovl_dir_cache(d_inode(dentry)); in ovl_cache_get_impure() [all …]
|
D | namei.c | 374 inode_wrong_type(d_inode(upperdentry), d_inode(origin)->i_mode)) in ovl_check_origin_fh() 392 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, in ovl_check_origin_fh() 393 d_inode(origin)->i_mode & S_IFMT); in ovl_check_origin_fh() 476 inode = d_inode(real); in ovl_verify_set_fh() 526 if (!d_inode(index)) in ovl_verify_index() 591 if (!d_is_dir(index) && d_inode(index)->i_nlink == 1) { in ovl_verify_index() 607 index, d_inode(index)->i_mode & S_IFMT, err); in ovl_verify_index() 612 index, d_inode(index)->i_mode & S_IFMT, in ovl_verify_index() 613 d_inode(index)->i_nlink); in ovl_verify_index() 716 d_inode(origin)->i_ino, name.len, name.name, in ovl_lookup_index() [all …]
|
/Linux-v5.15/fs/ecryptfs/ |
D | inode.c | 32 *lower_dir = d_inode(lower_dir_dentry); in lock_parent() 118 struct inode *inode = ecryptfs_get_inode(d_inode(lower_dentry), sb); in ecryptfs_interpose() 189 inode = __ecryptfs_get_inode(d_inode(lower_dentry), in ecryptfs_do_create() 331 fsstack_copy_attr_atime(d_inode(dentry->d_parent), in ecryptfs_lookup_interpose() 332 d_inode(path->dentry)); in ecryptfs_lookup_interpose() 345 lower_inode = READ_ONCE(lower_dentry->d_inode); in ecryptfs_lookup_interpose() 431 file_size_save = i_size_read(d_inode(old_dentry)); in ecryptfs_link() 444 set_nlink(d_inode(old_dentry), in ecryptfs_link() 445 ecryptfs_inode_to_lower(d_inode(old_dentry))->i_nlink); in ecryptfs_link() 446 i_size_write(d_inode(new_dentry), file_size_save); in ecryptfs_link() [all …]
|
/Linux-v5.15/fs/cachefiles/ |
D | namei.c | 312 ret = vfs_unlink(&init_user_ns, d_inode(dir), rep, in cachefiles_bury_object() 319 inode_unlock(d_inode(dir)); in cachefiles_bury_object() 330 inode_unlock(d_inode(dir)); in cachefiles_bury_object() 342 if (rep->d_parent != dir || IS_DEADDIR(d_inode(rep))) { in cachefiles_bury_object() 416 .old_dir = d_inode(dir), in cachefiles_bury_object() 419 .new_dir = d_inode(cache->graveyard), in cachefiles_bury_object() 455 inode_lock_nested(d_inode(dir), I_MUTEX_PARENT); in cachefiles_delete_object() 461 inode_unlock(d_inode(dir)); in cachefiles_delete_object() 474 inode_unlock(d_inode(dir)); in cachefiles_delete_object() 533 inode_lock_nested(d_inode(dir), I_MUTEX_PARENT); in cachefiles_walk_to_object() [all …]
|
/Linux-v5.15/fs/orangefs/ |
D | dcache.c | 19 struct inode *parent_inode = parent_dentry->d_inode; in orangefs_revalidate_lookup() 21 struct inode *inode = dentry->d_inode; in orangefs_revalidate_lookup() 110 if (dentry->d_inode && is_root_handle(dentry->d_inode)) in orangefs_d_revalidate() 121 if (!dentry->d_inode) { in orangefs_d_revalidate() 130 ret = orangefs_inode_check_changed(dentry->d_inode); in orangefs_d_revalidate()
|
/Linux-v5.15/drivers/base/ |
D | devtmpfs.c | 165 err = vfs_mkdir(&init_user_ns, d_inode(path.dentry), dentry, mode); in dev_mkdir() 168 d_inode(dentry)->i_private = &thread; in dev_mkdir() 215 err = vfs_mknod(&init_user_ns, d_inode(path.dentry), dentry, mode, in handle_create() 224 inode_lock(d_inode(dentry)); in handle_create() 226 inode_unlock(d_inode(dentry)); in handle_create() 229 d_inode(dentry)->i_private = &thread; in handle_create() 245 if (d_inode(dentry)->i_private == &thread) in dev_rmdir() 246 err = vfs_rmdir(&init_user_ns, d_inode(parent.dentry), in dev_rmdir() 254 inode_unlock(d_inode(parent.dentry)); in dev_rmdir() 321 if (!err && dev_mynode(dev, d_inode(dentry), &stat)) { in handle_remove() [all …]
|
/Linux-v5.15/fs/configfs/ |
D | dir.c | 306 inc_nlink(d_inode(p)); in configfs_create_dir() 388 simple_rmdir(d_inode(parent),d); in remove_dir() 624 inode_lock(d_inode(child)); in detach_groups() 627 d_inode(child)->i_flags |= S_DEAD; in detach_groups() 630 inode_unlock(d_inode(child)); in detach_groups() 673 BUG_ON(d_inode(child)); in create_default_group() 817 inode_lock(d_inode(dentry)); in configfs_attach_item() 819 d_inode(dentry)->i_flags |= S_DEAD; in configfs_attach_item() 821 inode_unlock(d_inode(dentry)); in configfs_attach_item() 858 inode_lock_nested(d_inode(dentry), I_MUTEX_CHILD); in configfs_attach_group() [all …]
|
/Linux-v5.15/fs/gfs2/ |
D | dentry.c | 48 sdp = GFS2_SB(d_inode(parent)); in gfs2_drevalidate() 49 dip = GFS2_I(d_inode(parent)); in gfs2_drevalidate() 50 inode = d_inode(dentry); in gfs2_drevalidate() 70 error = gfs2_dir_check(d_inode(parent), &dentry->d_name, ip); in gfs2_drevalidate() 93 ginode = GFS2_I(d_inode(dentry)); in gfs2_dentry_delete()
|
/Linux-v5.15/fs/debugfs/ |
D | inode.c | 156 struct inode *inode = d_inode(sb->s_root); in debugfs_apply_options() 227 return f(path->dentry, d_inode(path->dentry)->i_private); in debugfs_automount() 348 inode_lock(d_inode(parent)); in start_creating() 349 if (unlikely(IS_DEADDIR(d_inode(parent)))) in start_creating() 365 inode_unlock(d_inode(parent)); in start_creating() 374 inode_unlock(d_inode(dentry->d_parent)); in failed_creating() 382 inode_unlock(d_inode(dentry->d_parent)); in end_creating() 423 fsnotify_create(d_inode(dentry->d_parent), dentry); in __debugfs_create_file() 532 d_inode(de)->i_size = file_size; in debugfs_create_file_size() 582 inc_nlink(d_inode(dentry->d_parent)); in debugfs_create_dir() [all …]
|
/Linux-v5.15/fs/exportfs/ |
D | expfs.c | 53 inode = result->d_inode; in find_acceptable_alias() 129 inode_lock(dentry->d_inode); in reconnect_one() 132 inode_unlock(dentry->d_inode); in reconnect_one() 136 __func__, dentry->d_inode->i_ino, PTR_ERR(parent)); in reconnect_one() 141 dentry->d_inode->i_ino, parent->d_inode->i_ino); in reconnect_one() 280 struct inode *dir = path->dentry->d_inode; in get_name() 402 struct inode *inode = dentry->d_inode, *parent = NULL; in exportfs_encode_fh() 410 parent = p->d_inode; in exportfs_encode_fh() 527 inode_lock(target_dir->d_inode); in exportfs_decode_fh_raw() 530 if (unlikely(nresult->d_inode != result->d_inode)) { in exportfs_decode_fh_raw() [all …]
|
/Linux-v5.15/fs/tracefs/ |
D | inode.c | 112 inode_unlock(dentry->d_inode); in tracefs_syscall_rmdir() 117 inode_lock(dentry->d_inode); in tracefs_syscall_rmdir() 215 struct inode *inode = sb->s_root->d_inode; in tracefs_apply_options() 334 inode_lock(parent->d_inode); in start_creating() 335 if (unlikely(IS_DEADDIR(parent->d_inode))) in start_creating() 339 if (!IS_ERR(dentry) && dentry->d_inode) { in start_creating() 345 inode_unlock(parent->d_inode); in start_creating() 354 inode_unlock(dentry->d_parent->d_inode); in failed_creating() 362 inode_unlock(dentry->d_parent->d_inode); in end_creating() 418 fsnotify_create(dentry->d_parent->d_inode, dentry); in tracefs_create_file() [all …]
|
/Linux-v5.15/fs/ |
D | namei.c | 782 BUG_ON(nd->inode != parent->d_inode); in try_to_unlazy() 969 nd->inode = d->d_inode; in nd_jump_root() 977 nd->inode = nd->path.dentry->d_inode; in nd_jump_root() 1006 nd->inode = nd->path.dentry->d_inode; in nd_jump_link() 1131 struct inode *inode = link->dentry->d_inode; in may_linkat() 1305 dentry->d_inode) in follow_automount() 1456 *inode = dentry->d_inode; in __follow_mount_rcu() 1545 struct inode *dir = base->d_inode; in __lookup_hash() 1635 struct inode *inode = dir->d_inode; in __lookup_slow() 1671 struct inode *inode = dir->d_inode; in lookup_slow() [all …]
|
/Linux-v5.15/fs/ceph/ |
D | export.c | 147 if (ceph_security_xattr_wanted(d_inode(sb->s_root))) in __lookup_inode() 235 if (ceph_security_xattr_wanted(d_inode(sb->s_root))) in __snapfh_to_dentry() 320 req->r_inode = d_inode(child); in __get_parent() 321 ihold(d_inode(child)); in __get_parent() 330 if (ceph_security_xattr_wanted(d_inode(sb->s_root))) in __get_parent() 353 struct inode *inode = d_inode(child); in ceph_get_parent() 428 struct inode *inode = d_inode(child); in __get_snap_name() 429 struct inode *dir = d_inode(parent); in __get_snap_name() 527 struct inode *inode = d_inode(child); in ceph_get_name() 539 inode_lock(d_inode(parent)); in ceph_get_name() [all …]
|
/Linux-v5.15/fs/crypto/ |
D | hooks.c | 42 if (IS_ENCRYPTED(d_inode(dir)) && in fscrypt_file_open() 43 !fscrypt_has_permitted_context(d_inode(dir), inode)) { in fscrypt_file_open() 46 d_inode(dir)->i_ino); in fscrypt_file_open() 86 d_inode(old_dentry))) in __fscrypt_prepare_rename() 92 d_inode(new_dentry))) in __fscrypt_prepare_rename() 125 return fscrypt_require_key(d_inode(dentry)); in __fscrypt_prepare_setattr() 411 struct inode *inode = d_inode(dentry); in fscrypt_symlink_getattr()
|
/Linux-v5.15/fs/ksmbd/ |
D | vfs.c | 79 inode_lock_nested(d_inode(parent), I_MUTEX_PARENT); in ksmbd_vfs_lock_parent() 96 inode_unlock(d_inode(parent)); in ksmbd_vfs_lock_parent() 113 ret = inode_permission(user_ns, d_inode(parent), in ksmbd_vfs_may_delete() 116 inode_unlock(d_inode(parent)); in ksmbd_vfs_may_delete() 129 if (!inode_permission(user_ns, d_inode(dentry), MAY_OPEN | MAY_WRITE)) in ksmbd_vfs_query_maximal_access() 135 if (!inode_permission(user_ns, d_inode(dentry), MAY_OPEN | MAY_READ)) in ksmbd_vfs_query_maximal_access() 138 if (!inode_permission(user_ns, d_inode(dentry), MAY_OPEN | MAY_EXEC)) in ksmbd_vfs_query_maximal_access() 148 if (!inode_permission(user_ns, d_inode(parent), MAY_EXEC | MAY_WRITE)) in ksmbd_vfs_query_maximal_access() 151 inode_unlock(d_inode(parent)); in ksmbd_vfs_query_maximal_access() 181 err = vfs_create(mnt_user_ns(path.mnt), d_inode(path.dentry), in ksmbd_vfs_create() [all …]
|
/Linux-v5.15/fs/nfs/ |
D | unlink.c | 49 struct inode *dir = d_inode(data->dentry->d_parent); in nfs_async_unlink_done() 69 up_read_non_owner(&NFS_I(d_inode(dentry->d_parent))->rmdir_sem); in nfs_async_unlink_release() 79 struct inode *dir = d_inode(data->dentry->d_parent); in nfs_unlink_prepare() 104 struct inode *dir = d_inode(data->dentry->d_parent); in nfs_do_call_unlink() 119 struct inode *dir = d_inode(dentry->d_parent); in nfs_call_unlink() 286 nfs_mark_for_revalidate(d_inode(data->old_dentry)); in nfs_async_rename_release() 437 struct inode *inode = d_inode(dentry); in nfs_sillyrename() 451 fileid = NFS_FILEID(d_inode(dentry)); in nfs_sillyrename() 473 } while (d_inode(sdentry) != NULL); /* need negative lookup */ in nfs_sillyrename()
|
/Linux-v5.15/fs/afs/ |
D | mntpt.c | 75 struct afs_vnode *vnode = AFS_FS_I(d_inode(mntpt)); in afs_mntpt_set_params() 122 loff_t size = i_size_read(d_inode(mntpt)); in afs_mntpt_set_params() 131 page = read_mapping_page(d_inode(mntpt)->i_mapping, 0, NULL); in afs_mntpt_set_params() 136 ret = afs_bad(AFS_FS_I(d_inode(mntpt)), afs_file_error_mntpt); in afs_mntpt_set_params() 163 BUG_ON(!d_inode(mntpt)); in afs_mntpt_do_automount()
|
D | dynroot.c | 225 ASSERTCMP(d_inode(dentry), ==, NULL); in afs_dynroot_lookup() 287 inode_lock(root->d_inode); in afs_dynroot_mkdir() 298 inode_unlock(root->d_inode); in afs_dynroot_mkdir() 315 inode_lock(root->d_inode); in afs_dynroot_rmdir() 333 inode_unlock(root->d_inode); in afs_dynroot_rmdir() 381 inode_lock(root->d_inode); in afs_dynroot_depopulate() 391 inode_unlock(root->d_inode); in afs_dynroot_depopulate()
|
/Linux-v5.15/include/linux/ |
D | dcache.h | 98 struct inode *d_inode; /* Where the name belongs to - NULL is member 476 return dentry->d_inode == NULL; in d_really_is_negative() 494 return dentry->d_inode != NULL; in d_really_is_positive() 524 static inline struct inode *d_inode(const struct dentry *dentry) in d_inode() function 526 return dentry->d_inode; in d_inode() 538 return READ_ONCE(dentry->d_inode); in d_inode_rcu() 553 struct inode *inode = upper->d_inode; in d_backing_inode()
|
/Linux-v5.15/fs/jffs2/ |
D | dir.c | 231 struct jffs2_inode_info *dead_f = JFFS2_INODE_INFO(d_inode(dentry)); in jffs2_unlink() 238 set_nlink(d_inode(dentry), dead_f->inocache->pino_nlink); in jffs2_unlink() 249 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); in jffs2_link() 263 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link() 271 set_nlink(d_inode(old_dentry), ++f->inocache->pino_nlink); in jffs2_link() 273 d_instantiate(dentry, d_inode(old_dentry)); in jffs2_link() 275 ihold(d_inode(old_dentry)); in jffs2_link() 593 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(dentry)); in jffs2_rmdir() 611 clear_nlink(d_inode(dentry)); in jffs2_rmdir() 785 victim_f = JFFS2_INODE_INFO(d_inode(new_dentry)); in jffs2_rename() [all …]
|