Whamcloud - gitweb
- ll_update_inode() puts number of MDS holding inode to inode->i_dev. this
authoralex <alex>
Mon, 24 May 2004 08:57:47 +0000 (08:57 +0000)
committeralex <alex>
Mon, 24 May 2004 08:57:47 +0000 (08:57 +0000)
  fix the problem some apps confuses on: they see the same inode number for
  different objects. thanks to Andreas for the idea.

lustre/llite/llite_lib.c

index dc5d243..432e1e5 100644 (file)
@@ -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);
 }