fuse_vnops.c (bfcb817bcd70fa17c7e65e72f15089eee9e53ce3) fuse_vnops.c (8f226f4c23e6fd158ad8f3c26be8d185cc0b73a2)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 2007-2009 Google Inc. and Amit Singh
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

--- 1513 unchanged lines hidden (view full) ---

1522out:
1523 fdisp_destroy(&fdi);
1524 return err;
1525}
1526
1527/*
1528 struct vnop_reclaim_args {
1529 struct vnode *a_vp;
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 2007-2009 Google Inc. and Amit Singh
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

--- 1513 unchanged lines hidden (view full) ---

1522out:
1523 fdisp_destroy(&fdi);
1524 return err;
1525}
1526
1527/*
1528 struct vnop_reclaim_args {
1529 struct vnode *a_vp;
1530 struct thread *a_td;
1531 };
1532*/
1533static int
1534fuse_vnop_reclaim(struct vop_reclaim_args *ap)
1535{
1536 struct vnode *vp = ap->a_vp;
1530 };
1531*/
1532static int
1533fuse_vnop_reclaim(struct vop_reclaim_args *ap)
1534{
1535 struct vnode *vp = ap->a_vp;
1537 struct thread *td = ap->a_td;
1536 struct thread *td = curthread;
1538 struct fuse_vnode_data *fvdat = VTOFUD(vp);
1539 struct fuse_filehandle *fufh, *fufh_tmp;
1540
1541 if (!fvdat) {
1542 panic("FUSE: no vnode data during recycling");
1543 }
1544 LIST_FOREACH_SAFE(fufh, &fvdat->handles, next, fufh_tmp) {
1545 printf("FUSE: vnode being reclaimed with open fufh "

--- 968 unchanged lines hidden ---
1537 struct fuse_vnode_data *fvdat = VTOFUD(vp);
1538 struct fuse_filehandle *fufh, *fufh_tmp;
1539
1540 if (!fvdat) {
1541 panic("FUSE: no vnode data during recycling");
1542 }
1543 LIST_FOREACH_SAFE(fufh, &fvdat->handles, next, fufh_tmp) {
1544 printf("FUSE: vnode being reclaimed with open fufh "

--- 968 unchanged lines hidden ---