kernfs: introduce kernfs_node_id
inode number and generation can identify a kernfs node. We are going to export the identification by exportfs operations, so put ino and generation into a separate structure. It's convenient when later patches use the identification. Acked-by:Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Shaohua Li <shli@fb.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
- fs/kernfs/dir.c 5 additions, 5 deletionsfs/kernfs/dir.c
- fs/kernfs/file.c 2 additions, 2 deletionsfs/kernfs/file.c
- fs/kernfs/inode.c 2 additions, 2 deletionsfs/kernfs/inode.c
- include/linux/cgroup.h 1 addition, 1 deletioninclude/linux/cgroup.h
- include/linux/kernfs.h 10 additions, 2 deletionsinclude/linux/kernfs.h
- include/trace/events/writeback.h 1 addition, 1 deletioninclude/trace/events/writeback.h
Loading
Please register or sign in to comment