]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Introduce qd2index
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 1 Feb 2013 02:33:38 +0000 (18:33 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Feb 2013 14:15:03 +0000 (06:15 -0800)
commit3d0f40df8e0e2011252ef0739b5dd016a7dfa4bc
treeaa6cd3c4349c6268d68f93c2535818b664511ac5
parent8bf327b36e42cbeeb9d09fa34d0e0830095b265f
gfs2: Introduce qd2index

Both qd_alloc and qd2offset perform the exact same computation
to get an index from a gfs2_quota_data.   Make life a little
simpler and factor out this index computation.

Cc: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/gfs2/quota.c