mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
xfs: move handle ioctl code to xfs_handle.c
Move the handle managemnet code (and the attrmulti code that uses it) to xfs_handle.c. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -78,6 +78,7 @@ xfs-y += xfs_aops.o \
|
||||
xfs_fsmap.o \
|
||||
xfs_fsops.o \
|
||||
xfs_globals.o \
|
||||
xfs_handle.o \
|
||||
xfs_health.o \
|
||||
xfs_icache.o \
|
||||
xfs_ioctl.o \
|
||||
|
||||
618
fs/xfs/xfs_handle.c
Normal file
618
fs/xfs/xfs_handle.c
Normal file
File diff suppressed because it is too large
Load Diff
28
fs/xfs/xfs_handle.h
Normal file
28
fs/xfs/xfs_handle.h
Normal file
@@ -0,0 +1,28 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Copyright (c) 2000-2005 Silicon Graphics, Inc.
|
||||
* All rights reserved.
|
||||
*/
|
||||
#ifndef __XFS_HANDLE_H__
|
||||
#define __XFS_HANDLE_H__
|
||||
|
||||
int xfs_attrlist_by_handle(struct file *parfilp,
|
||||
struct xfs_fsop_attrlist_handlereq __user *p);
|
||||
int xfs_attrmulti_by_handle(struct file *parfilp, void __user *arg);
|
||||
|
||||
int xfs_find_handle(unsigned int cmd, struct xfs_fsop_handlereq *hreq);
|
||||
int xfs_open_by_handle(struct file *parfilp, struct xfs_fsop_handlereq *hreq);
|
||||
int xfs_readlink_by_handle(struct file *parfilp,
|
||||
struct xfs_fsop_handlereq *hreq);
|
||||
|
||||
int xfs_ioc_attrmulti_one(struct file *parfilp, struct inode *inode,
|
||||
uint32_t opcode, void __user *uname, void __user *value,
|
||||
uint32_t *len, uint32_t flags);
|
||||
int xfs_ioc_attr_list(struct xfs_inode *dp, void __user *ubuf,
|
||||
size_t bufsize, int flags,
|
||||
struct xfs_attrlist_cursor __user *ucursor);
|
||||
|
||||
struct dentry *xfs_handle_to_dentry(struct file *parfilp, void __user *uhandle,
|
||||
u32 hlen);
|
||||
|
||||
#endif /* __XFS_HANDLE_H__ */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -14,34 +14,6 @@ int
|
||||
xfs_ioc_swapext(
|
||||
xfs_swapext_t *sxp);
|
||||
|
||||
extern int
|
||||
xfs_find_handle(
|
||||
unsigned int cmd,
|
||||
xfs_fsop_handlereq_t *hreq);
|
||||
|
||||
extern int
|
||||
xfs_open_by_handle(
|
||||
struct file *parfilp,
|
||||
xfs_fsop_handlereq_t *hreq);
|
||||
|
||||
extern int
|
||||
xfs_readlink_by_handle(
|
||||
struct file *parfilp,
|
||||
xfs_fsop_handlereq_t *hreq);
|
||||
|
||||
int xfs_ioc_attrmulti_one(struct file *parfilp, struct inode *inode,
|
||||
uint32_t opcode, void __user *uname, void __user *value,
|
||||
uint32_t *len, uint32_t flags);
|
||||
int xfs_ioc_attr_list(struct xfs_inode *dp, void __user *ubuf,
|
||||
size_t bufsize, int flags,
|
||||
struct xfs_attrlist_cursor __user *ucursor);
|
||||
|
||||
extern struct dentry *
|
||||
xfs_handle_to_dentry(
|
||||
struct file *parfilp,
|
||||
void __user *uhandle,
|
||||
u32 hlen);
|
||||
|
||||
extern int
|
||||
xfs_fileattr_get(
|
||||
struct dentry *dentry,
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "xfs_ioctl32.h"
|
||||
#include "xfs_trace.h"
|
||||
#include "xfs_sb.h"
|
||||
#include "xfs_handle.h"
|
||||
|
||||
#define _NATIVE_IOC(cmd, type) \
|
||||
_IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(type))
|
||||
|
||||
Reference in New Issue
Block a user