All of lore.kernel.org
 help / color / mirror / Atom feed
* [djwong-xfs:xfs-5.15-merge 10/25] fs/xfs/xfs_super.c:767 xfs_fs_sync_fs() warn: inconsistent indenting
@ 2021-08-07  8:30 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-07  8:30 UTC (permalink / raw)
  To: Dave Chinner; +Cc: kbuild-all, Darrick J. Wong, linux-kernel, Darrick J. Wong

[-- Attachment #1: Type: text/plain, Size: 2283 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git xfs-5.15-merge
head:   eabe005e2fe7a139233e5e0b7b125042a1b45c8f
commit: 6df693ed7ba9ec03cafc38d5064de376a11243e2 [10/25] xfs: per-cpu deferred inode inactivation queues
config: x86_64-randconfig-m001-20210804 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

smatch warnings:
fs/xfs/xfs_super.c:767 xfs_fs_sync_fs() warn: inconsistent indenting

vim +767 fs/xfs/xfs_super.c

   728	
   729	STATIC int
   730	xfs_fs_sync_fs(
   731		struct super_block	*sb,
   732		int			wait)
   733	{
   734		struct xfs_mount	*mp = XFS_M(sb);
   735	
   736		trace_xfs_fs_sync_fs(mp, __return_address);
   737	
   738		/*
   739		 * Doing anything during the async pass would be counterproductive.
   740		 */
   741		if (!wait)
   742			return 0;
   743	
   744		xfs_log_force(mp, XFS_LOG_SYNC);
   745		if (laptop_mode) {
   746			/*
   747			 * The disk must be active because we're syncing.
   748			 * We schedule log work now (now that the disk is
   749			 * active) instead of later (when it might not be).
   750			 */
   751			flush_delayed_work(&mp->m_log->l_work);
   752		}
   753	
   754		/*
   755		 * If we are called with page faults frozen out, it means we are about
   756		 * to freeze the transaction subsystem. Take the opportunity to shut
   757		 * down inodegc because once SB_FREEZE_FS is set it's too late to
   758		 * prevent inactivation races with freeze. The fs doesn't get called
   759		 * again by the freezing process until after SB_FREEZE_FS has been set,
   760		 * so it's now or never.
   761		 *
   762		 * We don't care if this is a normal syncfs call that does this or
   763		 * freeze that does this - we can run this multiple times without issue
   764		 * and we won't race with a restart because a restart can only occur
   765		 * when the state is either SB_FREEZE_FS or SB_FREEZE_COMPLETE.
   766		 */
 > 767		 if (sb->s_writers.frozen == SB_FREEZE_PAGEFAULT)
   768			xfs_inodegc_stop(mp);
   769	
   770		return 0;
   771	}
   772	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32282 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [djwong-xfs:xfs-5.15-merge 10/25] fs/xfs/xfs_super.c:767 xfs_fs_sync_fs() warn: inconsistent indenting
@ 2021-08-07  8:30 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-07  8:30 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2348 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git xfs-5.15-merge
head:   eabe005e2fe7a139233e5e0b7b125042a1b45c8f
commit: 6df693ed7ba9ec03cafc38d5064de376a11243e2 [10/25] xfs: per-cpu deferred inode inactivation queues
config: x86_64-randconfig-m001-20210804 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

smatch warnings:
fs/xfs/xfs_super.c:767 xfs_fs_sync_fs() warn: inconsistent indenting

vim +767 fs/xfs/xfs_super.c

   728	
   729	STATIC int
   730	xfs_fs_sync_fs(
   731		struct super_block	*sb,
   732		int			wait)
   733	{
   734		struct xfs_mount	*mp = XFS_M(sb);
   735	
   736		trace_xfs_fs_sync_fs(mp, __return_address);
   737	
   738		/*
   739		 * Doing anything during the async pass would be counterproductive.
   740		 */
   741		if (!wait)
   742			return 0;
   743	
   744		xfs_log_force(mp, XFS_LOG_SYNC);
   745		if (laptop_mode) {
   746			/*
   747			 * The disk must be active because we're syncing.
   748			 * We schedule log work now (now that the disk is
   749			 * active) instead of later (when it might not be).
   750			 */
   751			flush_delayed_work(&mp->m_log->l_work);
   752		}
   753	
   754		/*
   755		 * If we are called with page faults frozen out, it means we are about
   756		 * to freeze the transaction subsystem. Take the opportunity to shut
   757		 * down inodegc because once SB_FREEZE_FS is set it's too late to
   758		 * prevent inactivation races with freeze. The fs doesn't get called
   759		 * again by the freezing process until after SB_FREEZE_FS has been set,
   760		 * so it's now or never.
   761		 *
   762		 * We don't care if this is a normal syncfs call that does this or
   763		 * freeze that does this - we can run this multiple times without issue
   764		 * and we won't race with a restart because a restart can only occur
   765		 * when the state is either SB_FREEZE_FS or SB_FREEZE_COMPLETE.
   766		 */
 > 767		 if (sb->s_writers.frozen == SB_FREEZE_PAGEFAULT)
   768			xfs_inodegc_stop(mp);
   769	
   770		return 0;
   771	}
   772	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32282 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-07  8:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-07  8:30 [djwong-xfs:xfs-5.15-merge 10/25] fs/xfs/xfs_super.c:767 xfs_fs_sync_fs() warn: inconsistent indenting kernel test robot
2021-08-07  8:30 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.