projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c110d4
)
fs/xfs: fix f_ffree value for statfs when project quota is set
author
Ye Yin
<dbyin@tencent.com>
Fri, 23 Nov 2018 17:55:18 +0000
(09:55 -0800)
committer
Darrick J. Wong
<darrick.wong@oracle.com>
Mon, 26 Nov 2018 23:01:37 +0000
(15:01 -0800)
When project is set, we should use inode limit minus the used count
Signed-off-by: Ye Yin <dbyin@tencent.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_qm_bhv.c
patch
|
blob
|
history
diff --git
a/fs/xfs/xfs_qm_bhv.c
b/fs/xfs/xfs_qm_bhv.c
index 73a1d77ec187c8958d09cc6fb13f4af3e0e61605..3091e4bc04efe1e6f4d9aa88ed7987a221f9bd78 100644
(file)
--- a/
fs/xfs/xfs_qm_bhv.c
+++ b/
fs/xfs/xfs_qm_bhv.c
@@
-40,7
+40,7
@@
xfs_fill_statvfs_from_dquot(
statp->f_files = limit;
statp->f_ffree =
(statp->f_files > dqp->q_res_icount) ?
- (statp->f_f
free
- dqp->q_res_icount) : 0;
+ (statp->f_f
iles
- dqp->q_res_icount) : 0;
}
}