From: Marko O. <d0...@us...> - 2010-11-30 22:38:18
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "kdfs". The branch, make_kdfs_compile has been updated via 9fa22c86a9d5807862c05edfaad953775763b184 (commit) from 3303c67049a17ffb86f800943c35d7a6f0b8ec8e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 9fa22c86a9d5807862c05edfaad953775763b184 Author: Marko Obrovac <mar...@in...> Date: Wed Dec 1 00:26:08 2010 +0100 [BUGFIX] Ensure only the 8 least significant bits are returned when calculating the node's id out of the inode id [CODEFIX] Remove the (futile) ifdef which changes the number of bits available for the node id diff --git a/fs/kdfs/inode.h b/fs/kdfs/inode.h index fd33d86..e5d6371 100644 --- a/fs/kdfs/inode.h +++ b/fs/kdfs/inode.h @@ -68,7 +68,7 @@ void kdfs_copy_inode(struct inode *dest, struct inode *src); static inline short inode_linked_node(unsigned long ino) { - return (short) (ino >> 24); + return (short) ((ino >> 24) & 0xff); } static inline unsigned long full_inode_number(unsigned long ino, short node_id) diff --git a/include/kerrighed/sys/types.h b/include/kerrighed/sys/types.h index 7bb6a97..fdf769c 100644 --- a/include/kerrighed/sys/types.h +++ b/include/kerrighed/sys/types.h @@ -14,11 +14,11 @@ * * *--------------------------------------------------------------------------*/ -#ifdef CONFIG_KRG_AUTONODEID +//////#ifdef CONFIG_KRG_AUTONODEID #define NR_BITS_IN_MAX_NODE_ID 8 -#else -#define NR_BITS_IN_MAX_NODE_ID 7 -#endif +//////#else +//////#define NR_BITS_IN_MAX_NODE_ID 7 +//////#endif #define KERRIGHED_MAX_NODES (1<<NR_BITS_IN_MAX_NODE_ID) /* Real limit 32766 */ #define KERRIGHED_HARD_MAX_NODES 256 ----------------------------------------------------------------------- Summary of changes: fs/kdfs/inode.h | 2 +- include/kerrighed/sys/types.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) hooks/post-receive -- kdfs |