Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242367
b: refs/heads/master
c: c7f5938
h: refs/heads/master
i:
  242365: b2a1903
  242363: 17ab5d0
  242359: 8079f13
  242351: 8c06d9c
  242335: 8830b6d
  242303: 5d7b8e2
v: v3
  • Loading branch information
Curt Wohlgemuth authored and Theodore Ts'o committed Feb 26, 2011
1 parent bdf99a2 commit f368aa4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: e0fd9b90765f604374c42de8ac59d6584afce264
refs/heads/master: c7f5938adce6727b9d17785f289c1146bd88d678
11 changes: 4 additions & 7 deletions trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2165,18 +2165,16 @@ static int mpage_da_submit_io(struct mpage_da_data *mpd,
return ret;
}

static void ext4_da_block_invalidatepages(struct mpage_da_data *mpd,
sector_t logical, long blk_cnt)
static void ext4_da_block_invalidatepages(struct mpage_da_data *mpd)
{
int nr_pages, i;
pgoff_t index, end;
struct pagevec pvec;
struct inode *inode = mpd->inode;
struct address_space *mapping = inode->i_mapping;

index = logical >> (PAGE_CACHE_SHIFT - inode->i_blkbits);
end = (logical + blk_cnt - 1) >>
(PAGE_CACHE_SHIFT - inode->i_blkbits);
index = mpd->first_page;
end = mpd->next_page - 1;
while (index <= end) {
nr_pages = pagevec_lookup(&pvec, mapping, index, PAGEVEC_SIZE);
if (nr_pages == 0)
Expand Down Expand Up @@ -2312,8 +2310,7 @@ static void mpage_da_map_and_submit(struct mpage_da_data *mpd)
ext4_print_free_blocks(mpd->inode);
}
/* invalidate all the pages */
ext4_da_block_invalidatepages(mpd, next,
mpd->b_size >> mpd->inode->i_blkbits);
ext4_da_block_invalidatepages(mpd);

/* Mark this page range as having been completed */
mpd->io_done = 1;
Expand Down

0 comments on commit f368aa4

Please sign in to comment.