diff options
Diffstat (limited to 'fs/xfs/xfs_bmap.c')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index 2e9b34b7344b..97f0328b5ac2 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -3956,7 +3956,6 @@ xfs_bmap_add_attrfork( | |||
3956 | xfs_bmap_free_t flist; /* freed extent records */ | 3956 | xfs_bmap_free_t flist; /* freed extent records */ |
3957 | xfs_mount_t *mp; /* mount structure */ | 3957 | xfs_mount_t *mp; /* mount structure */ |
3958 | xfs_trans_t *tp; /* transaction pointer */ | 3958 | xfs_trans_t *tp; /* transaction pointer */ |
3959 | unsigned long s; /* spinlock spl value */ | ||
3960 | int blks; /* space reservation */ | 3959 | int blks; /* space reservation */ |
3961 | int version = 1; /* superblock attr version */ | 3960 | int version = 1; /* superblock attr version */ |
3962 | int committed; /* xaction was committed */ | 3961 | int committed; /* xaction was committed */ |
@@ -4053,7 +4052,7 @@ xfs_bmap_add_attrfork( | |||
4053 | (!XFS_SB_VERSION_HASATTR2(&mp->m_sb) && version == 2)) { | 4052 | (!XFS_SB_VERSION_HASATTR2(&mp->m_sb) && version == 2)) { |
4054 | __int64_t sbfields = 0; | 4053 | __int64_t sbfields = 0; |
4055 | 4054 | ||
4056 | s = XFS_SB_LOCK(mp); | 4055 | spin_lock(&mp->m_sb_lock); |
4057 | if (!XFS_SB_VERSION_HASATTR(&mp->m_sb)) { | 4056 | if (!XFS_SB_VERSION_HASATTR(&mp->m_sb)) { |
4058 | XFS_SB_VERSION_ADDATTR(&mp->m_sb); | 4057 | XFS_SB_VERSION_ADDATTR(&mp->m_sb); |
4059 | sbfields |= XFS_SB_VERSIONNUM; | 4058 | sbfields |= XFS_SB_VERSIONNUM; |
@@ -4063,10 +4062,10 @@ xfs_bmap_add_attrfork( | |||
4063 | sbfields |= (XFS_SB_VERSIONNUM | XFS_SB_FEATURES2); | 4062 | sbfields |= (XFS_SB_VERSIONNUM | XFS_SB_FEATURES2); |
4064 | } | 4063 | } |
4065 | if (sbfields) { | 4064 | if (sbfields) { |
4066 | XFS_SB_UNLOCK(mp, s); | 4065 | spin_unlock(&mp->m_sb_lock); |
4067 | xfs_mod_sb(tp, sbfields); | 4066 | xfs_mod_sb(tp, sbfields); |
4068 | } else | 4067 | } else |
4069 | XFS_SB_UNLOCK(mp, s); | 4068 | spin_unlock(&mp->m_sb_lock); |
4070 | } | 4069 | } |
4071 | if ((error = xfs_bmap_finish(&tp, &flist, &committed))) | 4070 | if ((error = xfs_bmap_finish(&tp, &flist, &committed))) |
4072 | goto error2; | 4071 | goto error2; |