]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit59942b967da29799f5705e05d7b9f4d7cab302d2
tree89d8ef6d7b822ac17699a3c51a1c59c654aaf676
parentaa3ca6970db0dcf480fe90f0aaa64d12d83d1b28
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