aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_bmap.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2005-11-01 23:00:20 -0500
committerNathan Scott <nathans@sgi.com>2005-11-01 23:00:20 -0500
commitda087bad810b48dd889a504e6af0a582ba18df0d (patch)
tree2b94f17722bc632dde1ca2ab9805e0f51b57054e /fs/xfs/xfs_bmap.c
parent0116d9356bfa8607a6e2efb5263100a6c72eabb0 (diff)
[XFS] Fix up a 32/64 local flags variable issue when enabling attr2 mode.
SGI-PV: 941645 SGI-Modid: xfs-linux:xfs-kern:23925a Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_bmap.c')
-rw-r--r--fs/xfs/xfs_bmap.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
index 82496d901d23..fbd48f9b797e 100644
--- a/fs/xfs/xfs_bmap.c
+++ b/fs/xfs/xfs_bmap.c
@@ -3909,19 +3909,20 @@ xfs_bmap_add_attrfork(
3909 goto error2; 3909 goto error2;
3910 if (!XFS_SB_VERSION_HASATTR(&mp->m_sb) || 3910 if (!XFS_SB_VERSION_HASATTR(&mp->m_sb) ||
3911 (!XFS_SB_VERSION_HASATTR2(&mp->m_sb) && version == 2)) { 3911 (!XFS_SB_VERSION_HASATTR2(&mp->m_sb) && version == 2)) {
3912 logflags = 0; 3912 __int64_t sbfields = 0;
3913
3913 s = XFS_SB_LOCK(mp); 3914 s = XFS_SB_LOCK(mp);
3914 if (!XFS_SB_VERSION_HASATTR(&mp->m_sb)) { 3915 if (!XFS_SB_VERSION_HASATTR(&mp->m_sb)) {
3915 XFS_SB_VERSION_ADDATTR(&mp->m_sb); 3916 XFS_SB_VERSION_ADDATTR(&mp->m_sb);
3916 logflags |= XFS_SB_VERSIONNUM; 3917 sbfields |= XFS_SB_VERSIONNUM;
3917 } 3918 }
3918 if (!XFS_SB_VERSION_HASATTR2(&mp->m_sb) && version == 2) { 3919 if (!XFS_SB_VERSION_HASATTR2(&mp->m_sb) && version == 2) {
3919 XFS_SB_VERSION_ADDATTR2(&mp->m_sb); 3920 XFS_SB_VERSION_ADDATTR2(&mp->m_sb);
3920 logflags |= (XFS_SB_VERSIONNUM | XFS_SB_FEATURES2); 3921 sbfields |= (XFS_SB_VERSIONNUM | XFS_SB_FEATURES2);
3921 } 3922 }
3922 if (logflags) { 3923 if (sbfields) {
3923 XFS_SB_UNLOCK(mp, s); 3924 XFS_SB_UNLOCK(mp, s);
3924 xfs_mod_sb(tp, logflags); 3925 xfs_mod_sb(tp, sbfields);
3925 } else 3926 } else
3926 XFS_SB_UNLOCK(mp, s); 3927 XFS_SB_UNLOCK(mp, s);
3927 } 3928 }