diff options
author | Dave Chinner <david@fromorbit.com> | 2015-01-21 23:51:30 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-01-21 23:51:30 +0100 |
commit | 438c3c8d2bb910966db6fc4140e62d67b3c5f2a8 (patch) | |
tree | c44fbb5488a82a24b3d71c4fe19924c2dc97df0e /fs/xfs/xfs_buf_item.c | |
parent | Merge branch 'xfs-sb-logging-rework' into for-next (diff) | |
parent | xfs: set superblock buffer type correctly (diff) | |
download | linux-438c3c8d2bb910966db6fc4140e62d67b3c5f2a8.tar.xz linux-438c3c8d2bb910966db6fc4140e62d67b3c5f2a8.zip |
Merge branch 'xfs-buf-type-fixes' into for-next
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
-rw-r--r-- | fs/xfs/xfs_buf_item.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c index 925ead22803a..507d96a57ac7 100644 --- a/fs/xfs/xfs_buf_item.c +++ b/fs/xfs/xfs_buf_item.c @@ -319,6 +319,10 @@ xfs_buf_item_format( ASSERT(atomic_read(&bip->bli_refcount) > 0); ASSERT((bip->bli_flags & XFS_BLI_LOGGED) || (bip->bli_flags & XFS_BLI_STALE)); + ASSERT((bip->bli_flags & XFS_BLI_STALE) || + (xfs_blft_from_flags(&bip->__bli_format) > XFS_BLFT_UNKNOWN_BUF + && xfs_blft_from_flags(&bip->__bli_format) < XFS_BLFT_MAX_BUF)); + /* * If it is an inode buffer, transfer the in-memory state to the |