From: phil Date: Sun, 3 Aug 2003 23:58:37 +0000 (+0000) Subject: b=1598 X-Git-Tag: v1_7_110~2^11~80 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=d7692433ec377e332dc3d02dfed653bb004709b1;p=fs%2Flustre-release.git b=1598 Merge final read performance fix into b_devel --- diff --git a/lustre/llite/iod.c b/lustre/llite/iod.c index eeb307a..33dc388 100644 --- a/lustre/llite/iod.c +++ b/lustre/llite/iod.c @@ -163,9 +163,11 @@ static void ll_writeback(struct inode *inode, struct obdo *oa, llwp->pga, set, NULL); if (rc == 0) rc = ptlrpc_set_wait(set); - if (rc == 0) - obdo_refresh_inode(inode, oa, - oa->o_valid & ~OBD_MD_FLSIZE); + if (rc == 0) { + /* bug 1598: don't clobber blksize */ + oa->o_valid &= ~(OBD_MD_FLSIZE | OBD_MD_FLBLKSZ); + obdo_refresh_inode(inode, oa, oa->o_valid); + } ptlrpc_set_destroy(set); } /*