]> git.baikalelectronics.ru Git - kernel.git/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)
commitb4d9add987bb45d16af536a948277ea22185d300
tree0a42b5a3ff34839673e0007fca4335f18078803a
parent2e4e50b7932e2b147bceccb710fb58a4bb776c75
[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