Whamcloud - gitweb
merge three weeks of b_devel fixes into b_filterio
authorphil <phil>
Thu, 14 Aug 2003 05:01:11 +0000 (05:01 +0000)
committerphil <phil>
Thu, 14 Aug 2003 05:01:11 +0000 (05:01 +0000)
lustre/obdclass/obdo.c

index f1d1b27..3df3cf0 100644 (file)
@@ -210,7 +210,7 @@ void obdo_refresh_inode(struct inode *dst, struct obdo *src, obd_flag valid)
         if (valid & OBD_MD_FLSIZE && src->o_size > dst->i_size)
                 dst->i_size = src->o_size;
         /* optimum IO size */
-        if (valid & OBD_MD_FLBLKSZ)
+        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)