diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2019-03-20 06:03:59 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-03-26 11:21:23 +0100 |
commit | df15a2a59d0b29d86e17140b83ed231adaded12f (patch) | |
tree | 205eee37333832a0ca306ee379312a07981c1099 /fs/quota | |
parent | ext2: Adjust the comment of function ext2_alloc_branch (diff) | |
download | linux-df15a2a59d0b29d86e17140b83ed231adaded12f.tar.xz linux-df15a2a59d0b29d86e17140b83ed231adaded12f.zip |
quota: code cleanup for __dquot_alloc_space()
Replace (flags & DQUOT_SPACE_RESERVE) with
variable reserve.
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/quota')
-rw-r--r-- | fs/quota/dquot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index fc20e06c56ba..00de508f9d2e 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -1663,7 +1663,7 @@ int __dquot_alloc_space(struct inode *inode, qsize_t number, int flags) for (cnt = 0; cnt < MAXQUOTAS; cnt++) { if (!dquots[cnt]) continue; - if (flags & DQUOT_SPACE_RESERVE) { + if (reserve) { ret = dquot_add_space(dquots[cnt], 0, number, flags, &warn[cnt]); } else { @@ -1676,7 +1676,7 @@ int __dquot_alloc_space(struct inode *inode, qsize_t number, int flags) if (!dquots[cnt]) continue; spin_lock(&dquots[cnt]->dq_dqb_lock); - if (flags & DQUOT_SPACE_RESERVE) { + if (reserve) { dquots[cnt]->dq_dqb.dqb_rsvspace -= number; } else { |