Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174723
b: refs/heads/master
c: 58d5547
h: refs/heads/master
i:
  174721: 235f4c8
  174719: 54ce1bc
v: v3
  • Loading branch information
Jiro SEKIBA authored and Ryusuke Konishi committed Nov 27, 2009
1 parent 302b8cf commit f4e4b36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 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: 2093abf9cbcec3cb1409a67d8bce51854595b1d5
refs/heads/master: 58d55471cb1911f7493aba7bf3b6b87ca91e4314
4 changes: 1 addition & 3 deletions trunk/fs/nilfs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,8 @@ static void nilfs_commit_chunk(struct page *page,

nr_dirty = nilfs_page_count_clean_buffers(page, from, to);
copied = block_write_end(NULL, mapping, pos, len, len, page, NULL);
if (pos + copied > dir->i_size) {
if (pos + copied > dir->i_size)
i_size_write(dir, pos + copied);
mark_inode_dirty(dir);
}
if (IS_DIRSYNC(dir))
nilfs_set_transaction_flag(NILFS_TI_SYNC);
err = nilfs_set_file_dirty(sbi, dir, nr_dirty);
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/nilfs2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ static int nilfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
inode->i_mapping->a_ops = &nilfs_aops;

inc_nlink(inode);
mark_inode_dirty(inode);

err = nilfs_make_empty(inode, dir);
if (err)
Expand All @@ -268,6 +267,7 @@ static int nilfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
if (err)
goto out_fail;

mark_inode_dirty(inode);
d_instantiate(dentry, inode);
out:
if (!err)
Expand Down

0 comments on commit f4e4b36

Please sign in to comment.