diff options
Diffstat (limited to 'fs/btrfs/ordered-data.c')
-rw-r--r-- | fs/btrfs/ordered-data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index 6fde2b2741ef..45e3cfd1198b 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <linux/slab.h> | 6 | #include <linux/slab.h> |
7 | #include <linux/blkdev.h> | 7 | #include <linux/blkdev.h> |
8 | #include <linux/writeback.h> | 8 | #include <linux/writeback.h> |
9 | #include <linux/sched/mm.h> | ||
9 | #include "ctree.h" | 10 | #include "ctree.h" |
10 | #include "transaction.h" | 11 | #include "transaction.h" |
11 | #include "btrfs_inode.h" | 12 | #include "btrfs_inode.h" |
@@ -442,7 +443,7 @@ void btrfs_put_ordered_extent(struct btrfs_ordered_extent *entry) | |||
442 | cur = entry->list.next; | 443 | cur = entry->list.next; |
443 | sum = list_entry(cur, struct btrfs_ordered_sum, list); | 444 | sum = list_entry(cur, struct btrfs_ordered_sum, list); |
444 | list_del(&sum->list); | 445 | list_del(&sum->list); |
445 | kfree(sum); | 446 | kvfree(sum); |
446 | } | 447 | } |
447 | kmem_cache_free(btrfs_ordered_extent_cache, entry); | 448 | kmem_cache_free(btrfs_ordered_extent_cache, entry); |
448 | } | 449 | } |