Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174689
b: refs/heads/master
c: 09bf4aa
h: refs/heads/master
i:
  174687: 04c475a
v: v3
  • Loading branch information
Ryusuke Konishi committed Nov 20, 2009
1 parent c36f1fb commit 8dd2852
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 30db4e6c3d51a89e4923e525303f714e6508bbd0
refs/heads/master: 09bf4aae0a3c471b721c43e7bdb6132200d907b2
8 changes: 2 additions & 6 deletions trunk/fs/nilfs2/bmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,18 +402,14 @@ int nilfs_bmap_test_and_clear_dirty(struct nilfs_bmap *bmap)
void nilfs_bmap_add_blocks(const struct nilfs_bmap *bmap, int n)
{
inode_add_bytes(bmap->b_inode, (1 << bmap->b_inode->i_blkbits) * n);
if (NILFS_MDT(bmap->b_inode))
nilfs_mdt_mark_dirty(bmap->b_inode);
else
if (!NILFS_MDT(bmap->b_inode))
mark_inode_dirty(bmap->b_inode);
}

void nilfs_bmap_sub_blocks(const struct nilfs_bmap *bmap, int n)
{
inode_sub_bytes(bmap->b_inode, (1 << bmap->b_inode->i_blkbits) * n);
if (NILFS_MDT(bmap->b_inode))
nilfs_mdt_mark_dirty(bmap->b_inode);
else
if (!NILFS_MDT(bmap->b_inode))
mark_inode_dirty(bmap->b_inode);
}

Expand Down

0 comments on commit 8dd2852

Please sign in to comment.