[Ocfs2-devel] [PATCH 1/1] OCFS2: anti stale inode for nfs (for 1.4git)

2009-03-06 Thread wengang wang
Back porting from mainline. For nfs exporting, ocfs2_get_dentry() returns the dentry for fh. ocfs2_get_dentry() may read from disk(when inode not in memory) without any cross cluster lock. this leads to load a stale inode. this patch fixes above problem. solution is that in case of inode is not

Re: [Ocfs2-devel] [PATCH 1/1] Patch to recover orphans in offline slots during recovery and mount (revised)

2009-03-06 Thread Joel Becker
On Fri, Mar 06, 2009 at 01:01:21AM -0800, Srinivas Eeda wrote: During recovery, a node recovers orphans in it's slot and the dead node(s). But if the dead nodes were holding orphans in offline slots, they will be left unrecovered. If the dead node is the last one to die and is holding

[Ocfs2-devel] [PATCH 1/1] ocfs2: recover orphans in offline slots during recovery and mount

2009-03-06 Thread Srinivas Eeda
During recovery, a node recovers orphans in it's slot and the dead node(s). But if the dead nodes were holding orphans in offline slots, they will be left unrecovered. If the dead node is the last one to die and is holding orphans in other slots and is the first one to mount, then it only