From 4a3019d0c5fe49c5ffe34ef2acee0a470947f791 Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 3 Aug 2003 23:58:40 +0000 Subject: [PATCH] b=1598 Merge final read performance fix into b_devel --- lustre/obdclass/obdo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/obdclass/obdo.c b/lustre/obdclass/obdo.c index bae7e71..3df3cf0 100644 --- a/lustre/obdclass/obdo.c +++ b/lustre/obdclass/obdo.c @@ -209,8 +209,9 @@ void obdo_refresh_inode(struct inode *dst, struct obdo *src, obd_flag valid) LTIME_S(dst->i_ctime) = src->o_ctime; if (valid & OBD_MD_FLSIZE && src->o_size > dst->i_size) dst->i_size = src->o_size; - /* Bug 1598: don't ever update i_blksize here; it needs to be managed - * by the LOV */ + /* optimum IO size */ + if (valid & OBD_MD_FLBLKSZ && src->o_blksize > dst->i_blksize) + dst->i_blksize = src->o_blksize; /* allocation of space */ if (valid & OBD_MD_FLBLOCKS && src->o_blocks > dst->i_blocks) dst->i_blocks = src->o_blocks; -- 1.8.3.1