[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240719-fsconfig-fsparam_fd-fixes-v1-0-7ccd315c2ad4@cyphar.com>
Date: Fri, 19 Jul 2024 00:34:21 +1000
From: Aleksa Sarai <cyphar@...har.com>
To: Ian Kent <raven@...maw.net>, Bill O'Donnell <bodonnel@...hat.com>,
Christian Brauner <brauner@...nel.org>, Jan Harkes <jaharkes@...cmu.edu>,
coda@...cmu.edu, Eric Sandeen <sandeen@...hat.com>,
David Howells <dhowells@...hat.com>
Cc: autofs@...r.kernel.org, linux-kernel@...r.kernel.org,
codalist@...a.cs.cmu.edu, Aleksa Sarai <cyphar@...har.com>
Subject: [PATCH 0/2] fsconfig: minor fsparam_fd fixes
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@...har.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@...har.com>
Powered by blists - more mailing lists