summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2013-03-20 17:57:00 +0000
committermckusick <mckusick@FreeBSD.org>2013-03-20 17:57:00 +0000
commit9904f3d96892171a40469b83d51181e130737660 (patch)
tree3142bd0a78d267ce0b86f3c2972bc8ca6b0764c0 /sys/kern/vfs_bio.c
parenta88f1a3d131b117c073d9babaa2cf03d4b2d232a (diff)
downloadFreeBSD-src-9904f3d96892171a40469b83d51181e130737660.zip
FreeBSD-src-9904f3d96892171a40469b83d51181e130737660.tar.gz
When renaming a directory from one parent directory to another,
we need to call ufs_checkpath() to walk from our new location to the root of the filesystem to ensure that we do not encounter ourselves along the way. Until now, we accomplished this by reading the ".." entries of each directory in our path until we reached the root (or encountered an error). This change tries to avoid the I/O of reading the ".." entries by first looking them up in the name cache and only doing the I/O when the name cache lookup fails. Reviewed by: kib Tested by: Peter Holm MFC after: 4 weeks
Diffstat (limited to 'sys/kern/vfs_bio.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud