From: alex Date: Mon, 24 May 2004 08:57:47 +0000 (+0000) Subject: - ll_update_inode() puts number of MDS holding inode to inode->i_dev. this X-Git-Tag: 1.2.2~9 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=e50f67cd2a1b22d57f11f3ec867f29e91331a9d5;p=fs%2Flustre-release.git - ll_update_inode() puts number of MDS holding inode to inode->i_dev. this fix the problem some apps confuses on: they see the same inode number for different objects. thanks to Andreas for the idea. --- diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index dc5d243..432e1e5 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -1171,6 +1171,7 @@ void ll_update_inode(struct inode *inode, struct lustre_md *md) set_bit(LLI_F_HAVE_MDS_SIZE_LOCK, &lli->lli_flags); lli->lli_mds = body->mds; + inode->i_dev = (kdev_t) body->mds; LASSERT(body->mds < 1000); }