• Dave Kleikamp's avatar
    JFS: Avoid incrementing i_count on file create · 64194c24
    Dave Kleikamp authored
    Committing a transaction creating a file required insuring that the
    inode stayed in cache until the journal was written to.  i_count was
    being incremented until the transaction was complete.
    
    However, incrementing i_count caused fcntl(S_SETLEASE) to fail.  I
    reworked the transaction code so that the inode does not have to
    stay in-memory while the transaction is being committed.
    
    Thanks to Steve French for figuring out why setlease was failing.
    64194c24
jfs_txnmgr.h 8.17 KB