[Ocfs2-devel] [PATCH 0/3] ocfs2: fix slow deleting
Srinivas Eeda
srinivas.eeda at oracle.com
Wed Jul 6 23:19:22 PDT 2011
On 7/5/2011 11:17 PM, Sunil Mushran wrote:
> 2. All nodes have to scan all slots. Even live slots. I remember we
> did for
> a reason. And that reason should be in the comment in the patch written
> by Srini.
When a node unlinks a file it inserts an entry into it's own orphan
slot. If another node is the last one to close the file and dentry got
flushed then it will not do the cleanup as it doesn't know the file was
orphaned. The file will remain in the orphan slot till the node umounts
and the same slot is reused again. To overcome this problem a node has
to rescan all slots(including live slots) and try to do the cleanup.
More information about the Ocfs2-devel
mailing list