Lines Matching +full:error +full:- +full:correcting
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
61 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount()
65 uuid_copy(&mp->m_super->s_uuid, uuid); in xfs_uuid_mount()
71 xfs_warn(mp, "Filesystem has null UUID - can't mount"); in xfs_uuid_mount()
72 return -EINVAL; in xfs_uuid_mount()
76 for (i = 0, hole = -1; i < xfs_uuid_table_size; i++) { in xfs_uuid_mount()
98 xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid); in xfs_uuid_mount()
99 return -EINVAL; in xfs_uuid_mount()
106 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount()
134 ASSERT(PAGE_SHIFT >= sbp->sb_blocklog); in xfs_sb_validate_fsb_count()
135 ASSERT(sbp->sb_blocklog >= BBSHIFT); in xfs_sb_validate_fsb_count()
138 if (nblocks >> (PAGE_SHIFT - sbp->sb_blocklog) > ULONG_MAX) in xfs_sb_validate_fsb_count()
139 return -EFBIG; in xfs_sb_validate_fsb_count()
155 struct xfs_sb *sbp = &mp->m_sb; in xfs_readsb()
156 int error; in xfs_readsb() local
160 ASSERT(mp->m_sb_bp == NULL); in xfs_readsb()
161 ASSERT(mp->m_ddev_targp != NULL); in xfs_readsb()
170 sector_size = xfs_getsize_buftarg(mp->m_ddev_targp); in xfs_readsb()
180 error = xfs_buf_read_uncached(mp->m_ddev_targp, XFS_SB_DADDR, in xfs_readsb()
183 if (error) { in xfs_readsb()
185 xfs_warn(mp, "SB validate failed with error %d.", error); in xfs_readsb()
187 if (error == -EFSBADCRC) in xfs_readsb()
188 error = -EFSCORRUPTED; in xfs_readsb()
189 return error; in xfs_readsb()
195 xfs_sb_from_disk(sbp, bp->b_addr); in xfs_readsb()
201 if (sbp->sb_magicnum != XFS_SB_MAGIC) { in xfs_readsb()
204 error = -EINVAL; in xfs_readsb()
209 * We must be able to do sector-sized and sector-aligned IO. in xfs_readsb()
211 if (sector_size > sbp->sb_sectsize) { in xfs_readsb()
214 sector_size, sbp->sb_sectsize); in xfs_readsb()
215 error = -ENOSYS; in xfs_readsb()
221 * Re-read the superblock so the buffer is correctly sized, in xfs_readsb()
225 sector_size = sbp->sb_sectsize; in xfs_readsb()
230 mp->m_features |= xfs_sb_version_to_features(sbp); in xfs_readsb()
234 bp->b_ops = &xfs_sb_buf_ops; in xfs_readsb()
236 mp->m_sb_bp = bp; in xfs_readsb()
242 return error; in xfs_readsb()
257 struct xfs_sb *sbp = &mp->m_sb; in xfs_check_new_dalign()
263 if (sbp->sb_rootino == calc_ino) { in xfs_check_new_dalign()
273 * returning -EINVAL to fail the mount. Until then, spit out a warning in xfs_check_new_dalign()
291 if (mp->m_dalign == 0) in xfs_validate_new_dalign()
298 if ((BBTOB(mp->m_dalign) & mp->m_blockmask) || in xfs_validate_new_dalign()
299 (BBTOB(mp->m_swidth) & mp->m_blockmask)) { in xfs_validate_new_dalign()
302 mp->m_sb.sb_blocksize); in xfs_validate_new_dalign()
303 return -EINVAL; in xfs_validate_new_dalign()
309 mp->m_dalign = XFS_BB_TO_FSBT(mp, mp->m_dalign); in xfs_validate_new_dalign()
310 if (mp->m_dalign && (mp->m_sb.sb_agblocks % mp->m_dalign)) { in xfs_validate_new_dalign()
313 mp->m_sb.sb_agblocks); in xfs_validate_new_dalign()
314 return -EINVAL; in xfs_validate_new_dalign()
317 if (!mp->m_dalign) { in xfs_validate_new_dalign()
320 mp->m_dalign, mp->m_sb.sb_blocksize); in xfs_validate_new_dalign()
321 return -EINVAL; in xfs_validate_new_dalign()
324 mp->m_swidth = XFS_BB_TO_FSBT(mp, mp->m_swidth); in xfs_validate_new_dalign()
329 return -EINVAL; in xfs_validate_new_dalign()
340 struct xfs_sb *sbp = &mp->m_sb; in xfs_update_alignment()
342 if (mp->m_dalign) { in xfs_update_alignment()
344 int error; in xfs_update_alignment() local
346 if (sbp->sb_unit == mp->m_dalign && in xfs_update_alignment()
347 sbp->sb_width == mp->m_swidth) in xfs_update_alignment()
350 error = xfs_check_new_dalign(mp, mp->m_dalign, &update_sb); in xfs_update_alignment()
351 if (error || !update_sb) in xfs_update_alignment()
352 return error; in xfs_update_alignment()
354 sbp->sb_unit = mp->m_dalign; in xfs_update_alignment()
355 sbp->sb_width = mp->m_swidth; in xfs_update_alignment()
356 mp->m_update_sb = true; in xfs_update_alignment()
358 mp->m_dalign = sbp->sb_unit; in xfs_update_alignment()
359 mp->m_swidth = sbp->sb_width; in xfs_update_alignment()
372 uint64_t dblocks = mp->m_sb.sb_dblocks; in xfs_set_low_space_thresholds()
373 uint64_t rtexts = mp->m_sb.sb_rextents; in xfs_set_low_space_thresholds()
380 mp->m_low_space[i] = dblocks * (i + 1); in xfs_set_low_space_thresholds()
381 mp->m_low_rtexts[i] = rtexts * (i + 1); in xfs_set_low_space_thresholds()
394 int error; in xfs_check_sizes() local
396 d = (xfs_daddr_t)XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks); in xfs_check_sizes()
397 if (XFS_BB_TO_FSB(mp, d) != mp->m_sb.sb_dblocks) { in xfs_check_sizes()
399 return -EFBIG; in xfs_check_sizes()
401 error = xfs_buf_read_uncached(mp->m_ddev_targp, in xfs_check_sizes()
402 d - XFS_FSS_TO_BB(mp, 1), in xfs_check_sizes()
404 if (error) { in xfs_check_sizes()
406 return error; in xfs_check_sizes()
410 if (mp->m_logdev_targp == mp->m_ddev_targp) in xfs_check_sizes()
413 d = (xfs_daddr_t)XFS_FSB_TO_BB(mp, mp->m_sb.sb_logblocks); in xfs_check_sizes()
414 if (XFS_BB_TO_FSB(mp, d) != mp->m_sb.sb_logblocks) { in xfs_check_sizes()
416 return -EFBIG; in xfs_check_sizes()
418 error = xfs_buf_read_uncached(mp->m_logdev_targp, in xfs_check_sizes()
419 d - XFS_FSB_TO_BB(mp, 1), in xfs_check_sizes()
421 if (error) { in xfs_check_sizes()
423 return error; in xfs_check_sizes()
436 mp->m_qflags = 0; in xfs_mount_reset_sbqflags()
439 if (mp->m_sb.sb_qflags == 0) in xfs_mount_reset_sbqflags()
441 spin_lock(&mp->m_sb_lock); in xfs_mount_reset_sbqflags()
442 mp->m_sb.sb_qflags = 0; in xfs_mount_reset_sbqflags()
443 spin_unlock(&mp->m_sb_lock); in xfs_mount_reset_sbqflags()
463 resblks = mp->m_sb.sb_dblocks; in xfs_default_resblks()
474 int error = 0; in xfs_check_summary_counts() local
477 * The AG0 superblock verifier rejects in-progress filesystems, in xfs_check_summary_counts()
480 if (mp->m_sb.sb_inprogress) { in xfs_check_summary_counts()
483 return -EFSCORRUPTED; in xfs_check_summary_counts()
498 (mp->m_sb.sb_fdblocks > mp->m_sb.sb_dblocks || in xfs_check_summary_counts()
499 !xfs_verify_icount(mp, mp->m_sb.sb_icount) || in xfs_check_summary_counts()
500 mp->m_sb.sb_ifree > mp->m_sb.sb_icount)) in xfs_check_summary_counts()
504 * We can safely re-initialise incore superblock counters from the in xfs_check_summary_counts()
505 * per-ag data. These may not be correct if the filesystem was not in xfs_check_summary_counts()
516 error = xfs_initialize_perag_data(mp, mp->m_sb.sb_agcount); in xfs_check_summary_counts()
517 if (error) in xfs_check_summary_counts()
518 return error; in xfs_check_summary_counts()
534 error = xfs_rtalloc_reinit_frextents(mp); in xfs_check_summary_counts()
535 if (error) in xfs_check_summary_counts()
536 return error; in xfs_check_summary_counts()
549 if (percpu_counter_sum(&mp->m_ifree) > in xfs_unmount_check()
550 percpu_counter_sum(&mp->m_icount)) { in xfs_unmount_check()
574 * Then we can tell the world we are unmounting so that error handling knows
575 * that the filesystem is going away and we should error out anything that we
576 * have been retrying in the background. This will prevent never-ending
590 set_bit(XFS_OPSTATE_UNMOUNTING, &mp->m_opstate); in xfs_unmount_flush_inodes()
592 xfs_ail_push_all_sync(mp->m_ail); in xfs_unmount_flush_inodes()
594 cancel_delayed_work_sync(&mp->m_reclaim_work); in xfs_unmount_flush_inodes()
605 igeo->attr_fork_offset = xfs_bmap_compute_attr_offset(mp); in xfs_mount_setup_inode_geom()
606 ASSERT(igeo->attr_fork_offset < XFS_LITINO(mp)); in xfs_mount_setup_inode_geom()
611 /* Compute maximum possible height for per-AG btree types for this fs. */
618 levels = max(mp->m_alloc_maxlevels, M_IGEO(mp)->inobt_maxlevels); in xfs_agbtree_compute_maxlevels()
619 levels = max(levels, mp->m_rmap_maxlevels); in xfs_agbtree_compute_maxlevels()
620 mp->m_agbtree_maxlevels = max(levels, mp->m_refc_maxlevels); in xfs_agbtree_compute_maxlevels()
625 * - reads the superblock from disk and init the mount struct
626 * - if we're a 32-bit kernel, do a size check on the superblock
628 * - init mount struct realtime fields
629 * - allocate inode hash table for fs
630 * - init directory manager
631 * - perform recovery and init the log manager
637 struct xfs_sb *sbp = &(mp->m_sb); in xfs_mountfs()
643 int error = 0; in xfs_mountfs() local
652 * 64-bit value. in xfs_mountfs()
664 xfs_warn(mp, "correcting sb_features alignment problem"); in xfs_mountfs()
665 sbp->sb_features2 |= sbp->sb_bad_features2; in xfs_mountfs()
666 mp->m_update_sb = true; in xfs_mountfs()
671 if (!(mp->m_sb.sb_versionnum & XFS_SB_VERSION_NLINKBIT)) { in xfs_mountfs()
672 mp->m_sb.sb_versionnum |= XFS_SB_VERSION_NLINKBIT; in xfs_mountfs()
673 mp->m_features |= XFS_FEAT_NLINK; in xfs_mountfs()
674 mp->m_update_sb = true; in xfs_mountfs()
683 error = xfs_validate_new_dalign(mp); in xfs_mountfs()
684 if (error) in xfs_mountfs()
703 error = xfs_update_alignment(mp); in xfs_mountfs()
704 if (error) in xfs_mountfs()
708 mp->m_fail_unmount = true; in xfs_mountfs()
710 error = xfs_sysfs_init(&mp->m_kobj, &xfs_mp_ktype, in xfs_mountfs()
711 NULL, mp->m_super->s_id); in xfs_mountfs()
712 if (error) in xfs_mountfs()
715 error = xfs_sysfs_init(&mp->m_stats.xs_kobj, &xfs_stats_ktype, in xfs_mountfs()
716 &mp->m_kobj, "stats"); in xfs_mountfs()
717 if (error) in xfs_mountfs()
720 xchk_stats_register(mp->m_scrub_stats, mp->m_debugfs); in xfs_mountfs()
722 error = xfs_error_sysfs_init(mp); in xfs_mountfs()
723 if (error) in xfs_mountfs()
726 error = xfs_errortag_init(mp); in xfs_mountfs()
727 if (error) in xfs_mountfs()
730 error = xfs_uuid_mount(mp); in xfs_mountfs()
731 if (error) in xfs_mountfs()
736 * on-disk superblock. in xfs_mountfs()
738 mp->m_allocsize_log = in xfs_mountfs()
739 max_t(uint32_t, sbp->sb_blocklog, mp->m_allocsize_log); in xfs_mountfs()
740 mp->m_allocsize_blocks = 1U << (mp->m_allocsize_log - sbp->sb_blocklog); in xfs_mountfs()
751 mp->m_sb.sb_spino_align != in xfs_mountfs()
752 XFS_B_TO_FSBT(mp, igeo->inode_cluster_size_raw)) { in xfs_mountfs()
755 mp->m_sb.sb_spino_align, in xfs_mountfs()
756 XFS_B_TO_FSBT(mp, igeo->inode_cluster_size_raw)); in xfs_mountfs()
757 error = -EINVAL; in xfs_mountfs()
764 error = xfs_check_sizes(mp); in xfs_mountfs()
765 if (error) in xfs_mountfs()
771 error = xfs_rtmount_init(mp); in xfs_mountfs()
772 if (error) { in xfs_mountfs()
781 mp->m_fixedfsid[0] = in xfs_mountfs()
782 (get_unaligned_be16(&sbp->sb_uuid.b[8]) << 16) | in xfs_mountfs()
783 get_unaligned_be16(&sbp->sb_uuid.b[4]); in xfs_mountfs()
784 mp->m_fixedfsid[1] = get_unaligned_be32(&sbp->sb_uuid.b[0]); in xfs_mountfs()
786 error = xfs_da_mount(mp); in xfs_mountfs()
787 if (error) { in xfs_mountfs()
788 xfs_warn(mp, "Failed dir/attr init: %d", error); in xfs_mountfs()
798 * Allocate and initialize the per-ag data. in xfs_mountfs()
800 error = xfs_initialize_perag(mp, 0, sbp->sb_agcount, in xfs_mountfs()
801 mp->m_sb.sb_dblocks, &mp->m_maxagi); in xfs_mountfs()
802 if (error) { in xfs_mountfs()
803 xfs_warn(mp, "Failed per-ag init: %d", error); in xfs_mountfs()
807 if (XFS_IS_CORRUPT(mp, !sbp->sb_logblocks)) { in xfs_mountfs()
809 error = -EFSCORRUPTED; in xfs_mountfs()
813 error = xfs_inodegc_register_shrinker(mp); in xfs_mountfs()
814 if (error) in xfs_mountfs()
818 * Log's mount-time initialization. The first part of recovery can place in xfs_mountfs()
822 error = xfs_log_mount(mp, mp->m_logdev_targp, in xfs_mountfs()
823 XFS_FSB_TO_DADDR(mp, sbp->sb_logstart), in xfs_mountfs()
824 XFS_FSB_TO_BB(mp, sbp->sb_logblocks)); in xfs_mountfs()
825 if (error) { in xfs_mountfs()
841 mp->m_features &= ~XFS_FEAT_ATTR2; in xfs_mountfs()
843 (mp->m_sb.sb_features2 & XFS_SB_VERSION2_ATTR2BIT)) { in xfs_mountfs()
844 mp->m_features |= XFS_FEAT_ATTR2; in xfs_mountfs()
848 * Get and sanity-check the root inode. in xfs_mountfs()
851 error = xfs_iget(mp, NULL, sbp->sb_rootino, XFS_IGET_UNTRUSTED, in xfs_mountfs()
853 if (error) { in xfs_mountfs()
855 "Failed to read root inode 0x%llx, error %d", in xfs_mountfs()
856 sbp->sb_rootino, -error); in xfs_mountfs()
862 if (XFS_IS_CORRUPT(mp, !S_ISDIR(VFS_I(rip)->i_mode))) { in xfs_mountfs()
864 (unsigned long long)rip->i_ino); in xfs_mountfs()
866 error = -EFSCORRUPTED; in xfs_mountfs()
869 mp->m_rootip = rip; /* save it */ in xfs_mountfs()
876 error = xfs_rtmount_inodes(mp); in xfs_mountfs()
877 if (error) { in xfs_mountfs()
886 error = xfs_check_summary_counts(mp); in xfs_mountfs()
887 if (error) in xfs_mountfs()
891 * If this is a read-only mount defer the superblock updates until in xfs_mountfs()
895 if (mp->m_update_sb && !xfs_is_readonly(mp)) { in xfs_mountfs()
896 error = xfs_sync_sb(mp, false); in xfs_mountfs()
897 if (error) { in xfs_mountfs()
907 error = xfs_qm_newmount(mp, "amount, "aflags); in xfs_mountfs()
908 if (error) in xfs_mountfs()
913 * mount without -o uquota/pquota/gquota options, revoke the in xfs_mountfs()
916 if (mp->m_sb.sb_qflags & XFS_ALL_QUOTA_ACCT) { in xfs_mountfs()
918 error = xfs_mount_reset_sbqflags(mp); in xfs_mountfs()
919 if (error) in xfs_mountfs()
926 * until after the root and real-time bitmap inodes were consistently in xfs_mountfs()
927 * read in. Temporarily create per-AG space reservations for metadata in xfs_mountfs()
929 * inactivation) require the per-AG reservation in lieu of reserving in xfs_mountfs()
932 error = xfs_fs_reserve_ag_blocks(mp); in xfs_mountfs()
933 if (error && error == -ENOSPC) in xfs_mountfs()
935 "ENOSPC reserving per-AG metadata pool, log recovery may fail."); in xfs_mountfs()
936 error = xfs_log_mount_finish(mp); in xfs_mountfs()
938 if (error) { in xfs_mountfs()
944 * Now the log is fully replayed, we can transition to full read-only in xfs_mountfs()
945 * mode for read-only mounts. This will sync all the metadata and clean in xfs_mountfs()
949 * We use the same quiesce mechanism as the rw->ro remount, as they are in xfs_mountfs()
956 * Complete the quota initialisation, post-log-replay component. in xfs_mountfs()
959 ASSERT(mp->m_qflags == 0); in xfs_mountfs()
960 mp->m_qflags = quotaflags; in xfs_mountfs()
978 error = xfs_reserve_blocks(mp, &resblks, NULL); in xfs_mountfs()
979 if (error) in xfs_mountfs()
984 error = xfs_fs_reserve_ag_blocks(mp); in xfs_mountfs()
985 if (error && error != -ENOSPC) in xfs_mountfs()
1024 unregister_shrinker(&mp->m_inodegc_shrinker); in xfs_mountfs()
1026 if (mp->m_logdev_targp && mp->m_logdev_targp != mp->m_ddev_targp) in xfs_mountfs()
1027 xfs_buftarg_drain(mp->m_logdev_targp); in xfs_mountfs()
1028 xfs_buftarg_drain(mp->m_ddev_targp); in xfs_mountfs()
1040 xchk_stats_unregister(mp->m_scrub_stats); in xfs_mountfs()
1041 xfs_sysfs_del(&mp->m_stats.xs_kobj); in xfs_mountfs()
1043 xfs_sysfs_del(&mp->m_kobj); in xfs_mountfs()
1045 return error; in xfs_mountfs()
1057 int error; in xfs_unmountfs() local
1060 * Perform all on-disk metadata updates required to inactivate inodes in xfs_unmountfs()
1073 xfs_irele(mp->m_rootip); in xfs_unmountfs()
1085 * We don't bother correcting this elsewhere for lazy superblock in xfs_unmountfs()
1089 * For non-lazy counter filesystems, this doesn't matter at all because in xfs_unmountfs()
1094 error = xfs_reserve_blocks(mp, &resblks, NULL); in xfs_unmountfs()
1095 if (error) in xfs_unmountfs()
1107 unregister_shrinker(&mp->m_inodegc_shrinker); in xfs_unmountfs()
1112 xchk_stats_unregister(mp->m_scrub_stats); in xfs_unmountfs()
1113 xfs_sysfs_del(&mp->m_stats.xs_kobj); in xfs_unmountfs()
1114 xfs_sysfs_del(&mp->m_kobj); in xfs_unmountfs()
1129 if ((mp->m_super->s_writers.frozen >= level) || in xfs_fs_writable()
1150 ASSERT(counter == &mp->m_fdblocks || counter == &mp->m_frextents); in xfs_mod_freecounter()
1151 has_resv_pool = (counter == &mp->m_fdblocks); in xfs_mod_freecounter()
1161 mp->m_resblks == mp->m_resblks_avail)) { in xfs_mod_freecounter()
1166 spin_lock(&mp->m_sb_lock); in xfs_mod_freecounter()
1167 res_used = (long long)(mp->m_resblks - mp->m_resblks_avail); in xfs_mod_freecounter()
1170 mp->m_resblks_avail += delta; in xfs_mod_freecounter()
1172 delta -= res_used; in xfs_mod_freecounter()
1173 mp->m_resblks_avail = mp->m_resblks; in xfs_mod_freecounter()
1176 spin_unlock(&mp->m_sb_lock); in xfs_mod_freecounter()
1203 * slightly premature -ENOSPC. in xfs_mod_freecounter()
1218 spin_lock(&mp->m_sb_lock); in xfs_mod_freecounter()
1219 percpu_counter_add(counter, -delta); in xfs_mod_freecounter()
1223 lcounter = (long long)mp->m_resblks_avail + delta; in xfs_mod_freecounter()
1225 mp->m_resblks_avail = lcounter; in xfs_mod_freecounter()
1226 spin_unlock(&mp->m_sb_lock); in xfs_mod_freecounter()
1233 spin_unlock(&mp->m_sb_lock); in xfs_mod_freecounter()
1234 return -ENOSPC; in xfs_mod_freecounter()
1238 * Used to free the superblock along various error paths.
1244 struct xfs_buf *bp = mp->m_sb_bp; in xfs_freesb()
1247 mp->m_sb_bp = NULL; in xfs_freesb()
1260 if (xfs_readonly_buftarg(mp->m_ddev_targp) || in xfs_dev_is_read_only()
1261 xfs_readonly_buftarg(mp->m_logdev_targp) || in xfs_dev_is_read_only()
1262 (mp->m_rtdev_targp && xfs_readonly_buftarg(mp->m_rtdev_targp))) { in xfs_dev_is_read_only()
1263 xfs_notice(mp, "%s required on read-only device.", message); in xfs_dev_is_read_only()
1265 return -EROFS; in xfs_dev_is_read_only()
1291 int error; in xfs_add_incompat_log_feature() local
1302 error = xfs_log_force(mp, XFS_LOG_SYNC); in xfs_add_incompat_log_feature()
1303 if (error) in xfs_add_incompat_log_feature()
1304 return error; in xfs_add_incompat_log_feature()
1305 xfs_ail_push_all(mp->m_ail); in xfs_add_incompat_log_feature()
1311 xfs_buf_lock(mp->m_sb_bp); in xfs_add_incompat_log_feature()
1312 xfs_buf_hold(mp->m_sb_bp); in xfs_add_incompat_log_feature()
1315 error = -EIO; in xfs_add_incompat_log_feature()
1319 if (xfs_sb_has_incompat_log_feature(&mp->m_sb, feature)) in xfs_add_incompat_log_feature()
1327 dsb = mp->m_sb_bp->b_addr; in xfs_add_incompat_log_feature()
1328 xfs_sb_to_disk(dsb, &mp->m_sb); in xfs_add_incompat_log_feature()
1329 dsb->sb_features_log_incompat |= cpu_to_be32(feature); in xfs_add_incompat_log_feature()
1330 error = xfs_bwrite(mp->m_sb_bp); in xfs_add_incompat_log_feature()
1331 if (error) in xfs_add_incompat_log_feature()
1338 xfs_sb_add_incompat_log_features(&mp->m_sb, feature); in xfs_add_incompat_log_feature()
1339 xfs_buf_relse(mp->m_sb_bp); in xfs_add_incompat_log_feature()
1346 xfs_buf_relse(mp->m_sb_bp); in xfs_add_incompat_log_feature()
1347 return error; in xfs_add_incompat_log_feature()
1367 !xfs_sb_has_incompat_log_feature(&mp->m_sb, in xfs_clear_incompat_log_features()
1377 xfs_buf_lock(mp->m_sb_bp); in xfs_clear_incompat_log_features()
1378 xfs_buf_hold(mp->m_sb_bp); in xfs_clear_incompat_log_features()
1380 if (xfs_sb_has_incompat_log_feature(&mp->m_sb, in xfs_clear_incompat_log_features()
1382 xfs_sb_remove_incompat_log_features(&mp->m_sb); in xfs_clear_incompat_log_features()
1386 xfs_buf_relse(mp->m_sb_bp); in xfs_clear_incompat_log_features()
1391 * Update the in-core delayed block counter.
1407 percpu_counter_add_batch(&mp->m_delalloc_blks, delta, in xfs_mod_delalloc()