]> git.baikalelectronics.ru Git - kernel.git/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)
commit2819b5e87b7fd792b132fd993174298e86c27d83
tree9eb66c086c2e49080234e0a9a1014624354ebea3
parent3f7c0126cf526145ec070bc6da10dc501591bb3e
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