GFS2: Make two similar quota code fragments into a function
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 4 Oct 2013 10:14:46 +0000 (11:14 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 4 Oct 2013 10:14:46 +0000 (11:14 +0100)
commit1bf59bf6ded8411058b4c9acc45d9dd8d6965464
treeaa53c3615dcd8c7b6d65aaa4f1c40a9e9e1ebb33
parentbef292a72daf215c00aa20f68603de181afbb4d3
GFS2: Make two similar quota code fragments into a function

There should be no functional change bar the removal of a
test of the MS_READONLY flag which would never be reachable.
This merges the common code from qd_fish and qd_trylock into
a single function and calls it from both those places.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Abhijith Das <adas@redhat.com>
fs/gfs2/quota.c