]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
hfsplus: optimize fsync
authorChristoph Hellwig <hch@tuxera.com>
Tue, 23 Nov 2010 13:38:15 +0000 (14:38 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 23 Nov 2010 13:38:15 +0000 (14:38 +0100)
commite34947056076ca5467ee8256d2d9cbc594a79b37
treec1b70f51c1e4bc38e0b0389224862afe26c5720f
parentb33b7921db14abcd10c30d0ccfc68e364f5ef7fe
hfsplus: optimize fsync

Avoid doing unessecary work in fsync.  Do nothing unless the inode
was marked dirty, and only write the various metadata inodes out if
they contain any dirty state from this inode.  This is archived by
adding three new dirty bits to the hfsplus-specific inode which are
set in the correct places.

Signed-off-by: Christoph Hellwig <hch@tuxera.com>
fs/hfsplus/catalog.c
fs/hfsplus/extents.c
fs/hfsplus/hfsplus_fs.h
fs/hfsplus/inode.c
fs/hfsplus/ioctl.c
fs/hfsplus/super.c