public static HardLinkFileInfo loadHardLinkFileInfo ( long hardLinkID , FSImageLoadingContext context ) { // update the latest hard link ID context . getFSDirectory ( ) . resetLastHardLinkIDIfLarge ( hardLinkID ) ; // create the hard link file info if necessary HardLinkFileInfo fileInfo = context . getHardLinkFileInfo ( hardLinkID ) ; if ( fileInfo == null ) { fileInfo = new HardLinkFileInfo ( hardLinkID ) ; context . associateHardLinkIDWithFileInfo ( hardLinkID , fileInfo ) ; } return fileInfo ; }
Create a HardLink file info if necessary and register to the hardLinkINodeIDToFileInfoMap And return the hardLinkFileInfo which is registered in the hardLinkINodeIDToFileInfoMap