]> asedeno.scripts.mit.edu Git - linux.git/commit
GFS2: Add directory addition info structure
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 6 Jan 2014 11:28:41 +0000 (11:28 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 6 Jan 2014 11:28:41 +0000 (11:28 +0000)
commit3c1c0ae1db74b1f3e606f42158b5dadd89105c1f
treea3731a3e3ff2d6e76a3411e55a7de6749b3b129c
parent70d4ee94b370c5ef54d0870600f16bd92d18013c
GFS2: Add directory addition info structure

The intent is that this structure will hold the information
required when adding entries to a directory (linking). To
start with, it will contain only the number of blocks which
are required to link the new entry into the directory. The
current calculation returns either 0 or the maximim number of
blocks that can ever be requested by such a transaction.

The intent is that in a later patch, we can update the dir
code to calculate this value more accurately. In addition
further patches will also add further fields to the new
structure to increase its utility.

In addition this patch fixes a bug where the link used during
inode creation was adding requesting too many blocks in
some cases. This is harmless unless the fs is close to being
full.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/dir.c
fs/gfs2/dir.h
fs/gfs2/inode.c