diff options
Diffstat (limited to 'modules/spl/spl-vnode.c')
-rw-r--r-- | modules/spl/spl-vnode.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/spl/spl-vnode.c b/modules/spl/spl-vnode.c index 9024909b8..a1f6a680e 100644 --- a/modules/spl/spl-vnode.c +++ b/modules/spl/spl-vnode.c @@ -159,7 +159,7 @@ vn_rdwr(uio_rw_t uio, vnode_t *vp, void *addr, ssize_t len, offset_t off, EXPORT_SYMBOL(vn_rdwr); int -vn_close(vnode_t *vp, int flags, int x1, int x2, int x3, int x4) +vn_close(vnode_t *vp, int flags, int x1, int x2, void *x3, void *x4) { int rc; @@ -180,13 +180,16 @@ static struct dentry *lookup_hash(struct nameidata *nd) /* Modified do_unlinkat() from linux/fs/namei.c, only uses exported symbols */ int -vn_remove(const char *path, int x1, int x2) +vn_remove(const char *path, int seg, int flags) { struct dentry *dentry; struct nameidata nd; struct inode *inode = NULL; int rc = 0; + BUG_ON(seg != UIO_SYSSPACE); + BUG_ON(flags != RMFILE); + rc = path_lookup(path, LOOKUP_PARENT, &nd); if (rc) goto exit; @@ -348,7 +351,7 @@ vn_getattr(vnode_t *vp, vattr_t *vap, int flags, int x3, void *x4) } EXPORT_SYMBOL(vn_getattr); -int vn_fsync(vnode_t *vp, int flags, int x3, int x4) +int vn_fsync(vnode_t *vp, int flags, void *x3, void *x4) { BUG_ON(!vp); BUG_ON(!vp->v_fp); |