diff --git a/fs/hmdfs/dentry.c b/fs/hmdfs/dentry.c index 040d698e17850bcb70ce65c816441ae6ae0f584f..104f8837193f311dc5fca24b2f70e67f0ad0a931 100644 --- a/fs/hmdfs/dentry.c +++ b/fs/hmdfs/dentry.c @@ -75,7 +75,8 @@ static int hmdfs_dev_d_revalidate(struct dentry *direntry, unsigned int flags) { struct inode *dinode = NULL; struct hmdfs_inode_info *info = NULL; - + hmdfs_info("hmdfs_dev_d_revalidate Failed to alloc a peer d_inode(direntry); done"); + return 1; spin_lock(&direntry->d_lock); if (IS_ROOT(direntry)) { spin_unlock(&direntry->d_lock); @@ -84,17 +85,22 @@ static int hmdfs_dev_d_revalidate(struct dentry *direntry, unsigned int flags) spin_unlock(&direntry->d_lock); dinode = d_inode(direntry); + hmdfs_info("hmdfs_dev_d_revalidate Failed to alloc a peer d_inode(direntry); done"); if (!dinode) + hmdfs_info("hmdfs_dev_d_revalidate if (!dinode): return 0;"); return 0; info = hmdfs_i(dinode); if (info->inode_type == HMDFS_LAYER_SECOND_LOCAL || - info->inode_type == HMDFS_LAYER_FIRST_DEVICE) { + info->inode_type == HMDFS_LAYER_FIRST_DEVICE || + info->inode_type == HMDFS_LAYER_OTHER_LOCAL) { + hmdfs_info("hmdfs_dev_d_revalidate inode_type: %s: return 1", info->inode_type); return 1; } if (info->conn && info->conn->status == NODE_STAT_ONLINE) return 1; - + + hmdfs_info("hmdfs_dev_d_revalidate done inode_type: %s: return 1", info->inode_type); return 0; }