OSDN Git Service

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)
commitca5788aba3e8153da38cf99ca3ce2294f032fb51
tree49bdbfdb3c70b07901213c225e6380ec63a6e696
parent5636cf7d6dc86f47fd66757dae088e35014da464
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