Skip to content

Commit ab6a8d3

Browse files
committed
Merge branch 'guilt/xfs-5.19-misc-3' into xfs-5.19-for-next
2 parents 4183e4f + 73c348d commit ab6a8d3

File tree

4 files changed

+2
-62
lines changed

4 files changed

+2
-62
lines changed

fs/xfs/libxfs/xfs_symlink_remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ xfs_symlink_shortform_verify(
213213

214214
/*
215215
* Zero length symlinks should never occur in memory as they are
216-
* never alllowed to exist on disk.
216+
* never allowed to exist on disk.
217217
*/
218218
if (!size)
219219
return __this_address;

fs/xfs/xfs_attr_item.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include "xfs_attr.h"
2323
#include "xfs_attr_item.h"
2424
#include "xfs_trace.h"
25-
#include "xfs_inode.h"
2625
#include "xfs_trans_space.h"
2726
#include "xfs_errortag.h"
2827
#include "xfs_error.h"

fs/xfs/xfs_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,9 +576,9 @@ xfs_file_dio_write_unaligned(
576576
* don't even bother trying the fast path in this case.
577577
*/
578578
if (iocb->ki_pos > isize || iocb->ki_pos + count >= isize) {
579-
retry_exclusive:
580579
if (iocb->ki_flags & IOCB_NOWAIT)
581580
return -EAGAIN;
581+
retry_exclusive:
582582
iolock = XFS_IOLOCK_EXCL;
583583
flags = IOMAP_DIO_FORCE_WAIT;
584584
}

fs/xfs/xfs_log_recover.c

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ STATIC int
3939
xlog_clear_stale_blocks(
4040
struct xlog *,
4141
xfs_lsn_t);
42-
#if defined(DEBUG)
43-
STATIC void
44-
xlog_recover_check_summary(
45-
struct xlog *);
46-
#else
47-
#define xlog_recover_check_summary(log)
48-
#endif
4942
STATIC int
5043
xlog_do_recovery_pass(
5144
struct xlog *, xfs_daddr_t, xfs_daddr_t, int, xfs_daddr_t *);
@@ -3339,8 +3332,6 @@ xlog_do_recover(
33393332
}
33403333
mp->m_alloc_set_aside = xfs_alloc_set_aside(mp);
33413334

3342-
xlog_recover_check_summary(log);
3343-
33443335
/* Normal transactions can now occur */
33453336
clear_bit(XLOG_ACTIVE_RECOVERY, &log->l_opstate);
33463337
return 0;
@@ -3483,7 +3474,6 @@ xlog_recover_finish(
34833474
}
34843475

34853476
xlog_recover_process_iunlinks(log);
3486-
xlog_recover_check_summary(log);
34873477

34883478
/*
34893479
* Recover any CoW staging blocks that are still referenced by the
@@ -3517,52 +3507,3 @@ xlog_recover_cancel(
35173507
xlog_recover_cancel_intents(log);
35183508
}
35193509

3520-
#if defined(DEBUG)
3521-
/*
3522-
* Read all of the agf and agi counters and check that they
3523-
* are consistent with the superblock counters.
3524-
*/
3525-
STATIC void
3526-
xlog_recover_check_summary(
3527-
struct xlog *log)
3528-
{
3529-
struct xfs_mount *mp = log->l_mp;
3530-
struct xfs_perag *pag;
3531-
struct xfs_buf *agfbp;
3532-
struct xfs_buf *agibp;
3533-
xfs_agnumber_t agno;
3534-
uint64_t freeblks;
3535-
uint64_t itotal;
3536-
uint64_t ifree;
3537-
int error;
3538-
3539-
freeblks = 0LL;
3540-
itotal = 0LL;
3541-
ifree = 0LL;
3542-
for_each_perag(mp, agno, pag) {
3543-
error = xfs_read_agf(mp, NULL, pag->pag_agno, 0, &agfbp);
3544-
if (error) {
3545-
xfs_alert(mp, "%s agf read failed agno %d error %d",
3546-
__func__, pag->pag_agno, error);
3547-
} else {
3548-
struct xfs_agf *agfp = agfbp->b_addr;
3549-
3550-
freeblks += be32_to_cpu(agfp->agf_freeblks) +
3551-
be32_to_cpu(agfp->agf_flcount);
3552-
xfs_buf_relse(agfbp);
3553-
}
3554-
3555-
error = xfs_read_agi(mp, NULL, pag->pag_agno, &agibp);
3556-
if (error) {
3557-
xfs_alert(mp, "%s agi read failed agno %d error %d",
3558-
__func__, pag->pag_agno, error);
3559-
} else {
3560-
struct xfs_agi *agi = agibp->b_addr;
3561-
3562-
itotal += be32_to_cpu(agi->agi_count);
3563-
ifree += be32_to_cpu(agi->agi_freecount);
3564-
xfs_buf_relse(agibp);
3565-
}
3566-
}
3567-
}
3568-
#endif /* DEBUG */

0 commit comments

Comments
 (0)