GFS2: Clean up gfs2_adjust_quota() and do_glock()
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 15 Sep 2009 19:42:56 +0000 (20:42 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 3 Dec 2009 11:51:05 +0000 (11:51 +0000)
Both of these functions contained confusing and in one case
duplicate code. This patch adds a new check in do_glock()
so that we report -ENOENT if we are asked to sync a quota
entry which doesn't exist. Due to the previous patch this is
now reported correctly to userspace.

Also there are a few new comments, and I hope that the code
is easier to understand now.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

No differences found