]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: detach dquots from inode if we don't need to inactivate it
authorDarrick J. Wong <djwong@kernel.org>
Fri, 6 Aug 2021 18:05:39 +0000 (11:05 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 6 Aug 2021 18:05:39 +0000 (11:05 -0700)
commit25818959524a2b5bbd93de165e7f41ad1627095a
tree6f84614bb99e565466b9e83943bace936c3d1f25
parent224cb4a0e741227fd87a2f0a5fe54be592d497e6
xfs: detach dquots from inode if we don't need to inactivate it

If we don't need to inactivate an inode, we can detach the dquots and
move on to reclamation.  This isn't strictly required here; it's a
preparation patch for deferred inactivation per reviewer request[1] to
move the creation of xfs_inode_needs_inactivation into a separate
change.  Eventually this !need_inactive chunk will turn into the code
path for inodes that skip xfs_inactive and go straight to memory
reclaim.

[1] https://lore.kernel.org/linux-xfs/20210609012838.GW2945738@locust/T/#mca6d958521cb88bbc1bfe1a30767203328d410b5
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_icache.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h