? unknown sender #
Message details and related content
Bill up container inodes allocation and free on ext4. Signed-off-by: Jie Liu <redacted> --- fs/ext4/ialloc.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
index 9f9acac..510fa41 100644
--- a/fs/ext4/ialloc.c
+++ b/fs/ext4/ialloc.c@@ -31,6 +31,8 @@ #include <trace/events/ext4.h> +#include "../ns_quotaops.h" + /* * ialloc.c contains the inodes allocation and deallocation routines */
@@ -233,6 +235,7 @@ void ext4_free_inode(handle_t *handle, struct inode *inode) dquot_initialize(inode); ext4_xattr_delete_inode(handle, inode); dquot_free_inode(inode); + ns_dquot_free_inode(inode); dquot_drop(inode); is_directory = S_ISDIR(inode->i_mode);
@@ -861,6 +864,10 @@ got: if (err) goto fail_drop; + err = ns_dquot_alloc_inode(inode); + if (err) + goto fail_drop; + err = ext4_init_acl(handle, inode, dir); if (err) goto fail_free_drop;
@@ -902,6 +909,7 @@ really_out: fail_free_drop: dquot_free_inode(inode); + ns_dquot_free_inode(inode); fail_drop: dquot_drop(inode);
--
1.7.9