diff options
author | Nikolay Borisov <n.borisov.lkml@gmail.com> | 2017-01-18 00:31:30 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 15:50:54 +0100 |
commit | 0f8939b8ac8623760c078d41282526de143ee623 (patch) | |
tree | 4e76f15f3fb3c81b84329badd48f460b3fd543f1 /fs/btrfs/file.c | |
parent | 436635571bd0b4ba12ec81641667d85e7c29bad5 (diff) | |
download | talos-obmc-linux-0f8939b8ac8623760c078d41282526de143ee623.tar.gz talos-obmc-linux-0f8939b8ac8623760c078d41282526de143ee623.zip |
btrfs: Make btrfs_inode_in_log take btrfs_inode
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 0d32f45cef28..149b79b3aaf8 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -2062,7 +2062,7 @@ int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) * commit does not start nor waits for ordered extents to complete. */ smp_mb(); - if (btrfs_inode_in_log(inode, fs_info->generation) || + if (btrfs_inode_in_log(BTRFS_I(inode), fs_info->generation) || (full_sync && BTRFS_I(inode)->last_trans <= fs_info->last_trans_committed) || (!btrfs_have_ordered_extents_in_range(inode, start, len) && |