Fix bug 109, delete subdir does not decrease the link on parent.
Ling
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
@@ -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;
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]