* [Ocfs2-devel] Question about ocfs2_rename
@ 2015-03-31 3:23 jiangyiwen
0 siblings, 0 replies; only message in thread
From: jiangyiwen @ 2015-03-31 3:23 UTC (permalink / raw)
To: ocfs2-devel
Hi Mark,
In the function of ocfs2_rename, there is a comment before
ocfs2_find_entry(old_dentry):
/*
* Now that the name has been added to new_dir, remove the old name.
*
* We don't keep any directory entry context around until now
* because the insert might have changed the type of directory
* we're dealing with.
*/
I don't understand the meaning of this comment. The main problems
are as follows:
1) I think in this flow, we will delete old directory entry,
but what does "the insert" refer to?
2) what does "the type of directory we're dealing with" mean?
why it might be changed?
I've studied the flow of ext4_rename and have not found
such process or scenario. So I'm confused whether we may
call ocfs2_fine_entry(old_entry) before ...
Thanks,
Yiwen Jiang
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-31 3:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-31 3:23 [Ocfs2-devel] Question about ocfs2_rename jiangyiwen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.