From: braam Date: Mon, 15 Sep 2003 02:10:37 +0000 (+0000) Subject: - this is a small refactoring of the inode refresh path to aid me with X-Git-Tag: v1_7_110~1^13~124 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=bf5df1a39a4c520656d64fca21c5adaef38afcec;p=fs%2Flustre-release.git - this is a small refactoring of the inode refresh path to aid me with lstripe (which is mostly included in this, unfortunately). --- diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 667d8c2..bea9c2d 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -657,6 +657,8 @@ void ll_update_inode(struct inode *inode, struct mds_body *body, LBUG(); } } + if (lli->lli_smd != lsm) + obd_free_memmd(ll_i2obdexp(inode), &lsm); } if (body->valid & OBD_MD_FLID) @@ -692,6 +694,9 @@ void ll_update_inode(struct inode *inode, struct mds_body *body, inode->i_size = body->size; if (body->valid & OBD_MD_FLBLOCKS) inode->i_blocks = body->blocks; + + if (body->valid & OBD_MD_FLSIZE) + set_bit(LLI_F_HAVE_MDS_SIZE_LOCK, &lli->lli_flags); } void ll_read_inode2(struct inode *inode, void *opaque)