• F
    Btrfs: don't attach unnecessary extents to transaction on fsync · 7558c8bc
    Filipe Manana 提交于
    We don't need to attach ordered extents that have completed to the current
    transaction. Doing so only makes us hold memory for longer than necessary
    and delaying the iput of the inode until the transaction is committed (for
    each created ordered extent we do an igrab and then schedule an asynchronous
    iput when the ordered extent's reference count drops to 0), preventing the
    inode from being evictable until the transaction commits.
    Signed-off-by: NFilipe Manana <fdmanana@suse.com>
    Signed-off-by: NChris Mason <clm@fb.com>
    7558c8bc
ordered-data.c 29.1 KB