Commit 4ee6c244 authored by Timothy Shimmin's avatar Timothy Shimmin Committed by Nathan Scott

[XFS] Fix up handling of SB versionnum when filesystem on disk has

newer bit features than the kernel.

SGI Modid: xfs-linux:xfs-kern:177392a
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent d18add1a
...@@ -250,9 +250,9 @@ int xfs_sb_good_version(xfs_sb_t *sbp); ...@@ -250,9 +250,9 @@ int xfs_sb_good_version(xfs_sb_t *sbp);
((((sbp)->sb_versionnum >= XFS_SB_VERSION_1) && \ ((((sbp)->sb_versionnum >= XFS_SB_VERSION_1) && \
((sbp)->sb_versionnum <= XFS_SB_VERSION_3)) || \ ((sbp)->sb_versionnum <= XFS_SB_VERSION_3)) || \
((XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_4) && \ ((XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_4) && \
!(((sbp)->sb_versionnum & ~XFS_SB_VERSION_OKREALBITS) && \ !(((sbp)->sb_versionnum & ~XFS_SB_VERSION_OKREALBITS) || \
((sbp)->sb_versionnum & XFS_SB_VERSION_MOREBITSBIT) && \ (((sbp)->sb_versionnum & XFS_SB_VERSION_MOREBITSBIT) && \
((sbp)->sb_features2 & ~XFS_SB_VERSION2_OKREALBITS)) ((sbp)->sb_features2 & ~XFS_SB_VERSION2_OKREALBITS)))
#ifdef __KERNEL__ #ifdef __KERNEL__
#define XFS_SB_GOOD_VERSION(sbp) \ #define XFS_SB_GOOD_VERSION(sbp) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment