summaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2021-04-02 10:32:21 +0200
committerChristian Brauner <christian.brauner@ubuntu.com>2021-04-02 14:11:10 +0200
commitf49fd6d3c070d08c4ae9696876c7098320e48dab (patch)
tree8a758ff6341ad7ebad0e05a3cbe41bb2c37794a8 /fs/9p
parentfile: fix close_range() for unshare+cloexec (diff)
downloadlinux-f49fd6d3c070d08c4ae9696876c7098320e48dab.tar.xz
linux-f49fd6d3c070d08c4ae9696876c7098320e48dab.zip
file: let pick_file() tell caller it's done
Let pick_file() report back that the fd it was passed exceeded the maximum fd in that fdtable. This allows us to simplify the caller of this helper because it doesn't need to care anymore whether the passed in max_fd is excessive. It can rely on pick_file() telling it that it's past the last valid fd. Cc: Christoph Hellwig <hch@lst.de> Cc: Giuseppe Scrivano <gscrivan@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'fs/9p')
0 files changed, 0 insertions, 0 deletions