change rec_lwn to inode to stop the while loop