diff options
| author | Miklos Szeredi <mszeredi@redhat.com> | 2026-03-31 13:18:27 +0200 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2026-06-15 14:06:16 +0200 |
| commit | 4f5f0038d69102bd112240a36bf807b4408a11ab (patch) | |
| tree | 06b5561802a8974d5c89cd4386c173836ff127cc /fs/fuse/dev.c | |
| parent | b6d83d4e3eff4532c4c93d958dec78099ea37f5a (diff) | |
| download | linux-next-4f5f0038d69102bd112240a36bf807b4408a11ab.tar.gz linux-next-4f5f0038d69102bd112240a36bf807b4408a11ab.zip | |
fuse: move forget related struct and helpers
Move:
- struct fuse_forget_link to fuse_dev_i.h
- fuse_alloc_forget() to dev.c/dev.h
Rename:
- fuse_queue_forget -> fuse_chan_queue_forget
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/dev.c')
| -rw-r--r-- | fs/fuse/dev.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index df851c2383e9..cc89346f29fb 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -244,6 +244,11 @@ __releases(fiq->lock) spin_unlock(&fiq->lock); } +struct fuse_forget_link *fuse_alloc_forget(void) +{ + return kzalloc_obj(struct fuse_forget_link, GFP_KERNEL_ACCOUNT); +} + void fuse_dev_queue_forget(struct fuse_iqueue *fiq, struct fuse_forget_link *forget) { @@ -551,10 +556,10 @@ static void fuse_send_one(struct fuse_iqueue *fiq, struct fuse_req *req) fiq->ops->send_req(fiq, req); } -void fuse_queue_forget(struct fuse_conn *fc, struct fuse_forget_link *forget, - u64 nodeid, u64 nlookup) +void fuse_chan_queue_forget(struct fuse_chan *fch, struct fuse_forget_link *forget, + u64 nodeid, u64 nlookup) { - struct fuse_iqueue *fiq = &fc->chan->iq; + struct fuse_iqueue *fiq = &fch->iq; forget->forget_one.nodeid = nodeid; forget->forget_one.nlookup = nlookup; |
