Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267217
b: refs/heads/master
c: 7542274
h: refs/heads/master
i:
  267215: b940cf1
v: v3
  • Loading branch information
Peng Tao authored and Trond Myklebust committed Oct 18, 2011
1 parent f0e37c3 commit 2a26db3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: e6d05a757c314ad88d0649d3835a8a1daa964236
refs/heads/master: 7542274519b3ba87555410c66e8356ac1e3bc9b3
8 changes: 6 additions & 2 deletions trunk/fs/nfs/blocklayout/blocklayout.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,11 @@ bl_write_pagelist(struct nfs_write_data *wdata, int sync)
fill_invalid_ext:
dprintk("%s need to zero %d pages\n", __func__, npg_zero);
for (;npg_zero > 0; npg_zero--) {
if (bl_is_sector_init(be->be_inval, isect)) {
dprintk("isect %llu already init\n",
(unsigned long long)isect);
goto next_page;
}
/* page ref released in bl_end_io_write_zero */
index = isect >> PAGE_CACHE_SECTOR_SHIFT;
dprintk("%s zero %dth page: index %lu isect %llu\n",
Expand All @@ -552,8 +557,7 @@ bl_write_pagelist(struct nfs_write_data *wdata, int sync)
* PageUptodate: It was read before
* sector_initialized: already written out
*/
if (PageDirty(page) || PageWriteback(page) ||
bl_is_sector_init(be->be_inval, isect)) {
if (PageDirty(page) || PageWriteback(page)) {
print_page(page);
unlock_page(page);
page_cache_release(page);
Expand Down

0 comments on commit 2a26db3

Please sign in to comment.