]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
quota: Use function to provide i_dquot pointers
authorJan Kara <jack@suse.cz>
Thu, 25 Sep 2014 14:36:14 +0000 (16:36 +0200)
committerJan Kara <jack@suse.cz>
Mon, 10 Nov 2014 09:06:09 +0000 (10:06 +0100)
commit2d0fa467915ed0c5957c992011b7f142a7dedf8e
tree49c4307171f15174f04d0b4f65d0030f2f4a41ad
parent17ef4fdd379dc7bcbdf46b2630d33958244d0053
quota: Use function to provide i_dquot pointers

i_dquot array is used by relatively few filesystems (ext?, ocfs2, jfs,
reiserfs) so it is beneficial to move this array to fs-private part of
the inode. We cannot just pass quota pointers from filesystems to quota
functions because during quotaon and quotaoff we have to traverse list
of all inodes and manipulate i_dquot pointers for each inode. So we
provide a function which generic quota code can use to get pointer to
the i_dquot array from the filesystem.

Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c
include/linux/fs.h