Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213755
b: refs/heads/master
c: adbb39b
h: refs/heads/master
i:
  213753: f6e3e13
  213751: 17b0221
v: v3
  • Loading branch information
Ryusuke Konishi committed Oct 23, 2010
1 parent e1ec399 commit 9e0b7ba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 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: 518d1a6a1d6610a014875a2fe3252e89b6260d2f
refs/heads/master: adbb39b5485b72dca963a2bc9b1b22bfc19d4967
32 changes: 16 additions & 16 deletions trunk/fs/nilfs2/gcinode.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ int nilfs_gccache_wait_and_mark_dirty(struct buffer_head *bh)
}
nilfs_btnode_mark_dirty(bh);
} else {
nilfs_mdt_mark_buffer_dirty(bh);
nilfs_mark_buffer_dirty(bh);
}
return 0;
}
Expand All @@ -177,24 +177,24 @@ int nilfs_init_gcinode(struct inode *inode)
{
struct nilfs_inode_info *ii = NILFS_I(inode);
struct the_nilfs *nilfs = NILFS_SB(inode->i_sb)->s_nilfs;
int ret;

ret = nilfs_mdt_init(inode, nilfs, GFP_NOFS, 0);
if (!ret) {
inode->i_mapping->a_ops = &def_gcinode_aops;
inode->i_mode = S_IFREG;
mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS);
inode->i_mapping->a_ops = &def_gcinode_aops;
inode->i_mapping->backing_dev_info = inode->i_sb->s_bdi;

ii->i_flags = 0;
nilfs_bmap_init_gc(ii->i_bmap);
ii->i_flags = 0;
nilfs_bmap_init_gc(ii->i_bmap);

/*
* Add the inode to GC inode list. Garbage Collection
* is serialized and no two processes manipulate the
* list simultaneously.
*/
igrab(inode);
list_add(&NILFS_I(inode)->i_dirty, &nilfs->ns_gc_inodes);
}
return ret;
/*
* Add the inode to GC inode list. Garbage Collection
* is serialized and no two processes manipulate the
* list simultaneously.
*/
igrab(inode);
list_add(&NILFS_I(inode)->i_dirty, &nilfs->ns_gc_inodes);

return 0;
}

/**
Expand Down

0 comments on commit 9e0b7ba

Please sign in to comment.