]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: reserve quota inode transaction space only when needed
authorKaixu Xia <kaixuxia@tencent.com>
Thu, 23 Apr 2020 04:54:28 +0000 (21:54 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 4 May 2020 16:03:14 +0000 (09:03 -0700)
commit695c483f1c1804c03c58237189b47f1c02c0aba3
tree8e8d8d2d8c0c37fea1d368f5630db4631d4fd617
parent24ba4c95aea21c1049080414a2abfdb822cd35ee
xfs: reserve quota inode transaction space only when needed

We share an inode between gquota and pquota with the older
superblock that doesn't have separate pquotino, and for the
need_alloc == false case we don't need to call xfs_dir_ialloc()
function, so add the check if reserved free disk blocks is
needed.

Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_qm.c