]> err.no Git - linux-2.6/commit
[GFS2] Streamline quota lock/check for no-quota case
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 10 Mar 2008 15:34:50 +0000 (15:34 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 31 Mar 2008 09:41:36 +0000 (10:41 +0100)
commitd82661d96993ac4efc1d54259ea85ffcd9b8bec6
tree0a42b5a3ff34839673e0007fca4335f18078803a
parent860b25d4a913a00331d333f8e207a088c7a1b84a
[GFS2] Streamline quota lock/check for no-quota case

This patch streamlines the quota checking in the "no quota" case by
making the check inline in the calling function, thus reducing the
number of function calls. Eventually we might be able to remove the
checks from the gfs2_quota_lock() and gfs2_quota_check() functions, but
currently we can't as there are a very few places in the code which need
to call these functions directly still.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Abhijith Das <adas@redhat.com>
fs/gfs2/bmap.c
fs/gfs2/eattr.c
fs/gfs2/ops_address.c
fs/gfs2/ops_file.c
fs/gfs2/ops_inode.c
fs/gfs2/quota.h