diff options
author | Dave Chinner <david@fromorbit.com> | 2016-11-30 12:49:38 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-11-30 12:49:38 +1100 |
commit | e3df41f97847f60c3808b39dee1adcb72b3d4646 (patch) | |
tree | e146ce6480868f74bb1fdf31ac522ae1aece648d /fs/xfs/xfs_qm.c | |
parent | 9484ab1bf4464faae695321dd4fa66365beda74e (diff) | |
parent | f782088c9e5d08e9494c63e68b4e85716df3e5f8 (diff) | |
download | linux-e3df41f97847f60c3808b39dee1adcb72b3d4646.tar.gz linux-e3df41f97847f60c3808b39dee1adcb72b3d4646.tar.bz2 linux-e3df41f97847f60c3808b39dee1adcb72b3d4646.zip |
Merge branch 'xfs-4.10-misc-fixes-2' into iomap-4.10-directio
Diffstat (limited to 'fs/xfs/xfs_qm.c')
-rw-r--r-- | fs/xfs/xfs_qm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index a60d9e2739d1..45e50ea90769 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c @@ -1135,7 +1135,7 @@ xfs_qm_get_rtblks( return error; } rtblks = 0; - nextents = ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t); + nextents = xfs_iext_count(ifp); for (idx = 0; idx < nextents; idx++) rtblks += xfs_bmbt_get_blockcount(xfs_iext_get_ext(ifp, idx)); *O_rtblks = (xfs_qcnt_t)rtblks; |