Re: [Ocfs2-devel] [PATCH] ocfs2: don't evaluate buffer head to NULL managed by caller

2018-03-30 Thread Changwei Ge
On 2018/3/30 10:38, Joseph Qi wrote: > > > On 18/3/30 10:17, Changwei Ge wrote: > Since we assume caller has to pass either all NULL or all non-NULL, > here we will only put bh internal allocated. Am I missing something? Thanks for your review. Yes, we will only put bh

[Ocfs2-devel] [PATCH] ocfs2: Take inode cluster lock before moving reflinked inode from orphan dir

2018-03-30 Thread Ashish Samant
While reflinking an inode, we create a new inode in orphan directory, then take EX lock on it, reflink the original inode to orphan inode and release EX lock. Once the lock is released another node might request it in PR mode which causes downconvert of the lock to PR mode. Later we attempt to