Whamcloud - gitweb
quota: fix memory leak in quota_compare_and_update()
authorTheodore Ts'o <tytso@mit.edu>
Sat, 10 May 2014 21:29:18 +0000 (17:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 13 May 2014 14:12:57 +0000 (10:12 -0400)
commit4af2b156ffa2d50ebfc9207e667d18d5a7a1ae45
treecf2448f5e6d739323e6f1418f1203166a9f25ccb
parent68ba77caa72aa91eb9473e624657c16cda8c361d
quota: fix memory leak in quota_compare_and_update()

The quota_handle wasn't getting closed in quota_compare_and_update().
Fix this, and also make sure that quota_file_close() doesn't
unnecessarily modify the quota inode if it's not necessary.  Otherwise
e2fsck will claim that the file system is modified when it didn't need
to be.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Aditya Kali <adityakali@google.com>
lib/quota/mkquota.c
lib/quota/quotaio.c