]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
quota: Propagate error from ->acquire_dquot()
authorJan Kara <jack@suse.cz>
Wed, 24 Jun 2015 16:07:02 +0000 (18:07 +0200)
committerJan Kara <jack@suse.com>
Thu, 23 Jul 2015 18:59:10 +0000 (20:59 +0200)
commit6184fc0b8dd76c6aedc7a26e93254993e14e52de
tree8d6946f82158c8de4ab67115eff3a02c064b343d
parentd725e66c06ab440032f49ef17e960896d0ec6d49
quota: Propagate error from ->acquire_dquot()

Currently when some error happened in ->acquire_dquot(), dqget() just
returned NULL. That was indistinguishable from a case when e.g. someone
run quotaoff and so was generally silently ignored. However
->acquire_dquot() can fail because of ENOSPC or EIO in which case user
should better know. So propagate error up from ->acquire_dquot properly.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/ocfs2/file.c
fs/ocfs2/quota_local.c
fs/quota/dquot.c
include/linux/quotaops.h