xfs_fsops.c (85bcfa26f9a3782be37d4feafd49668b98b8bdbe) | xfs_fsops.c (41e6362183589afd2cd51d653e277d256daab11f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#include "xfs.h" 7#include "xfs_fs.h" 8#include "xfs_shared.h" 9#include "xfs_format.h" 10#include "xfs_log_format.h" 11#include "xfs_trans_resv.h" 12#include "xfs_sb.h" 13#include "xfs_mount.h" 14#include "xfs_trans.h" 15#include "xfs_error.h" 16#include "xfs_alloc.h" 17#include "xfs_fsops.h" 18#include "xfs_trans_space.h" 19#include "xfs_log.h" | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#include "xfs.h" 7#include "xfs_fs.h" 8#include "xfs_shared.h" 9#include "xfs_format.h" 10#include "xfs_log_format.h" 11#include "xfs_trans_resv.h" 12#include "xfs_sb.h" 13#include "xfs_mount.h" 14#include "xfs_trans.h" 15#include "xfs_error.h" 16#include "xfs_alloc.h" 17#include "xfs_fsops.h" 18#include "xfs_trans_space.h" 19#include "xfs_log.h" |
20#include "xfs_log_priv.h" |
|
20#include "xfs_ag.h" 21#include "xfs_ag_resv.h" 22#include "xfs_trace.h" 23 24/* 25 * Write new AG headers to disk. Non-transactional, but need to be 26 * written and completed prior to the growfs transaction being logged. 27 * To do this, we use a delayed write buffer list and wait for --- 485 unchanged lines hidden (view full) --- 513 struct xfs_mount *mp, 514 int flags, 515 char *fname, 516 int lnnum) 517{ 518 int tag; 519 const char *why; 520 | 21#include "xfs_ag.h" 22#include "xfs_ag_resv.h" 23#include "xfs_trace.h" 24 25/* 26 * Write new AG headers to disk. Non-transactional, but need to be 27 * written and completed prior to the growfs transaction being logged. 28 * To do this, we use a delayed write buffer list and wait for --- 485 unchanged lines hidden (view full) --- 514 struct xfs_mount *mp, 515 int flags, 516 char *fname, 517 int lnnum) 518{ 519 int tag; 520 const char *why; 521 |
521 if (test_and_set_bit(XFS_OPSTATE_SHUTDOWN, &mp->m_opstate)) | 522 523 if (test_and_set_bit(XFS_OPSTATE_SHUTDOWN, &mp->m_opstate)) { 524 xlog_shutdown_wait(mp->m_log); |
522 return; | 525 return; |
526 } |
|
523 if (mp->m_sb_bp) 524 mp->m_sb_bp->b_flags |= XBF_DONE; 525 526 if (flags & SHUTDOWN_FORCE_UMOUNT) 527 xfs_alert(mp, "User initiated shutdown received."); 528 529 if (xlog_force_shutdown(mp->m_log, flags)) { 530 tag = XFS_PTAG_SHUTDOWN_LOGERROR; --- 72 unchanged lines hidden --- | 527 if (mp->m_sb_bp) 528 mp->m_sb_bp->b_flags |= XBF_DONE; 529 530 if (flags & SHUTDOWN_FORCE_UMOUNT) 531 xfs_alert(mp, "User initiated shutdown received."); 532 533 if (xlog_force_shutdown(mp->m_log, flags)) { 534 tag = XFS_PTAG_SHUTDOWN_LOGERROR; --- 72 unchanged lines hidden --- |