From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Mon, 9 May 2011 17:32:21 +0100 Subject: [Cluster-devel] GFS2: Inode/link count patch set Message-ID: <1304958749-15194-1-git-send-email-swhiteho@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Here are a bunch of patches designed to clean up the way in which GFS2 deals with link counts and to unify the inode code. The major features are: o Approx 200 lines of code less after these patches o Merged rmdir and unlink code (since it was nearly identical anyway) o Cleaned up link count handling for mkdir/rmdir o All inode code is in inode.c after this patch set (inode.c code is moved to various places, ops_inode.c is renamed as inode.c) I've done a bit of testing with ln, mv, touch, mkdir, rmdir etc and so far it seems to be holding up ok. I've been checking the link counts at each step to ensure that they are correct and so far that looks good too. It should be easier to understand the code after this change since we now update the link counts of directories at the point at which subdirectory names are added and removed from them, rather than doing it as a separate operation as we used to do. So it should be more efficient from a cpu time PoV, although I've not tried to measure that yet. Steve.