diff options
-rw-r--r-- | fs/xfs/xfs_aops.c | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_da_btree.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index 98016b39b8af..75df77d09f75 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c | |||
@@ -659,10 +659,10 @@ xfs_check_page_type( | |||
659 | if (type == XFS_IO_UNWRITTEN) | 659 | if (type == XFS_IO_UNWRITTEN) |
660 | return true; | 660 | return true; |
661 | } else if (buffer_delay(bh)) { | 661 | } else if (buffer_delay(bh)) { |
662 | if (type == XFS_IO_DELALLOC); | 662 | if (type == XFS_IO_DELALLOC) |
663 | return true; | 663 | return true; |
664 | } else if (buffer_dirty(bh) && buffer_mapped(bh)) { | 664 | } else if (buffer_dirty(bh) && buffer_mapped(bh)) { |
665 | if (type == XFS_IO_OVERWRITE); | 665 | if (type == XFS_IO_OVERWRITE) |
666 | return true; | 666 | return true; |
667 | } | 667 | } |
668 | 668 | ||
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c index 1f5af79c0568..6cc5f6785a77 100644 --- a/fs/xfs/xfs_da_btree.c +++ b/fs/xfs/xfs_da_btree.c | |||
@@ -1296,7 +1296,7 @@ xfs_da3_fixhashpath( | |||
1296 | node = blk->bp->b_addr; | 1296 | node = blk->bp->b_addr; |
1297 | dp->d_ops->node_hdr_from_disk(&nodehdr, node); | 1297 | dp->d_ops->node_hdr_from_disk(&nodehdr, node); |
1298 | btree = dp->d_ops->node_tree_p(node); | 1298 | btree = dp->d_ops->node_tree_p(node); |
1299 | if (be32_to_cpu(btree->hashval) == lasthash) | 1299 | if (be32_to_cpu(btree[blk->index].hashval) == lasthash) |
1300 | break; | 1300 | break; |
1301 | blk->hashval = lasthash; | 1301 | blk->hashval = lasthash; |
1302 | btree[blk->index].hashval = cpu_to_be32(lasthash); | 1302 | btree[blk->index].hashval = cpu_to_be32(lasthash); |