Re: [PATCH 2/2] ext4: fix __ext4_new_inode() journal credits calculation

2017-07-07 Thread Theodore Ts'o
On Wed, Jul 05, 2017 at 07:38:19PM -0700, Tahsin Erdogan wrote: > ea_inode feature allows creating extended attributes that are up to > 64k in size. Update __ext4_new_inode() to pick increased credit limits. > > To avoid overallocating too many journal credits, update > __ext4_xattr_set_credits()

[PATCH 2/2] ext4: fix __ext4_new_inode() journal credits calculation

2017-07-05 Thread Tahsin Erdogan
ea_inode feature allows creating extended attributes that are up to 64k in size. Update __ext4_new_inode() to pick increased credit limits. To avoid overallocating too many journal credits, update __ext4_xattr_set_credits() to make a distinction between xattr create vs update. This helps __ext4_ne