Re: [Ocfs2-devel] [PATCH 28/28] quota: add extra inode count to dquot transfer functions

2017-06-19 Thread Jan Kara
On Mon 19-06-17 04:46:00, Tahsin Erdogan wrote: > >> I tried that approach by adding a "int get_inode_usage(struct inode > >> *inode, qsize_t *usage)" callback to dquot_operations. Unfortunately, > >> ext4 code that calculates the number of internal inodes > >> (ext4_xattr_inode_count()) is subject

Re: [Ocfs2-devel] [PATCH 28/28] quota: add extra inode count to dquot transfer functions

2017-06-19 Thread Jan Kara
On Fri 16-06-17 18:50:58, Tahsin Erdogan wrote: > On Thu, Jun 15, 2017 at 12:57 AM, Jan Kara wrote: > > Hum, rather handle this similarly to how we handle delalloc reserved space. > > Add a callback to dq_ops to get "inode usage" of an inode and then use it > > in dquot_transfer(), dquot_free_inod

Re: [Ocfs2-devel] [PATCH 28/28] quota: add extra inode count to dquot transfer functions

2017-06-15 Thread Jan Kara
On Wed 31-05-17 01:15:17, Tahsin Erdogan wrote: > Ext4 ea_inode feature allows storing xattr values in external inodes to > be able to store values that are bigger than a block in size. Ext4 also > has deduplication support for these type of inodes. With deduplication, > the actual storage waste is