summaryrefslogtreecommitdiffstats
path: root/fs/timerfd.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2009-10-13 19:21:08 +0200
committerChris Mason <chris.mason@oracle.com>2009-10-13 19:35:12 +0200
commit257c62e1bce03e5b9f3f069fd52ad73a56de71fd (patch)
treead047fe5796156aa88e3f3600111bf2b8d12759f /fs/timerfd.c
parentBtrfs: only write one super copy during fsync (diff)
downloadlinux-257c62e1bce03e5b9f3f069fd52ad73a56de71fd.tar.xz
linux-257c62e1bce03e5b9f3f069fd52ad73a56de71fd.zip
Btrfs: avoid tree log commit when there are no changes
rpm has a habit of running fdatasync when the file hasn't changed. We already detect if a file hasn't been changed in the current transaction but it might have been sent to the tree-log in this transaction and not changed since the last call to fsync. In this case, we want to avoid a tree log sync, which includes a number of synchronous writes and barriers. This commit extends the existing tracking of the last transaction to change a file to also track the last sub-transaction. The end result is that rpm -ivh and -Uvh are roughly twice as fast, and on par with ext3. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/timerfd.c')
0 files changed, 0 insertions, 0 deletions