summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_rtbitmap.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-18 17:42:34 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-18 17:42:40 +0200
commit67ece13ffe862f9d17a144c6cd3feef88a57db13 (patch)
treeec2036681d19a9c10b2fad941eb8f58f9eafcfc8 /fs/xfs/libxfs/xfs_rtbitmap.c
parentfa84cf094ef9667e2b91c104b0a788fd1896f482 (diff)
parent4aaf448fa9754e2d5ee188d32327b24ffc15ca4d (diff)
Merge branch 'topic/vga_switcheroo' into for-next
Pull the vga_switcheroo audio client fix. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rtbitmap.c')
-rw-r--r--fs/xfs/libxfs/xfs_rtbitmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_rtbitmap.c b/fs/xfs/libxfs/xfs_rtbitmap.c
index 65fc4ed2e9a10..b228c821bae68 100644
--- a/fs/xfs/libxfs/xfs_rtbitmap.c
+++ b/fs/xfs/libxfs/xfs_rtbitmap.c
@@ -1029,8 +1029,8 @@ xfs_rtalloc_query_range(
if (low_rec->ar_startext >= mp->m_sb.sb_rextents ||
low_rec->ar_startext == high_rec->ar_startext)
return 0;
- if (high_rec->ar_startext >= mp->m_sb.sb_rextents)
- high_rec->ar_startext = mp->m_sb.sb_rextents - 1;
+ if (high_rec->ar_startext > mp->m_sb.sb_rextents)
+ high_rec->ar_startext = mp->m_sb.sb_rextents;
/* Iterate the bitmap, looking for discrepancies. */
rtstart = low_rec->ar_startext;