linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* make xfs sparse-warning free
@ 2025-11-14  5:52 Christoph Hellwig
  2025-11-14  5:52 ` [PATCH 1/3] lockref: add a __cond_lock annotation for lockref_put_or_lock Christoph Hellwig
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Christoph Hellwig @ 2025-11-14  5:52 UTC (permalink / raw)
  To: Carlos Maiolino, Andrew Morton
  Cc: Luc Van Oostenryck, Chris Li, linux-sparse, linux-xfs,
	linux-kernel

Hi all,

this series isn't really a series, but a collection of two very different
patches toward the result of having no sparse warnings for fs/xfs/.

Patch 1 adds a cond_lock annotation to the lockref code.  This also fixes
warnings (but resurfaces new ones) in erofs and gfs2.

Patch 2 moves some XFS code around to help the lock context tracking. 
I actually think this improves the code, so I think this should go into
the XFS tree.

Patch 3 duplicates some XFS code to work around the lock context tracking,
but I think it is pretty silly.  Maybe it's a good example to help improve
this code in sparse?  It would not be horrible to apply given how little
code it duplicates, but a fix in sparse would be much nicer.

The kernel MAINTAINERS still list Luc as sparse maintainer, but sparse
itself lists Chris again.  Do we need to update the kernel MAINTAINERS
file, or are those separate roles?

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

end of thread, other threads:[~2025-11-18  6:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-14  5:52 make xfs sparse-warning free Christoph Hellwig
2025-11-14  5:52 ` [PATCH 1/3] lockref: add a __cond_lock annotation for lockref_put_or_lock Christoph Hellwig
2025-11-14 18:18   ` Linus Torvalds
2025-11-18  5:58     ` Christoph Hellwig
2025-11-14  5:52 ` [PATCH 2/3] xfs: move some code out of xfs_iget_recycle Christoph Hellwig
2025-11-14 17:04   ` Darrick J. Wong
2025-11-14 17:28     ` Linus Torvalds
2025-11-18  5:59     ` Christoph Hellwig
2025-11-14  5:52 ` [PATCH 3/3] xfs: work around sparse context tracking in xfs_qm_dquot_isolate Christoph Hellwig
2025-11-14 17:06   ` Darrick J. Wong
2025-11-18  6:00     ` Christoph Hellwig
2025-11-14 17:56 ` make xfs sparse-warning free Linus Torvalds
2025-11-18  5:57   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).