quota: check quota type in early stage
authorChengguang Xu <cgxu519@mykernel.net>
Tue, 8 Oct 2019 14:50:59 +0000 (22:50 +0800)
committerJan Kara <jack@suse.cz>
Tue, 8 Oct 2019 15:26:18 +0000 (17:26 +0200)
commita6810312b835ed927edaef0e96217c02084c7f4f
tree58db19afa3c0d4c9198a643998e07b09c782467b
parent24fc755f56b15bf3215c0d0b8b62d7204f369bab
quota: check quota type in early stage

Check quota type in early stage so we can avoid many
unncessary operations when the type is wrong.

Link: https://lore.kernel.org/r/20191008145059.21402-1-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/quota.c