Unionfs ODF: Check UNIONFS_D before grabbing dentry lock
authorRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Sun, 18 May 2008 07:28:34 +0000 (03:28 -0400)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Sun, 18 May 2008 07:28:34 +0000 (03:28 -0400)
commit2ceed14fabbfddac8fabd0a7baa0d90912088ba5
treef9e46c410f388e2912f6e7d0610c414f9216ceda
parent2eac778886c080c6d74868cd75fc20d4ef8c5b07
Unionfs ODF: Check UNIONFS_D before grabbing dentry lock

First check if the UNIONFS_D() is non NULL, and only then grab
a lock on the dentry.  Since trying to grab a lock, which is a
member of UNIONFS_D(), doesn't make sense if it is itself NULL

Signed-off-by: Rachita Kothiyal <rachita@fsl.cs.sunysb.edu>
fs/unionfs/dentry.c