mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
SUNRPC: send notification events on pipefs sb creation and destruction
They will be used to notify subscribers about pipefs superblock creation and destruction. Subcribers will have to create their dentries on passed superblock on mount event and destroy otherwise. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
021c68dec8
commit
2d00131acc
2 changed files with 40 additions and 0 deletions
|
@ -43,6 +43,14 @@ RPC_I(struct inode *inode)
|
|||
return container_of(inode, struct rpc_inode, vfs_inode);
|
||||
}
|
||||
|
||||
extern int rpc_pipefs_notifier_register(struct notifier_block *);
|
||||
extern void rpc_pipefs_notifier_unregister(struct notifier_block *);
|
||||
|
||||
enum {
|
||||
RPC_PIPEFS_MOUNT,
|
||||
RPC_PIPEFS_UMOUNT,
|
||||
};
|
||||
|
||||
extern ssize_t rpc_pipe_generic_upcall(struct file *, struct rpc_pipe_msg *,
|
||||
char __user *, size_t);
|
||||
extern int rpc_queue_upcall(struct inode *, struct rpc_pipe_msg *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue