/kernel/linux/linux-5.10/fs/overlayfs/ |
H A D | dir.c | 68 struct dentry *whiteout; in ovl_whiteout() local 72 if (!ofs->whiteout) { in ovl_whiteout() 73 whiteout = ovl_lookup_temp(workdir); in ovl_whiteout() 74 if (IS_ERR(whiteout)) in ovl_whiteout() 77 err = ovl_do_whiteout(wdir, whiteout); in ovl_whiteout() 79 dput(whiteout); in ovl_whiteout() 80 whiteout = ERR_PTR(err); in ovl_whiteout() 83 ofs->whiteout = whiteout; in ovl_whiteout() 87 whiteout in ovl_whiteout() 113 struct dentry *whiteout; ovl_cleanup_and_whiteout() local [all...] |
H A D | ovl_entry.h | 90 struct dentry *whiteout; member
|
H A D | super.c | 228 dput(ofs->whiteout); in ovl_free_fs() 1193 struct dentry *whiteout; in ovl_check_rename_whiteout() local 1220 whiteout = lookup_one_len(name.name.name, workdir, name.name.len); in ovl_check_rename_whiteout() 1221 err = PTR_ERR(whiteout); in ovl_check_rename_whiteout() 1222 if (IS_ERR(whiteout)) in ovl_check_rename_whiteout() 1225 err = ovl_is_whiteout(whiteout); in ovl_check_rename_whiteout() 1227 /* Best effort cleanup of whiteout and temp file */ in ovl_check_rename_whiteout() 1229 ovl_cleanup(dir, whiteout); in ovl_check_rename_whiteout() 1230 dput(whiteout); in ovl_check_rename_whiteout()
|
/kernel/linux/linux-6.6/fs/overlayfs/ |
H A D | dir.c | 68 struct dentry *whiteout; in ovl_whiteout() local 72 if (!ofs->whiteout) { in ovl_whiteout() 73 whiteout = ovl_lookup_temp(ofs, workdir); in ovl_whiteout() 74 if (IS_ERR(whiteout)) in ovl_whiteout() 77 err = ovl_do_whiteout(ofs, wdir, whiteout); in ovl_whiteout() 79 dput(whiteout); in ovl_whiteout() 80 whiteout = ERR_PTR(err); in ovl_whiteout() 83 ofs->whiteout = whiteout; in ovl_whiteout() 87 whiteout in ovl_whiteout() 113 struct dentry *whiteout; ovl_cleanup_and_whiteout() local [all...] |
H A D | super.c | 610 struct dentry *whiteout; in ovl_check_rename_whiteout() local 637 whiteout = ovl_lookup_upper(ofs, name.name.name, workdir, name.name.len); in ovl_check_rename_whiteout() 638 err = PTR_ERR(whiteout); in ovl_check_rename_whiteout() 639 if (IS_ERR(whiteout)) in ovl_check_rename_whiteout() 642 err = ovl_is_whiteout(whiteout); in ovl_check_rename_whiteout() 644 /* Best effort cleanup of whiteout and temp file */ in ovl_check_rename_whiteout() 646 ovl_cleanup(ofs, dir, whiteout); in ovl_check_rename_whiteout() 647 dput(whiteout); in ovl_check_rename_whiteout()
|
H A D | ovl_entry.h | 89 /* Shared whiteout cache */ 90 struct dentry *whiteout; member
|
H A D | params.c | 757 dput(ofs->whiteout); in ovl_free_fs()
|
/kernel/linux/linux-5.10/fs/f2fs/ |
H A D | namei.c | 829 umode_t mode, struct inode **whiteout) in __f2fs_tmpfile() 843 if (whiteout) { in __f2fs_tmpfile() 868 if (whiteout) { in __f2fs_tmpfile() 875 *whiteout = inode; in __f2fs_tmpfile() 905 static int f2fs_create_whiteout(struct inode *dir, struct inode **whiteout) in f2fs_create_whiteout() argument 910 return __f2fs_tmpfile(dir, NULL, S_IFCHR | WHITEOUT_MODE, whiteout); in f2fs_create_whiteout() 920 struct inode *whiteout = NULL; in f2fs_rename() local 953 err = f2fs_create_whiteout(old_dir, &whiteout); in f2fs_rename() 1042 if (!old_dir_entry || whiteout) in f2fs_rename() 1055 if (whiteout) { in f2fs_rename() 828 __f2fs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode, struct inode **whiteout) __f2fs_tmpfile() argument [all...] |
/kernel/linux/linux-6.6/fs/f2fs/ |
H A D | namei.c | 941 struct inode *dir, struct inode **whiteout, in f2fs_create_whiteout() 945 true, whiteout, fname); in f2fs_create_whiteout() 962 struct inode *whiteout = NULL; in f2fs_rename() local 1002 err = f2fs_create_whiteout(idmap, old_dir, &whiteout, &fname); in f2fs_rename() 1091 if (!old_dir_entry || whiteout) in f2fs_rename() 1104 if (whiteout) { in f2fs_rename() 1105 set_inode_flag(whiteout, FI_INC_LINK); in f2fs_rename() 1106 err = f2fs_add_link(old_dentry, whiteout); in f2fs_rename() 1110 spin_lock(&whiteout->i_lock); in f2fs_rename() 1111 whiteout in f2fs_rename() 940 f2fs_create_whiteout(struct mnt_idmap *idmap, struct inode *dir, struct inode **whiteout, struct f2fs_filename *fname) f2fs_create_whiteout() argument [all...] |
/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | journal.c | 1210 * to 4 inodes(new inode, whiteout inode, old and new parent directory inodes) 1220 const struct inode *whiteout, int sync) in ubifs_jnl_rename() 1253 if (whiteout) { in ubifs_jnl_rename() 1254 whiteout_ui = ubifs_inode(whiteout); in ubifs_jnl_rename() 1256 ubifs_assert(c, whiteout->i_nlink == 1); in ubifs_jnl_rename() 1300 if (whiteout) { in ubifs_jnl_rename() 1301 dent2->inum = cpu_to_le64(whiteout->i_ino); in ubifs_jnl_rename() 1302 dent2->type = get_dent_type(whiteout->i_mode); in ubifs_jnl_rename() 1328 if (whiteout) { in ubifs_jnl_rename() 1329 pack_inode(c, p, whiteout, in ubifs_jnl_rename() 1214 ubifs_jnl_rename(struct ubifs_info *c, const struct inode *old_dir, const struct inode *old_inode, const struct fscrypt_name *old_nm, const struct inode *new_dir, const struct inode *new_inode, const struct fscrypt_name *new_nm, const struct inode *whiteout, int sync) ubifs_jnl_rename() argument [all...] |
H A D | dir.c | 360 * Create an inode('nlink = 1') for whiteout without updating journal, in create_whiteout() 361 * let ubifs_jnl_rename() store it on flash to complete rename whiteout in create_whiteout() 395 ubifs_err(c, "cannot create whiteout file, error %d", err); in create_whiteout() 1294 struct inode *whiteout = NULL; in do_rename() local 1314 * wht_req: new whiteout inode for RENAME_WHITEOUT. in do_rename() 1376 * The whiteout inode without dentry is pinned in memory, in do_rename() 1380 whiteout = create_whiteout(old_dir, old_dentry); in do_rename() 1381 if (IS_ERR(whiteout)) { in do_rename() 1382 err = PTR_ERR(whiteout); in do_rename() 1387 whiteout_ui = ubifs_inode(whiteout); in do_rename() [all...] |
H A D | ubifs.h | 1790 const struct inode *whiteout, int sync);
|
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | journal.c | 1210 * @whiteout: whiteout inode 1214 * to 4 inodes(new inode, whiteout inode, old and new parent directory inodes) 1224 const struct inode *whiteout, int sync) in ubifs_jnl_rename() 1257 if (whiteout) { in ubifs_jnl_rename() 1258 whiteout_ui = ubifs_inode(whiteout); in ubifs_jnl_rename() 1260 ubifs_assert(c, whiteout->i_nlink == 1); in ubifs_jnl_rename() 1304 if (whiteout) { in ubifs_jnl_rename() 1305 dent2->inum = cpu_to_le64(whiteout->i_ino); in ubifs_jnl_rename() 1306 dent2->type = get_dent_type(whiteout in ubifs_jnl_rename() 1218 ubifs_jnl_rename(struct ubifs_info *c, const struct inode *old_dir, const struct inode *old_inode, const struct fscrypt_name *old_nm, const struct inode *new_dir, const struct inode *new_inode, const struct fscrypt_name *new_nm, const struct inode *whiteout, int sync) ubifs_jnl_rename() argument [all...] |
H A D | dir.c | 362 * Create an inode('nlink = 1') for whiteout without updating journal, in create_whiteout() 363 * let ubifs_jnl_rename() store it on flash to complete rename whiteout in create_whiteout() 392 ubifs_err(c, "cannot create whiteout file, error %d", err); in create_whiteout() 1291 struct inode *whiteout = NULL; in do_rename() local 1310 * wht_req: new whiteout inode for RENAME_WHITEOUT. in do_rename() 1372 * The whiteout inode without dentry is pinned in memory, in do_rename() 1376 whiteout = create_whiteout(old_dir, old_dentry); in do_rename() 1377 if (IS_ERR(whiteout)) { in do_rename() 1378 err = PTR_ERR(whiteout); in do_rename() 1383 whiteout_ui = ubifs_inode(whiteout); in do_rename() [all...] |
H A D | ubifs.h | 1819 const struct inode *whiteout, int sync);
|
/kernel/linux/linux-6.6/fs/ext4/ |
H A D | namei.c | 3810 struct inode *whiteout = NULL; in ext4_rename() local 3883 whiteout = ext4_whiteout_for_rename(idmap, &old, credits, &handle); in ext4_rename() 3884 if (IS_ERR(whiteout)) { in ext4_rename() 3885 retval = PTR_ERR(whiteout); in ext4_rename() 3918 if (whiteout) { in ext4_rename() 3923 retval = ext4_setent(handle, &old, whiteout->i_ino, in ext4_rename() 3927 retval = ext4_mark_inode_dirty(handle, whiteout); in ext4_rename() 3955 if (!whiteout) { in ext4_rename() 4009 if (whiteout) in ext4_rename() 4010 __ext4_fc_track_create(handle, whiteout, in ext4_rename() [all...] |
/kernel/linux/linux-5.10/fs/ext4/ |
H A D | namei.c | 3904 struct inode *whiteout = NULL; in ext4_rename() local 3977 whiteout = ext4_whiteout_for_rename(&old, credits, &handle); in ext4_rename() 3978 if (IS_ERR(whiteout)) { in ext4_rename() 3979 retval = PTR_ERR(whiteout); in ext4_rename() 4012 if (whiteout) { in ext4_rename() 4017 retval = ext4_setent(handle, &old, whiteout->i_ino, in ext4_rename() 4021 retval = ext4_mark_inode_dirty(handle, whiteout); in ext4_rename() 4049 if (!whiteout) { in ext4_rename() 4098 if (whiteout) in ext4_rename() 4099 __ext4_fc_track_create(handle, whiteout, ol in ext4_rename() [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | shmem.c | 3073 struct dentry *whiteout; in shmem_whiteout() local 3076 whiteout = d_alloc(old_dentry->d_parent, &old_dentry->d_name); in shmem_whiteout() 3077 if (!whiteout) in shmem_whiteout() 3080 error = shmem_mknod(old_dir, whiteout, in shmem_whiteout() 3082 dput(whiteout); in shmem_whiteout() 3087 * Cheat and hash the whiteout while the old dentry is still in in shmem_whiteout() 3093 d_rehash(whiteout); in shmem_whiteout()
|
/kernel/linux/linux-6.6/mm/ |
H A D | shmem.c | 3380 struct dentry *whiteout; in shmem_whiteout() local 3383 whiteout = d_alloc(old_dentry->d_parent, &old_dentry->d_name); in shmem_whiteout() 3384 if (!whiteout) in shmem_whiteout() 3387 error = shmem_mknod(idmap, old_dir, whiteout, in shmem_whiteout() 3389 dput(whiteout); in shmem_whiteout() 3394 * Cheat and hash the whiteout while the old dentry is still in in shmem_whiteout() 3400 d_rehash(whiteout); in shmem_whiteout()
|