GFS2: Remove dirent_first() function
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 6 Nov 2009 11:06:37 +0000 (11:06 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 3 Dec 2009 11:57:23 +0000 (11:57 +0000)
commit1579343a73e32b5886e186e8f3e4db85e420ed3f
tree6bfe6aa71c9326a4f636b1fdfbecc809fa1d96a2
parentcdcfde62dac64c86ff34e483c595d568a252c433
GFS2: Remove dirent_first() function

This function only had one caller left, and that caller only
called it for leaf blocks, hence one branch of the "if" was
never taken. In addition the call to get_left had already
verified the metadata type, so the function can be reduced
to a single line of code in its caller.

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