diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 3e1f21c632c1..5632ea760077 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -383,9 +383,11 @@ int btrfs_readpage_io_hook(struct page *page, u64 start, u64 end) | |||
383 | struct btrfs_csum_item *item; | 383 | struct btrfs_csum_item *item; |
384 | struct btrfs_path *path = NULL; | 384 | struct btrfs_path *path = NULL; |
385 | u32 csum; | 385 | u32 csum; |
386 | |||
386 | if (btrfs_test_opt(root, NODATASUM) || | 387 | if (btrfs_test_opt(root, NODATASUM) || |
387 | btrfs_test_flag(inode, NODATASUM)) | 388 | btrfs_test_flag(inode, NODATASUM)) |
388 | return 0; | 389 | return 0; |
390 | |||
389 | mutex_lock(&root->fs_info->fs_mutex); | 391 | mutex_lock(&root->fs_info->fs_mutex); |
390 | path = btrfs_alloc_path(); | 392 | path = btrfs_alloc_path(); |
391 | item = btrfs_lookup_csum(NULL, root, path, inode->i_ino, start, 0); | 393 | item = btrfs_lookup_csum(NULL, root, path, inode->i_ino, start, 0); |