public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] fsconfig: minor fsparam_fd fixes
@ 2024-07-18 14:34 Aleksa Sarai
  2024-07-18 14:34 ` [PATCH 1/2] autofs: fix missing fput for FSCONFIG_SET_FD Aleksa Sarai
  2024-07-18 14:34 ` [PATCH 2/2] coda: support FSCONFIG_SET_FD for fd mount flag Aleksa Sarai
  0 siblings, 2 replies; 6+ messages in thread
From: Aleksa Sarai @ 2024-07-18 14:34 UTC (permalink / raw)
  To: Ian Kent, Bill O'Donnell, Christian Brauner, Jan Harkes, coda,
	Eric Sandeen, David Howells
  Cc: autofs, linux-kernel, codalist, Aleksa Sarai

While working on adding an fsparam_fd() argument to cgroupfs, I noticed
that there are only two users of fsparam_fd() and they both seemed to
have minor issues:

* autofs has a missing fput() when using FSCONFIG_SET_FD.
* coda uses fsparam_fd() but only supports string-based fds but
  FSCONFIG_SET_FD is more ergonomic when using the new mount API.

I have tested this logic for the cgroupfs patch but I have only compile
tested the fixes for autofs and coda.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
---
Aleksa Sarai (2):
      autofs: fix missing fput for FSCONFIG_SET_FD
      coda: support FSCONFIG_SET_FD for fd mount flag

 fs/autofs/inode.c |  3 +--
 fs/coda/inode.c   | 18 ++++++++++++------
 2 files changed, 13 insertions(+), 8 deletions(-)
---
base-commit: b80cc4df1124702c600fd43b784e423a30919204
change-id: 20240714-fsconfig-fsparam_fd-fixes-09f2e741c28d

Best regards,
-- 
Aleksa Sarai <cyphar@cyphar.com>


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

end of thread, other threads:[~2024-07-19  1:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-18 14:34 [PATCH 0/2] fsconfig: minor fsparam_fd fixes Aleksa Sarai
2024-07-18 14:34 ` [PATCH 1/2] autofs: fix missing fput for FSCONFIG_SET_FD Aleksa Sarai
2024-07-18 14:34 ` [PATCH 2/2] coda: support FSCONFIG_SET_FD for fd mount flag Aleksa Sarai
2024-07-18 23:36   ` kernel test robot
2024-07-19  1:21     ` Aleksa Sarai
2024-07-19  0:59   ` kernel test robot

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