Ocfs2: Journaling i_flags and i_orphaned_slot when adding inode to orphan dir.
authorTristan Ye <tristan.ye@oracle.com>
Fri, 19 Mar 2010 01:21:09 +0000 (09:21 +0800)
committerJoel Becker <joel.becker@oracle.com>
Wed, 24 Mar 2010 01:22:51 +0000 (18:22 -0700)
commit3939fda4b389993caf8741df5739b3e49f33a263
tree22f3cca50115d7d7c404fd65f87b8ab71e09ce13
parentb4414eea0e7b9c134262c801a87e338bf675962c
Ocfs2: Journaling i_flags and i_orphaned_slot when adding inode to orphan dir.

Currently, some callers were missing to journal the dirty inode after
adding it to orphan dir.

Now we're going to journal such modifications within the ocfs2_orphan_add()
itself, It's safe to do so, though some existing caller may duplicate this,
and it makes the logic look more straightforward anyway.

Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/namei.c