diff options
author | Nikolay Borisov <nborisov@suse.com> | 2017-02-20 13:51:10 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-28 11:30:12 +0100 |
commit | abcefb1eeeff04734a59b4dd3724abbf0688252c (patch) | |
tree | 0ef200a349aab963ba5e5ee9ec6ab12ed172cd7b /fs/btrfs/inode.c | |
parent | cef415af208984650de925e28d40aa4a6e8513f4 (diff) | |
download | lwn-abcefb1eeeff04734a59b4dd3724abbf0688252c.tar.gz lwn-abcefb1eeeff04734a59b4dd3724abbf0688252c.zip |
btrfs: make btrfs_inode_block_unlocked_dio take btrfs_inode
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index dafd3fdd6f2b..59b93a2369aa 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -5002,7 +5002,7 @@ static int btrfs_setsize(struct inode *inode, struct iattr *attr) truncate_setsize(inode, newsize); /* Disable nonlocked read DIO to avoid the end less truncate */ - btrfs_inode_block_unlocked_dio(inode); + btrfs_inode_block_unlocked_dio(BTRFS_I(inode)); inode_dio_wait(inode); btrfs_inode_resume_unlocked_dio(inode); |