Btrfs: Dir fsync optimizations
authorChris Mason <chris.mason@oracle.com>
Thu, 11 Sep 2008 19:53:12 +0000 (15:53 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:07 +0000 (11:04 -0400)
commit49eb7e46d47ea72a9bd2a5f8cedb04f5159cc277
treec3d05588c3cf73453673206214fadedc07bd79d7
parent98509cfc5a6857bddcfe4b19a9539726655ec9bd
Btrfs: Dir fsync optimizations

Drop i_mutex during the commit

Don't bother doing the fsync at all unless the dir is marked as dirtied
and needing fsync in this transaction.  For directories, this means
that someone has unlinked a file from the dir without fsyncing the
file.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/tree-log.c