diff options
-rw-r--r-- | fs/ocfs2/aops.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index cca71317b6d6..f1d1c342ce01 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c | |||
@@ -558,16 +558,9 @@ static int ocfs2_direct_IO_get_blocks(struct inode *inode, sector_t iblock, | |||
558 | u64 vbo_max; /* file offset, max_blocks from iblock */ | 558 | u64 vbo_max; /* file offset, max_blocks from iblock */ |
559 | u64 p_blkno; | 559 | u64 p_blkno; |
560 | int contig_blocks; | 560 | int contig_blocks; |
561 | unsigned char blocksize_bits; | 561 | unsigned char blocksize_bits = inode->i_sb->s_blocksize_bits; |
562 | unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; | 562 | unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; |
563 | 563 | ||
564 | if (!inode || !bh_result) { | ||
565 | mlog(ML_ERROR, "inode or bh_result is null\n"); | ||
566 | return -EIO; | ||
567 | } | ||
568 | |||
569 | blocksize_bits = inode->i_sb->s_blocksize_bits; | ||
570 | |||
571 | /* This function won't even be called if the request isn't all | 564 | /* This function won't even be called if the request isn't all |
572 | * nicely aligned and of the right size, so there's no need | 565 | * nicely aligned and of the right size, so there's no need |
573 | * for us to check any of that. */ | 566 | * for us to check any of that. */ |