public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* minor ->release fixups and cleanups
@ 2019-09-16 12:20 Christoph Hellwig
  2019-09-16 12:20 ` [PATCH 1/2] xfs: remove xfs_release Christoph Hellwig
  2019-09-16 12:20 ` [PATCH 2/2] xfs: shortcut xfs_file_release for read-only file descriptors Christoph Hellwig
  0 siblings, 2 replies; 11+ messages in thread
From: Christoph Hellwig @ 2019-09-16 12:20 UTC (permalink / raw)
  To: linux-xfs

Hi all,

Al Viro pointed out a while ago that while ->release returns an errno
it is never checked and rather pointless.  He pointed to XFS as an
instance that can return one.

This cleans up the code including remove the separate xfs_release
helper, and also tacks on another fixlet to only release our write
related resources when the file actually was opened for writing.

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

end of thread, other threads:[~2019-09-18 22:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-16 12:20 minor ->release fixups and cleanups Christoph Hellwig
2019-09-16 12:20 ` [PATCH 1/2] xfs: remove xfs_release Christoph Hellwig
2019-09-16 12:53   ` Brian Foster
2019-09-18 16:49     ` Christoph Hellwig
2019-09-18 18:12       ` Brian Foster
2019-09-18 18:21         ` Darrick J. Wong
2019-09-18 22:25           ` Dave Chinner
2019-09-16 12:20 ` [PATCH 2/2] xfs: shortcut xfs_file_release for read-only file descriptors Christoph Hellwig
2019-09-16 12:53   ` Brian Foster
2019-09-18 16:50     ` Christoph Hellwig
2019-09-18 17:06       ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox