]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove remaing full_sync logic from btrfs_sync_file
authorDavid Sterba <dsterba@suse.com>
Thu, 19 Jul 2018 13:27:46 +0000 (15:27 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:31 +0000 (13:12 +0200)
commit389066c06578f67ce7737d4a668572df5b47f190
tree49bdbfdb3c70b07901213c225e6380ec63a6e696
parent294b75b732985433f705eeecf252fd6f5b2fae27
btrfs: remove remaing full_sync logic from btrfs_sync_file

The logic to check if the inode is already in the log can now be
simplified since we always wait for the ordered extents to complete
before deciding whether the inode needs to be logged. The big comment
about it can go away too.

CC: Filipe Manana <fdmanana@suse.com>
Suggested-by: Filipe Manana <fdmanana@suse.com>
[ code and changelog copied from mail discussion ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h