diff options
author | Jan Kara <jack@suse.cz> | 2014-09-25 18:36:14 +0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2014-11-10 12:06:09 +0300 |
commit | 2d0fa467915ed0c5957c992011b7f142a7dedf8e (patch) | |
tree | 49c4307171f15174f04d0b4f65d0030f2f4a41ad /include/linux/fs.h | |
parent | 17ef4fdd379dc7bcbdf46b2630d33958244d0053 (diff) | |
download | linux-2d0fa467915ed0c5957c992011b7f142a7dedf8e.tar.xz |
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>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index cf55a5483d40..8c093ad49522 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1591,6 +1591,7 @@ struct super_operations { #ifdef CONFIG_QUOTA ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t); ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t); + struct dquot **(*get_dquots)(struct inode *); #endif int (*bdev_try_to_free_page)(struct super_block*, struct page*, gfp_t); long (*nr_cached_objects)(struct super_block *, int); |