aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-09-25 10:36:14 -0400
committerJan Kara <jack@suse.cz>2014-11-10 04:06:09 -0500
commit2d0fa467915ed0c5957c992011b7f142a7dedf8e (patch)
tree49c4307171f15174f04d0b4f65d0030f2f4a41ad /include/linux
parent17ef4fdd379dc7bcbdf46b2630d33958244d0053 (diff)
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')
-rw-r--r--include/linux/fs.h1
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 {
1591#ifdef CONFIG_QUOTA 1591#ifdef CONFIG_QUOTA
1592 ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t); 1592 ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t);
1593 ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t); 1593 ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t);
1594 struct dquot **(*get_dquots)(struct inode *);
1594#endif 1595#endif
1595 int (*bdev_try_to_free_page)(struct super_block*, struct page*, gfp_t); 1596 int (*bdev_try_to_free_page)(struct super_block*, struct page*, gfp_t);
1596 long (*nr_cached_objects)(struct super_block *, int); 1597 long (*nr_cached_objects)(struct super_block *, int);