Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109179
b: refs/heads/master
c: 9780eb6
h: refs/heads/master
i:
  109177: 0784e5e
  109175: 8024862
v: v3
  • Loading branch information
Mark Fasheh committed Aug 22, 2008
1 parent 5e2e86d commit 46cea95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 83cab5338fa8c74f979223698c8d4cc88f2ab68e
refs/heads/master: 9780eb6cfaf7d2d5ccc061eaf94e7aec6a17791e
7 changes: 6 additions & 1 deletion trunk/fs/ocfs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,6 @@ static int ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh,
di->i_size = cpu_to_le64(sb->s_blocksize);
di->i_ctime = di->i_mtime = cpu_to_le64(dir->i_ctime.tv_sec);
di->i_ctime_nsec = di->i_mtime_nsec = cpu_to_le32(dir->i_ctime.tv_nsec);
dir->i_blocks = ocfs2_inode_sector_count(dir);

/*
* This should never fail as our extent list is empty and all
Expand All @@ -1313,6 +1312,12 @@ static int ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh,
goto out_commit;
}

/*
* Set i_blocks after the extent insert for the most up to
* date ip_clusters value.
*/
dir->i_blocks = ocfs2_inode_sector_count(dir);

ret = ocfs2_journal_dirty(handle, di_bh);
if (ret) {
mlog_errno(ret);
Expand Down

0 comments on commit 46cea95

Please sign in to comment.