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)
commit1e72c0f7c40e665d2ed40014750fdd2fa9968bcf
tree89d8ef6d7b822ac17699a3c51a1c59c654aaf676
parent6a6ada81e4ffc222bf7e54ea7503c7cc98b4f0d8
GFS2: Clean up gfs2_adjust_quota() and do_glock()

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>
fs/gfs2/quota.c