summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_fsops.c
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2022-04-21 11:40:17 +1000
committerDave Chinner <david@fromorbit.com>2022-04-21 11:40:17 +1000
commit1499b8a3a37baf5a78ee8044e9a8fa0471268d74 (patch)
tree12d56bded6454f11cf12922e71b3ce9dfb7e4093 /fs/xfs/xfs_fsops.c
parent9a5280b312e2e7898b6397b2ca3cfd03f67d7be1 (diff)
parent2d9ac4319b9959bf3195fedf88bdfd224c67593b (diff)
Merge branch 'guilt/5.19-miscellaneous' into xfs-5.19-for-next
Diffstat (limited to 'fs/xfs/xfs_fsops.c')
-rw-r--r--fs/xfs/xfs_fsops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c
index 68f74549fa22..a0d7aa7fbbff 100644
--- a/fs/xfs/xfs_fsops.c
+++ b/fs/xfs/xfs_fsops.c
@@ -349,10 +349,7 @@ xfs_fs_counts(
cnt->freeino = percpu_counter_read_positive(&mp->m_ifree);
cnt->freedata = percpu_counter_read_positive(&mp->m_fdblocks) -
xfs_fdblocks_unavailable(mp);
-
- spin_lock(&mp->m_sb_lock);
- cnt->freertx = mp->m_sb.sb_frextents;
- spin_unlock(&mp->m_sb_lock);
+ cnt->freertx = percpu_counter_read_positive(&mp->m_frextents);
}
/*