Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358980
b: refs/heads/master
c: a2617dc
h: refs/heads/master
v: v3
  • Loading branch information
majianpeng authored and Jaegeuk Kim committed Feb 11, 2013
1 parent 4d66250 commit 3a0dce6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa43507f68e44fbc014d820e47eda5a369b8dc9d
refs/heads/master: a2617dc6863b21a8109c199ab533b3dbfe178f27
16 changes: 4 additions & 12 deletions trunk/fs/f2fs/checkpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,19 +219,11 @@ void add_orphan_inode(struct f2fs_sb_info *sbi, nid_t ino)
new->ino = ino;

/* add new_oentry into list which is sorted by inode number */
if (orphan) {
struct orphan_inode_entry *prev;

/* get previous entry */
prev = list_entry(orphan->list.prev, typeof(*prev), list);
if (&prev->list != head)
/* insert new orphan inode entry */
list_add(&new->list, &prev->list);
else
list_add(&new->list, head);
} else {
if (orphan)
list_add(&new->list, this->prev);
else
list_add_tail(&new->list, head);
}

sbi->n_orphans++;
out:
mutex_unlock(&sbi->orphan_inode_mutex);
Expand Down

0 comments on commit 3a0dce6

Please sign in to comment.