From: jiangyiwen <jiangyiwen@huawei.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] Question about ocfs2_rename
Date: Tue, 31 Mar 2015 11:23:05 +0800 [thread overview]
Message-ID: <551A1319.50708@huawei.com> (raw)
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
reply other threads:[~2015-03-31 3:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=551A1319.50708@huawei.com \
--to=jiangyiwen@huawei.com \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.