Skip to content

Commit

Permalink
xfs: extra semi-colon breaks a condition
Browse files Browse the repository at this point in the history
There were some extra semi-colons here which mean that we return true
unintentionally.

Fixes: a49935f ('xfs: xfs_check_page_type buffer checks need help')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
  • Loading branch information
Dan Carpenter authored and Dave Chinner committed Apr 3, 2014
1 parent fe4c224 commit 805eeb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/xfs/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,10 +659,10 @@ xfs_check_page_type(
if (type == XFS_IO_UNWRITTEN)
return true;
} else if (buffer_delay(bh)) {
if (type == XFS_IO_DELALLOC);
if (type == XFS_IO_DELALLOC)
return true;
} else if (buffer_dirty(bh) && buffer_mapped(bh)) {
if (type == XFS_IO_OVERWRITE);
if (type == XFS_IO_OVERWRITE)
return true;
}

Expand Down

0 comments on commit 805eeb8

Please sign in to comment.