From owner-freebsd-fs@freebsd.org Fri Jul 10 23:08:11 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 33ADD997FED for ; Fri, 10 Jul 2015 23:08:11 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C54213AB; Fri, 10 Jul 2015 23:08:10 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by wgjx7 with SMTP id x7so259564097wgj.2; Fri, 10 Jul 2015 16:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=sdeUlmmrlzDm05mO+XvLPvykROOxIsMwYKHQ/h1oJTs=; b=oRI8MlHqeEVgeSBWN/frEJ5xMc5H76icjY/i7CSpeavf0fCxwy1o+w+I8ycaWhvNeN aF9pnTmXTPq583fOlApl8mZASl10i2lQ+RfWaha7kd3CJUiaZzd6Rus2h5IW0Mgh9UkG /RS6Uen60ZYmaDxYYnvAnpx4nFCT72InTHypDNVJ1GEoQYqQVxQFN0X0OCQTAAv7MBWl 4BUlSi2kmxXOkRJtFXgTH8TDEYRVpqkJg9aXzk72F9o55u5b20eBFA+NLMJB3qQz/drG wXeaerPYKt68bV/j1x4AQ3MTv5iT5ACCZqrE+Gy1ETwmin7OOkrByUTpBqMv8qyICp5J XqXw== X-Received: by 10.180.82.230 with SMTP id l6mr1890768wiy.61.1436569688214; Fri, 10 Jul 2015 16:08:08 -0700 (PDT) Received: from localhost.localdomain (ip-89-102-11-63.net.upcbroadband.cz. [89.102.11.63]) by smtp.gmail.com with ESMTPSA id se11sm1052887wic.2.2015.07.10.16.08.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jul 2015 16:08:07 -0700 (PDT) From: Mateusz Guzik To: kib@freebsd.org Cc: freebsd-fs@freebsd.org Subject: [PATCH 0/2] start consolidatin code manipulating fd_*dir vnodes Date: Sat, 11 Jul 2015 01:08:02 +0200 Message-Id: <1436569684-3939-1-git-send-email-mjguzik@gmail.com> X-Mailer: git-send-email 2.4.3 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jul 2015 23:08:11 -0000 From: Mateusz Guzik Primary purpose is to ease future work implementing a copy-on-write struct for fd_*dir vnodes. IMHO even if that idea turns out to be bad/rejected after all, these patches provide a cleanup which should be done regardless, especially the second one. It can be modified later to warn, and eventually panic, as the condition it tests for should not realistically be present. Mateusz Guzik (2): Move chdir/chroot-related fdp manipulation to kern_descrip.c Create a dedicated function for ensuring that cdir and rdir are populated. sys/cam/ctl/ctl_backend_block.c | 13 +-- .../compat/opensolaris/kern/opensolaris_kobj.c | 13 +-- sys/cddl/compat/opensolaris/sys/vnode.h | 13 +-- sys/compat/ndis/subr_ndis.c | 5 +- sys/compat/svr4/svr4_misc.c | 2 +- sys/dev/xen/blkback/blkback.c | 13 +-- sys/kern/kern_descrip.c | 107 +++++++++++++++++++++ sys/kern/kern_jail.c | 2 +- sys/kern/subr_firmware.c | 13 +-- sys/kern/vfs_syscalls.c | 96 +----------------- sys/sys/filedesc.h | 5 + sys/sys/vnode.h | 1 - sys/ufs/ffs/ffs_alloc.c | 10 +- 13 files changed, 126 insertions(+), 167 deletions(-) -- 2.4.5