Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8278a92
)
- purge the write cache before truncate stomps on the local i_size so that we
author
zab
<zab>
Tue, 11 Mar 2003 02:34:52 +0000
(
02:34
+0000)
committer
zab
<zab>
Tue, 11 Mar 2003 02:34:52 +0000
(
02:34
+0000)
don't zero-extend the file when truncate's lock acquisition purges the
writeback after having updated the i_size. I'm not sure how 2.5 will do this,
but it probably needs to.
lustre/llite/iod.c
patch
|
blob
|
history
diff --git
a/lustre/llite/iod.c
b/lustre/llite/iod.c
index
57ad39a
..
3a045f4
100644
(file)
--- a/
lustre/llite/iod.c
+++ b/
lustre/llite/iod.c
@@
-140,8
+140,9
@@
static int llwp_consume_page(struct ll_writeback_pages *llwp,
*/
LASSERT(pg->count >= 0);
- CDEBUG(D_CACHE, "brw_page %p: off "LPU64" cnt %d, page %p: ind %ld\n",
- pg, pg->off, pg->count, page, page->index);
+ CDEBUG(D_CACHE, "brw_page %p: off "LPU64" cnt %d, page %p: ind %ld"
+ " i_size: "LPU64"\n", pg, pg->off, pg->count, page,
+ page->index, inode->i_size);
if ( llwp->num_frags == 3 || llwp->num_pages == LLWP_MAX_PAGES )
return -1;