aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/libxfs/xfs_btree.c2
-rw-r--r--fs/xfs/xfs_bmap_util.c4
-rw-r--r--fs/xfs/xfs_qm_bhv.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c
index 34c6d7bd4d18..bbdae2b4559f 100644
--- a/fs/xfs/libxfs/xfs_btree.c
+++ b/fs/xfs/libxfs/xfs_btree.c
@@ -330,7 +330,7 @@ xfs_btree_sblock_verify_crc(
330 330
331 if (xfs_sb_version_hascrc(&mp->m_sb)) { 331 if (xfs_sb_version_hascrc(&mp->m_sb)) {
332 if (!xfs_log_check_lsn(mp, be64_to_cpu(block->bb_u.s.bb_lsn))) 332 if (!xfs_log_check_lsn(mp, be64_to_cpu(block->bb_u.s.bb_lsn)))
333 return __this_address; 333 return false;
334 return xfs_buf_verify_cksum(bp, XFS_BTREE_SBLOCK_CRC_OFF); 334 return xfs_buf_verify_cksum(bp, XFS_BTREE_SBLOCK_CRC_OFF);
335 } 335 }
336 336
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c
index 404e581f1ea1..1ee8c5539fa4 100644
--- a/fs/xfs/xfs_bmap_util.c
+++ b/fs/xfs/xfs_bmap_util.c
@@ -1126,9 +1126,9 @@ xfs_free_file_space(
1126 * page could be mmap'd and iomap_zero_range doesn't do that for us. 1126 * page could be mmap'd and iomap_zero_range doesn't do that for us.
1127 * Writeback of the eof page will do this, albeit clumsily. 1127 * Writeback of the eof page will do this, albeit clumsily.
1128 */ 1128 */
1129 if (offset + len >= XFS_ISIZE(ip) && ((offset + len) & PAGE_MASK)) { 1129 if (offset + len >= XFS_ISIZE(ip) && offset_in_page(offset + len) > 0) {
1130 error = filemap_write_and_wait_range(VFS_I(ip)->i_mapping, 1130 error = filemap_write_and_wait_range(VFS_I(ip)->i_mapping,
1131 (offset + len) & ~PAGE_MASK, LLONG_MAX); 1131 round_down(offset + len, PAGE_SIZE), LLONG_MAX);
1132 } 1132 }
1133 1133
1134 return error; 1134 return error;
diff --git a/fs/xfs/xfs_qm_bhv.c b/fs/xfs/xfs_qm_bhv.c
index 73a1d77ec187..3091e4bc04ef 100644
--- a/fs/xfs/xfs_qm_bhv.c
+++ b/fs/xfs/xfs_qm_bhv.c
@@ -40,7 +40,7 @@ xfs_fill_statvfs_from_dquot(
40 statp->f_files = limit; 40 statp->f_files = limit;
41 statp->f_ffree = 41 statp->f_ffree =
42 (statp->f_files > dqp->q_res_icount) ? 42 (statp->f_files > dqp->q_res_icount) ?
43 (statp->f_ffree - dqp->q_res_icount) : 0; 43 (statp->f_files - dqp->q_res_icount) : 0;
44 } 44 }
45} 45}
46 46