]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/ext4/super.c
userns: Convert struct dquot dq_id to be a struct kqid
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 16 Sep 2012 10:56:19 +0000 (03:56 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 18 Sep 2012 08:01:41 +0000 (01:01 -0700)
commit4c376dcae892e5b5daf8576c864061d076d4e4dc
treedbb4dbc9422992a00f7b478e4254b4da922f7158
parentaca645a6a54e001e004f1f1e0eafd94f994bb1b3
userns: Convert struct dquot dq_id to be a struct kqid

Change struct dquot dq_id to a struct kqid and remove the now
unecessary dq_type.

Make minimal changes to dquot, quota_tree, quota_v1, quota_v2, ext3,
ext4, and ocfs2 to deal with the change in quota structures and
signatures.  The ocfs2 changes are larger than most because of the
extensive tracing throughout the ocfs2 quota code that prints out
dq_id.

quota_tree.c:get_index is modified to take a struct kqid instead of a
qid_t because all of it's callers pass in dquot->dq_id and it allows
me to introduce only a single conversion.

The rest of the changes are either just replacing dq_type with dq_id.type,
adding conversions to deal with the change in type and occassionally
adding qid_eq to allow quota id comparisons in a user namespace safe way.

Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Jan Kara <jack@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: Theodore Tso <tytso@mit.edu>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/ext3/super.c
fs/ext4/super.c
fs/ocfs2/quota_global.c
fs/ocfs2/quota_local.c
fs/quota/dquot.c
fs/quota/quota_tree.c
fs/quota/quota_v1.c
fs/quota/quota_v2.c
include/linux/quota.h