]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
UBUNTU: SAUCE: quota: Convert ids relative to s_user_ns
authorSeth Forshee <seth.forshee@canonical.com>
Fri, 6 Feb 2015 21:02:57 +0000 (15:02 -0600)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:19:09 +0000 (10:19 +0100)
commit953175593a8da5312ee132ed0592b31a5d1a5cd2
treee04c5df14f0cb20fac4978a7ae2d0bc95b24d9b6
parent04ff0dd5a0fdf923f38da1cb1a6d1daae2784086
UBUNTU: SAUCE: quota: Convert ids relative to s_user_ns

When dealing with mounts from user namespaces quota user ids must
be translated relative to s_user_ns, especially when they will be
stored on disk. For purposes of the in-kernel hash table using
init_user_ns is still okay and may help reduce hash collisions,
so continue using init_user_ns there.

These changes introduce the possibility that the conversion
operations in struct qtree_fmt_operations could fail if an id
cannot be legitimately converted. Change these operations to
return int rather than void, and update the callers to handle
failures.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/ocfs2/quota_global.c
fs/quota/dquot.c
fs/quota/quota_tree.c
fs/quota/quota_v1.c
fs/quota/quota_v2.c
include/linux/dqblk_qtree.h