Skip to contentSkip to conversation

Fix bug 109, delete subdir does not decrease the link on parent.

PATCH New Ling 2 participants 2 messages Jul 29, 2004 – Aug 2, 2004 OCFS2

lore
Share & tools
lore

Ling

#0 lore raw

PATCH 1/1 Fix bug 109, delete subdir does not decrease the link on parent.

namei.c (working copy) renamed from namei.c (revision 1312) +1 -1
Index: namei.c
===================================================================
@@ -813,7 +813,7 @@
                }
                dirfe = (ocfs2_dinode *) parent_node_bh->b_data;
                dirfe->i_links_count--;
-               status = ocfs_journal_dirty(handle, fe_bh);
+               status = ocfs_journal_dirty(handle, parent_node_bh);
                if (status < 0) {
                        LOG_ERROR_STATUS(status);
                        goto leave;
#1 lore raw

PATCH 1/1 Fix bug 109, delete subdir does not decrease the link on parent.

Good catch, committed.

	--Mark
Quoted 13 lines · Xiaofeng

Index: namei.c
===================================================================

namei.c (working copy) renamed from namei.c (revision 1312) +1 -1
@@ -813,7 +813,7 @@
                }
                dirfe = (ocfs2_dinode *) parent_node_bh->b_data;
                dirfe->i_links_count--;
-               status = ocfs_journal_dirty(handle, fe_bh);
+               status = ocfs_journal_dirty(handle, parent_node_bh);
                if (status < 0) {
                        LOG_ERROR_STATUS(status);
                        goto leave;
Quoted 4 lines

_______________________________________________
Ocfs2-devel mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/ocfs2-devel

--
Mark Fasheh
Software Developer, Oracle Corp
[email protected]