diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 74d89133f768..2b7dd88fc54f 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -510,7 +510,7 @@ static int should_defrag_range(struct inode *inode, u64 start, u64 len, | |||
510 | em = btrfs_get_extent(inode, NULL, 0, start, len, 0); | 510 | em = btrfs_get_extent(inode, NULL, 0, start, len, 0); |
511 | unlock_extent(io_tree, start, start + len - 1, GFP_NOFS); | 511 | unlock_extent(io_tree, start, start + len - 1, GFP_NOFS); |
512 | 512 | ||
513 | if (!em) | 513 | if (IS_ERR(em)) |
514 | return 0; | 514 | return 0; |
515 | } | 515 | } |
516 | 516 | ||