aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 8e210616d702..7c10a90362ff 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -301,7 +301,8 @@ static int noinline dirty_and_release_pages(struct btrfs_trans_handle *trans,
301 */ 301 */
302 inline_size = end_pos; 302 inline_size = end_pos;
303 if (isize >= BTRFS_MAX_INLINE_DATA_SIZE(root) || 303 if (isize >= BTRFS_MAX_INLINE_DATA_SIZE(root) ||
304 inline_size > 8192 || 304 inline_size > root->fs_info->max_inline ||
305 (inline_size & (root->sectorsize -1)) == 0 ||
305 inline_size >= BTRFS_MAX_INLINE_DATA_SIZE(root)) { 306 inline_size >= BTRFS_MAX_INLINE_DATA_SIZE(root)) {
306 u64 last_end; 307 u64 last_end;
307 u64 existing_delalloc = 0; 308 u64 existing_delalloc = 0;