GFS2: When adding a new dir entry, inc link count if it is a subdir
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 9 May 2011 12:30:08 +0000 (13:30 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 9 May 2011 15:43:53 +0000 (16:43 +0100)
commit3d6ecb7d16fd4248fce58387a982a0756ad3fcc2
treeb988b57c8a46fcfabe3738ccdb8982d67cd24c97
parent855d23ce2665c56437bd88fa6a0d45b6713bd194
GFS2: When adding a new dir entry, inc link count if it is a subdir

This adds an increment of the link count when we add a new directory
entry, if that entry is itself a directory. This means that we no
longer need separate code to perform this operation.

Now that both adding and removing directory entries automatically
update the parent directory's link count if required, that makes
the code shorter and simpler than before.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/dir.c
fs/gfs2/dir.h
fs/gfs2/inode.c
fs/gfs2/inode.h
fs/gfs2/ops_inode.c
This page took 0.04367 seconds and 5 git commands to generate.