]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc377fa50f487b8f3298db61b09e051d6a3123e21
tree6bfe6aa71c9326a4f636b1fdfbecc809fa1d96a2
parent67cf7468bcd1e3cb1d972b95546a5726aa549d82
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