code: public void applyAndJournal(Supplier<JournalContext> context, UpdateInodeDirectoryEntry entry) {
      try {
        applyUpdateInodeDirectory(entry);
        context.get().append(JournalEntry.newBuilder().setUpdateInodeDirectory(entry).build());
      } catch (Throwable t) {
        ProcessUtils.fatalError(LOG, t, "Failed to apply %s", entry);
        throw t; // fatalError will usually system.exit
      }
    }
docs: Updates an inode directory's state.
  
  @param context journal context supplier
  @param entry update inode directory entry