diff options
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 233aea2e5ef2..54556cae4497 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -909,13 +909,6 @@ static ssize_t btrfs_file_aio_write(struct kiocb *iocb, | |||
909 | } | 909 | } |
910 | 910 | ||
911 | if (num_written < 0) { | 911 | if (num_written < 0) { |
912 | if (num_written != -EIOCBQUEUED) { | ||
913 | /* | ||
914 | * aio land will take care of releasing the | ||
915 | * delalloc | ||
916 | */ | ||
917 | btrfs_delalloc_release_space(inode, count); | ||
918 | } | ||
919 | ret = num_written; | 912 | ret = num_written; |
920 | num_written = 0; | 913 | num_written = 0; |
921 | goto out; | 914 | goto out; |
@@ -924,13 +917,6 @@ static ssize_t btrfs_file_aio_write(struct kiocb *iocb, | |||
924 | pos = *ppos; | 917 | pos = *ppos; |
925 | goto out; | 918 | goto out; |
926 | } | 919 | } |
927 | |||
928 | /* | ||
929 | * the buffered IO will reserve bytes for the rest of the | ||
930 | * range, don't double count them here | ||
931 | */ | ||
932 | btrfs_delalloc_release_space(inode, count - num_written); | ||
933 | |||
934 | /* | 920 | /* |
935 | * We are going to do buffered for the rest of the range, so we | 921 | * We are going to do buffered for the rest of the range, so we |
936 | * need to make sure to invalidate the buffered pages when we're | 922 | * need to make sure to invalidate the buffered pages when we're |