diff options
Diffstat (limited to 'fs/btrfs/file.c')
| -rw-r--r-- | fs/btrfs/file.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 54556cae4497..79437c5eeb1e 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
| @@ -888,14 +888,9 @@ static ssize_t btrfs_file_aio_write(struct kiocb *iocb, | |||
| 888 | BTRFS_I(inode)->sequence++; | 888 | BTRFS_I(inode)->sequence++; |
| 889 | 889 | ||
| 890 | if (unlikely(file->f_flags & O_DIRECT)) { | 890 | if (unlikely(file->f_flags & O_DIRECT)) { |
| 891 | ret = btrfs_delalloc_reserve_space(inode, count); | ||
| 892 | if (ret) | ||
| 893 | goto out; | ||
| 894 | |||
| 895 | num_written = generic_file_direct_write(iocb, iov, &nr_segs, | 891 | num_written = generic_file_direct_write(iocb, iov, &nr_segs, |
| 896 | pos, ppos, count, | 892 | pos, ppos, count, |
| 897 | ocount); | 893 | ocount); |
| 898 | |||
| 899 | /* | 894 | /* |
| 900 | * the generic O_DIRECT will update in-memory i_size after the | 895 | * the generic O_DIRECT will update in-memory i_size after the |
| 901 | * DIOs are done. But our endio handlers that update the on | 896 | * DIOs are done. But our endio handlers that update the on |
