The NetBSD Project

CVS log for src/sys/miscfs/deadfs/dead_vfsops.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / miscfs / deadfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.13 / (download) - annotate - [select for diffs], Wed Oct 26 23:39:43 2022 UTC (16 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.12: +3 -4 lines
Diff to previous 1.12 (colored)

miscfs/deadfs/deadfs.h: New home for deadfs-related externs.

XXX regen sys/kern/vnode_if.c and the others

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jul 8 07:44:17 2022 UTC (19 months, 3 weeks ago) by hannken
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Make dead vfs ops "vfs_statvfs" and "vfs_vptofh" return EOPNOTSUPP.
Both operations may originate from (possible dead) vnodes.

Reported-by: syzbot+eceb203d44457742be3b@syzkaller.appspotmail.com

Revision 1.11 / (download) - annotate - [select for diffs], Sat Mar 19 13:53:32 2022 UTC (23 months, 1 week ago) by hannken
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Remove now unused VV_LOCKSWORK, all file systems support locking.

Remove unused predicates vn_locked() and vn_anylocked().

Welcome to 9.99.95

Revision 1.10 / (download) - annotate - [select for diffs], Sat Mar 19 13:52:11 2022 UTC (23 months, 1 week ago) by hannken
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Switch spec_vnodeop vector to real vnode locking, VV_LOCKSWORK now.

Revision 1.8.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:05 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Sync with HEAD

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:57 2019 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Synch with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jan 1 10:06:54 2019 UTC (5 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Add "void *extra" argument to vcache_new() so a file system may
pass more information about the file to create.

Welcome to 8.99.30

Revision 1.2.10.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:47 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.2.10.2: +43 -6 lines
Diff to previous 1.2.10.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

update from HEAD

Revision 1.2.12.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:08 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2.12.1: +4 -4 lines
Diff to previous 1.2.12.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.7.10.1 / (download) - annotate - [select for diffs], Fri Aug 25 05:46:46 2017 UTC (6 years, 6 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Pull up following revision(s) (requested by hannken in ticket #227):
	sys/sys/vnode_impl.h: revision 1.16
	sys/kern/vfs_vnode.c: revision 1.97
	sys/kern/vfs_vnode.c: revision 1.98
	sys/kern/vfs_mount.c: revision 1.67
	sys/miscfs/deadfs/dead_vfsops.c: revision 1.8
No need to cache anonymous device vnodes, they will never be looked up.
Set key to (dead_rootmount, 0, NULL) and add assertions.
--
Change forced unmount to revert open device vnodes to anonymous devices.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Aug 21 08:56:45 2017 UTC (6 years, 6 months ago) by hannken
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, nick-nhusb-base-20170825
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

No need to cache anonymous device vnodes, they will never be looked up.

Set key to (dead_rootmount, 0, NULL) and add assertions.

Revision 1.2.12.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:08 2015 UTC (8 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2: +45 -8 lines
Diff to previous 1.2 (colored)

Sync with HEAD

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jul 1 08:13:53 2015 UTC (8 years, 8 months ago) by hannken
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, netbsd-8-base, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.6: +4 -5 lines
Diff to previous 1.6 (colored)

Unfortunately MFS uses v_data of its anonymous device vnode so
it cannot be used as vcache key.  Use v_interlock as key ...

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jun 30 06:19:22 2015 UTC (8 years, 8 months ago) by hannken
Branch: MAIN
Changes since 1.5: +5 -4 lines
Diff to previous 1.5 (colored)

Redo previous again, v_specnode is invariant but not unique.

Set "vp->v_data = vp" and use v_data as key.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 29 16:48:20 2015 UTC (8 years, 8 months ago) by hannken
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Use the address of vp->v_specnode as vcache key.  It is invariant
over the lifetime of the vnode.

The previous worked by luck, it took the first sizeof(void *) bytes
of struct vnode as key.

Resolves CID 1308957: wrong sizeof()

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jun 23 10:42:34 2015 UTC (8 years, 8 months ago) by hannken
Branch: MAIN
Changes since 1.3: +31 -2 lines
Diff to previous 1.3 (colored)

Add a vfs_newvnode() method to deadfs and use it to create
anonymous device vnodes with bdevvp() and cdevvp().

Implement spec_inactive() and spec_reclaim() to handle these nodes.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jun 23 10:41:59 2015 UTC (8 years, 8 months ago) by hannken
Branch: MAIN
Changes since 1.2: +16 -8 lines
Diff to previous 1.2 (colored)

Use VFS_PROTOS() for deadfs.  Rename dead_mount to dead_rootmount.

Revision 1.2.10.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:30 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.2.10.1: +78 -0 lines
Diff to previous 1.2.10.1 (colored) to branchpoint 1.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.2.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:05 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.2.6.1: +78 -0 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:46:09 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.2.4.1: +78 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head

Revision 1.2.10.1, Sun Mar 23 15:21:16 2014 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.2: +0 -78 lines
FILE REMOVED

file dead_vfsops.c was added on branch tls-maxphys on 2014-08-20 00:04:30 +0000

Revision 1.2.6.1, Sun Mar 23 15:21:16 2014 UTC (9 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.2: +0 -78 lines
FILE REMOVED

file dead_vfsops.c was added on branch yamt-pagecache on 2014-05-22 11:41:05 +0000

Revision 1.2.4.1, Sun Mar 23 15:21:16 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.2: +0 -78 lines
FILE REMOVED

file dead_vfsops.c was added on branch rmind-smpnet on 2014-05-18 17:46:09 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 23 15:21:16 2014 UTC (9 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet, nick-nhusb
Changes since 1.1: +25 -27 lines
Diff to previous 1.1 (colored)

Change all vfsops to use C99 designated initializers.

No functional changes intended.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Feb 27 13:00:06 2014 UTC (10 years ago) by hannken
Branch: MAIN
CVS Tags: riastradh-drm2-base3

Currently dead vnodes still reside on the vnodelist of the file system
they have been removed from.

Create a "dead mount" that takes dead vnodes until they get freed.

Discussed on tech-kern.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>