summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/inode.c
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2006-09-08 14:21:03 -0700
committerMark Fasheh <mark.fasheh@oracle.com>2006-09-24 13:50:43 -0700
commit379dfe9d0db99ed33fb089fcb9c07f5f92566e9e (patch)
tree8f04d8dbf97fa70d8f02fcbb037e7b318cd7143e /fs/ocfs2/inode.c
parent80c05846f604bab6d61e9732c262420ee9f5f358 (diff)
downloadlinux-379dfe9d0db99ed33fb089fcb9c07f5f92566e9e.tar.gz
linux-379dfe9d0db99ed33fb089fcb9c07f5f92566e9e.tar.bz2
linux-379dfe9d0db99ed33fb089fcb9c07f5f92566e9e.zip
ocfs2: Hook rest of the file system into dentry locking API
Actually replace the vote calls with the new dentry operations. Make any necessary adjustments to get the scheme to work. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/inode.c')
-rw-r--r--fs/ocfs2/inode.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c
index 7bcf69154592..66ca7a82b68a 100644
--- a/fs/ocfs2/inode.c
+++ b/fs/ocfs2/inode.c
@@ -1025,12 +1025,10 @@ void ocfs2_drop_inode(struct inode *inode)
/* Testing ip_orphaned_slot here wouldn't work because we may
* not have gotten a delete_inode vote from any other nodes
* yet. */
- if (oi->ip_flags & OCFS2_INODE_MAYBE_ORPHANED) {
- mlog(0, "Inode was orphaned on another node, clearing nlink.\n");
- inode->i_nlink = 0;
- }
-
- generic_drop_inode(inode);
+ if (oi->ip_flags & OCFS2_INODE_MAYBE_ORPHANED)
+ generic_delete_inode(inode);
+ else
+ generic_drop_inode(inode);
mlog_exit_void();
}