]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
GFS2: Get rid of dead code in inode_go_demote_ok
authorBob Peterson <rpeterso@redhat.com>
Fri, 1 Apr 2016 17:18:38 +0000 (13:18 -0400)
committerBob Peterson <rpeterso@redhat.com>
Tue, 5 Apr 2016 15:59:18 +0000 (11:59 -0400)
commit73cc86252bd8a547349d2856497eceaf4f2d1766
tree6dda7db9bc8ed1be8e252219e58b1f84539a6302
parent3e11e530415027a57936545957126aff49267b76
GFS2: Get rid of dead code in inode_go_demote_ok

Function inode_go_demote_ok had some code that was only executed
if gl_holders was not empty. However, if gl_holders was not empty,
the only caller, demote_ok(), returns before inode_go_demote_ok
would ever be called. Therefore, it's dead code, so I removed it.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glops.c