]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: rename BTRFS_INODE_ORDERED_DATA_CLOSE flag
authorNikolay Borisov <nborisov@suse.com>
Thu, 1 Oct 2020 06:40:39 +0000 (09:40 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:18:00 +0000 (12:18 +0200)
commitd61717261689f08b546a738eb272263598d009fa
tree318d374d3048ca15547b26018fea7ff86263515a
parent601a9fd7b53697f1e740141b5ce6b6e986ffdb7b
btrfs: rename BTRFS_INODE_ORDERED_DATA_CLOSE flag

Commit 0c19333d4385 ("btrfs: disable strict file flushes for
renames and truncates") eliminated the notion of ordered operations and
instead BTRFS_INODE_ORDERED_DATA_CLOSE only remained as a flag
indicating that a file's content should be synced to disk in case a
file is truncated and any writes happen to it concurrently. In fact
this intendend behavior was broken until it was fixed in
c251da71e9b9 ("Btrfs: fix filemap_flush call in btrfs_file_release").

All things considered let's give the flag a more descriptive name. Also
slightly reword comments.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/file.c
fs/btrfs/inode.c