]> Pileus Git - ~andy/linux/commit
GFS2: Remember directory insert point
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 6 Jan 2014 12:49:43 +0000 (12:49 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 6 Jan 2014 12:49:43 +0000 (12:49 +0000)
commit2b47dad866d04f14c328f888ba5406057b8c7d33
tree9eb66c086c2e49080234e0a9a1014624354ebea3
parent534cf9ca553953e4c12fa5f0d23e543f9a6ccbaf
GFS2: Remember directory insert point

When we look to see if there is enough space to add a dir
entry without allocation, we have then been repeating the
same search later when we do the actual insertion. This
patch caches the details of the location in the gfs2_diradd
structure, so that we do not have to repeat the search.

This will provide a performance improvement which will be
greater as the size of the directory increases.

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