diff options
author | mm <mm@FreeBSD.org> | 2011-08-25 08:17:39 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2011-08-25 08:17:39 +0000 |
commit | e104c96f018139a8d2a85057c37ae2e5999cbd41 (patch) | |
tree | f8958cd0b60a86012d8905a34cb8bdc7e640171f /sys/sys/vnode.h | |
parent | 631a8abdff140aaa997d795f570b6c5e78f34991 (diff) | |
download | FreeBSD-src-e104c96f018139a8d2a85057c37ae2e5999cbd41.zip FreeBSD-src-e104c96f018139a8d2a85057c37ae2e5999cbd41.tar.gz |
Generalize ffs_pages_remove() into vn_pages_remove().
Remove mapped pages for all dataset vnodes in zfs_rezget() using
new vn_pages_remove() to fix mmapped files changed by
zfs rollback or zfs receive -F.
PR: kern/160035, kern/156933
Reviewed by: kib, pjd
Approved by: re (kib)
MFC after: 1 week
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r-- | sys/sys/vnode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 81be360..4cb6633 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -640,6 +640,7 @@ int _vn_lock(struct vnode *vp, int flags, char *file, int line); int vn_open(struct nameidata *ndp, int *flagp, int cmode, struct file *fp); int vn_open_cred(struct nameidata *ndp, int *flagp, int cmode, u_int vn_open_flags, struct ucred *cred, struct file *fp); +void vn_pages_remove(struct vnode *vp, vm_pindex_t start, vm_pindex_t end); int vn_pollrecord(struct vnode *vp, struct thread *p, int events); int vn_rdwr(enum uio_rw rw, struct vnode *vp, void *base, int len, off_t offset, enum uio_seg segflg, int ioflg, |