[Ocfs2-devel] [Patch] Fix bug 109, delete subdir does not decrease the link on parent.

Ling, Xiaofeng xiaofeng.ling at intel.com
Fri Jul 30 06:57:19 CDT 2004


Index: namei.c
===================================================================
--- namei.c     (revision 1312)
+++ namei.c     (working copy)
@@ -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;


More information about the Ocfs2-devel mailing list