summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/thread_with_file.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-02-10 11:32:20 -0800
committerKent Overstreet <kent.overstreet@linux.dev>2024-03-13 21:22:15 -0400
commit658a1e42ce00b487909cdf91247e69c333b2c37a (patch)
tree86d859f587c594dec74dcee2a41e2dc50acbf9f6 /fs/bcachefs/thread_with_file.h
parentab6752e24ef1eb4ef2cf35c4aa87eb1c9854e1a1 (diff)
downloadlinux-658a1e42ce00b487909cdf91247e69c333b2c37a.tar.gz
linux-658a1e42ce00b487909cdf91247e69c333b2c37a.tar.bz2
linux-658a1e42ce00b487909cdf91247e69c333b2c37a.zip
bcachefs: thread_with_file: allow ioctls against these files
Make it so that a thread_with_stdio user can handle ioctls against the file descriptor. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/thread_with_file.h')
-rw-r--r--fs/bcachefs/thread_with_file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/thread_with_file.h b/fs/bcachefs/thread_with_file.h
index 5361611edb4c..f0b8c04ed4a4 100644
--- a/fs/bcachefs/thread_with_file.h
+++ b/fs/bcachefs/thread_with_file.h
@@ -54,6 +54,7 @@ struct thread_with_stdio;
struct thread_with_stdio_ops {
void (*exit)(struct thread_with_stdio *);
void (*fn)(struct thread_with_stdio *);
+ long (*unlocked_ioctl)(struct thread_with_stdio *, unsigned int, unsigned long);
};
struct thread_with_stdio {