Re: [Ocfs2-devel] What's the need of OCFS2_INODE_MAYBE_ORPHANED?

2014-01-09 Thread Joel Becker
Unlink can happen from anywhere, but only the last closing node can actually remove the file. MAYBE_ORPHANED tells the node to try for removal at close time. It is absolutely necessary. Joel On Wed, Jan 08, 2014 at 09:30:49PM -0800, Srinivas Eeda wrote: On 01/08/2014 07:12 PM, Goldwyn

Re: [Ocfs2-devel] What's the need of OCFS2_INODE_MAYBE_ORPHANED?

2014-01-09 Thread Goldwyn Rodrigues
On 01/09/2014 04:23 AM, Joel Becker wrote: Unlink can happen from anywhere, but only the last closing node can actually remove the file. MAYBE_ORPHANED tells the node to try for removal at close time. It is absolutely necessary. The reason I asked the query is that

Re: [Ocfs2-devel] What's the need of OCFS2_INODE_MAYBE_ORPHANED?

2014-01-09 Thread Goldwyn Rodrigues
Hi Srini, Thanks for the reply. On 01/08/2014 11:30 PM, Srinivas Eeda wrote: From the comments in fs/ocfs2/inode.h:90 it seems, this was used in legacy ocfs2 systems when a node received unlink votes. Since unlink votes has been done away with and replaced with open locks, is this flag still

Re: [Ocfs2-devel] What's the need of OCFS2_INODE_MAYBE_ORPHANED?

2014-01-09 Thread Goldwyn Rodrigues
On 01/09/2014 10:06 AM, Srinivas Eeda wrote: On 01/09/2014 07:44 AM, Goldwyn Rodrigues wrote: Hi Srini, Thanks for the reply. On 01/08/2014 11:30 PM, Srinivas Eeda wrote: From the comments in fs/ocfs2/inode.h:90 it seems, this was used in legacy ocfs2 systems when a node received unlink

Re: [Ocfs2-devel] What's the need of OCFS2_INODE_MAYBE_ORPHANED?

2014-01-09 Thread Srinivas Eeda
On 01/09/2014 08:34 AM, Goldwyn Rodrigues wrote: On 01/09/2014 10:06 AM, Srinivas Eeda wrote: On 01/09/2014 07:44 AM, Goldwyn Rodrigues wrote: Hi Srini, Thanks for the reply. On 01/08/2014 11:30 PM, Srinivas Eeda wrote: From the comments in fs/ocfs2/inode.h:90 it seems, this was used in

Re: [Ocfs2-devel] What's the need of OCFS2_INODE_MAYBE_ORPHANED?

2014-01-09 Thread Goldwyn Rodrigues
On 01/09/2014 11:04 AM, Srinivas Eeda wrote: On 01/09/2014 08:34 AM, Goldwyn Rodrigues wrote: On 01/09/2014 10:06 AM, Srinivas Eeda wrote: On 01/09/2014 07:44 AM, Goldwyn Rodrigues wrote: Hi Srini, Thanks for the reply. On 01/08/2014 11:30 PM, Srinivas Eeda wrote: From the comments in