Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146387
b: refs/heads/master
c: a2dc52b
h: refs/heads/master
i:
  146385: d4c0dfa
  146383: c5cfa8d
v: v3
  • Loading branch information
Theodore Ts'o committed May 12, 2009
1 parent 2f5c262 commit cf5dc53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b920c75502cb2c48654ef196d647c8eb81ab608a
refs/heads/master: a2dc52b5d1d8cc280b3e795abf1c80ac8c49f30c
3 changes: 3 additions & 0 deletions trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2433,11 +2433,14 @@ static int noalloc_get_block_write(struct inode *inode, sector_t iblock,
int ret = 0;
unsigned max_blocks = bh_result->b_size >> inode->i_blkbits;

BUG_ON(bh_result->b_size != inode->i_sb->s_blocksize);

/*
* we don't want to do block allocation in writepage
* so call get_block_wrap with create = 0
*/
ret = ext4_get_blocks(NULL, inode, iblock, max_blocks, bh_result, 0);
BUG_ON(create && ret == 0);
if (ret > 0) {
bh_result->b_size = (ret << inode->i_blkbits);
ret = 0;
Expand Down

0 comments on commit cf5dc53

Please sign in to comment.