Lines Matching refs:whiteout
833 umode_t mode, struct inode **whiteout) in __f2fs_tmpfile() argument
847 if (whiteout) { in __f2fs_tmpfile()
872 if (whiteout) { in __f2fs_tmpfile()
879 *whiteout = inode; in __f2fs_tmpfile()
909 static int f2fs_create_whiteout(struct inode *dir, struct inode **whiteout) in f2fs_create_whiteout() argument
914 return __f2fs_tmpfile(dir, NULL, S_IFCHR | WHITEOUT_MODE, whiteout); in f2fs_create_whiteout()
924 struct inode *whiteout = NULL; in f2fs_rename() local
957 err = f2fs_create_whiteout(old_dir, &whiteout); in f2fs_rename()
1046 if (!old_dir_entry || whiteout) in f2fs_rename()
1059 if (whiteout) { in f2fs_rename()
1060 set_inode_flag(whiteout, FI_INC_LINK); in f2fs_rename()
1061 err = f2fs_add_link(old_dentry, whiteout); in f2fs_rename()
1065 spin_lock(&whiteout->i_lock); in f2fs_rename()
1066 whiteout->i_state &= ~I_LINKABLE; in f2fs_rename()
1067 spin_unlock(&whiteout->i_lock); in f2fs_rename()
1069 iput(whiteout); in f2fs_rename()
1073 if (old_dir != new_dir && !whiteout) in f2fs_rename()
1104 if (whiteout) in f2fs_rename()
1105 iput(whiteout); in f2fs_rename()