Whamcloud - gitweb
- minor changes in order to get 2.6-compatibility
authoralex <alex>
Mon, 29 Sep 2003 16:09:29 +0000 (16:09 +0000)
committeralex <alex>
Mon, 29 Sep 2003 16:09:29 +0000 (16:09 +0000)
NOTE: kdev_t and dev_t issue need to be investigated in depth

lustre/llite/llite_lib.c

index b69c28a..9237e1b 100644 (file)
@@ -688,7 +688,7 @@ void ll_update_inode(struct inode *inode, struct mds_body *body,
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
                 inode->i_rdev = body->rdev;
 #else
-                inode->i_rdev = to_kdev_t(body->rdev);
+                inode->i_rdev = old_encode_dev(body->rdev);
 #endif
         if (body->valid & OBD_MD_FLSIZE)
                 inode->i_size = body->size;