diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-21 21:12:42 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-21 21:12:42 -0400 |
| commit | 968f3e374faf41e5e6049399eb7302777a09a1e8 (patch) | |
| tree | 613c5aa9a005cfbe3fada77fcb0ab24deda126d9 /fs/btrfs/ordered-data.c | |
| parent | e531cdf50a8a0fb7a4d51c06e52097bd01e9bf7c (diff) | |
| parent | 389f239c53420802ad5085e51e88c37e2df5e003 (diff) | |
Merge branch 'for-linus-4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs
Pull btrfs updates from Chris Mason:
"We have a good sized cleanup of our internal read ahead code, and the
first series of commits from Chandan to enable PAGE_SIZE > sectorsize
Otherwise, it's a normal series of cleanups and fixes, with many
thanks to Dave Sterba for doing most of the patch wrangling this time"
* 'for-linus-4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: (82 commits)
btrfs: make sure we stay inside the bvec during __btrfs_lookup_bio_sums
btrfs: Fix misspellings in comments.
btrfs: Print Warning only if ENOSPC_DEBUG is enabled
btrfs: scrub: silence an uninitialized variable warning
btrfs: move btrfs_compression_type to compression.h
btrfs: rename btrfs_print_info to btrfs_print_mod_info
Btrfs: Show a warning message if one of objectid reaches its highest value
Documentation: btrfs: remove usage specific information
btrfs: use kbasename in btrfsic_mount
Btrfs: do not collect ordered extents when logging that inode exists
Btrfs: fix race when checking if we can skip fsync'ing an inode
Btrfs: fix listxattrs not listing all xattrs packed in the same item
Btrfs: fix deadlock between direct IO reads and buffered writes
Btrfs: fix extent_same allowing destination offset beyond i_size
Btrfs: fix file loss on log replay after renaming a file and fsync
Btrfs: fix unreplayable log after snapshot delete + parent dir fsync
Btrfs: fix lockdep deadlock warning due to dev_replace
btrfs: drop unused argument in btrfs_ioctl_get_supported_features
btrfs: add GET_SUPPORTED_FEATURES to the control device ioctls
btrfs: change max_inline default to 2048
...
Diffstat (limited to 'fs/btrfs/ordered-data.c')
| -rw-r--r-- | fs/btrfs/ordered-data.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index 8c27292ea9ea..0de7da5a610d 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | #include "btrfs_inode.h" | 25 | #include "btrfs_inode.h" |
| 26 | #include "extent_io.h" | 26 | #include "extent_io.h" |
| 27 | #include "disk-io.h" | 27 | #include "disk-io.h" |
| 28 | #include "compression.h" | ||
| 28 | 29 | ||
| 29 | static struct kmem_cache *btrfs_ordered_extent_cache; | 30 | static struct kmem_cache *btrfs_ordered_extent_cache; |
| 30 | 31 | ||
| @@ -1009,7 +1010,7 @@ int btrfs_ordered_update_i_size(struct inode *inode, u64 offset, | |||
| 1009 | for (; node; node = rb_prev(node)) { | 1010 | for (; node; node = rb_prev(node)) { |
| 1010 | test = rb_entry(node, struct btrfs_ordered_extent, rb_node); | 1011 | test = rb_entry(node, struct btrfs_ordered_extent, rb_node); |
| 1011 | 1012 | ||
| 1012 | /* We treat this entry as if it doesnt exist */ | 1013 | /* We treat this entry as if it doesn't exist */ |
| 1013 | if (test_bit(BTRFS_ORDERED_UPDATED_ISIZE, &test->flags)) | 1014 | if (test_bit(BTRFS_ORDERED_UPDATED_ISIZE, &test->flags)) |
| 1014 | continue; | 1015 | continue; |
| 1015 | if (test->file_offset + test->len <= disk_i_size) | 1016 | if (test->file_offset + test->len <= disk_i_size) |
| @@ -1114,6 +1115,5 @@ int __init ordered_data_init(void) | |||
| 1114 | 1115 | ||
| 1115 | void ordered_data_exit(void) | 1116 | void ordered_data_exit(void) |
| 1116 | { | 1117 | { |
| 1117 | if (btrfs_ordered_extent_cache) | 1118 | kmem_cache_destroy(btrfs_ordered_extent_cache); |
| 1118 | kmem_cache_destroy(btrfs_ordered_extent_cache); | ||
| 1119 | } | 1119 | } |
