Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377707
b: refs/heads/master
c: 6cc4af5
h: refs/heads/master
i:
  377705: 8f16577
  377703: 99f49b6
v: v3
  • Loading branch information
Gu Zheng authored and Jaegeuk Kim committed Jul 1, 2013
1 parent 42d0802 commit 2e4862c
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 8736fbf00372dcc0bc7b04b86d737eb5db31fff6
refs/heads/master: 6cc4af56066d8e9c62584cf61c6ce50fd0ab139a
17 changes: 5 additions & 12 deletions trunk/fs/f2fs/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,28 +321,21 @@ static const struct victim_selection default_v_ops = {

static struct inode *find_gc_inode(nid_t ino, struct list_head *ilist)
{
struct list_head *this;
struct inode_entry *ie;

list_for_each(this, ilist) {
ie = list_entry(this, struct inode_entry, list);
list_for_each_entry(ie, ilist, list)
if (ie->inode->i_ino == ino)
return ie->inode;
}
return NULL;
}

static void add_gc_inode(struct inode *inode, struct list_head *ilist)
{
struct list_head *this;
struct inode_entry *new_ie, *ie;
struct inode_entry *new_ie;

list_for_each(this, ilist) {
ie = list_entry(this, struct inode_entry, list);
if (ie->inode == inode) {
iput(inode);
return;
}
if (inode == find_gc_inode(inode->i_ino, ilist)) {
iput(inode);
return;
}
repeat:
new_ie = kmem_cache_alloc(winode_slab, GFP_NOFS);
Expand Down

0 comments on commit 2e4862c

Please sign in to comment.