Darrick J. Wong
7317a03df7
xfs: refactor inode ownership change transaction/inode/quota allocation idiom
...
For file ownership (uid, gid, prid) changes, create a new helper
xfs_trans_alloc_ichange that allocates a transaction and reserves the
appropriate amount of quota against that transction in preparation for a
change of user, group, or project id. Replace all the open-coded idioms
with a single call to this helper so that we can contain the retry loops
in the next patchset.
This changes the locking behavior for ichange transactions slightly.
Since tr_ichange does not have a permanent reservation and cannot roll,
we pass XFS_ILOCK_EXCL to ijoin so that the inode will be unlocked
automatically at commit time.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
2021-02-03 09:18:49 -08:00
..
2021-02-03 09:18:49 -08:00
2020-12-09 09:49:38 -08:00
2020-10-16 15:34:28 -07:00
2020-09-06 18:05:51 -07:00
2020-09-15 20:52:41 -07:00
2020-05-08 08:49:58 -07:00
2020-12-12 10:49:38 -08:00
2020-03-02 20:55:55 -08:00
2020-11-04 08:52:47 -08:00
2019-10-28 08:37:54 -07:00
2020-05-19 09:40:59 -07:00
2020-09-15 20:52:42 -07:00
2019-07-10 10:04:16 -07:00
2021-01-22 16:54:47 -08:00
2020-05-08 08:50:01 -07:00
2021-02-03 09:18:49 -08:00
2019-11-03 10:22:30 -08:00
2020-09-30 07:28:52 -07:00
2020-12-16 16:07:34 -08:00
2020-09-15 20:52:38 -07:00
2021-01-22 16:54:50 -08:00
2021-01-22 16:54:50 -08:00
2020-05-19 09:40:58 -07:00
2020-03-11 09:11:39 -07:00
2020-07-28 20:24:14 -07:00
2020-07-28 20:24:14 -07:00
2020-03-18 08:12:23 -07:00
2021-01-22 16:54:47 -08:00
2020-09-15 20:52:40 -07:00
2021-01-22 16:54:49 -08:00
2020-03-12 07:58:12 -07:00
2020-08-05 08:49:58 -07:00
2019-11-03 10:22:31 -08:00
2020-12-09 09:49:38 -08:00
2020-05-08 08:50:01 -07:00
2021-01-22 16:54:52 -08:00
2020-09-25 11:34:08 -07:00
2020-10-07 08:40:29 -07:00
2020-10-07 08:40:29 -07:00
2020-12-18 12:50:18 -08:00
2019-05-01 20:26:30 -07:00
2019-07-03 07:33:26 -07:00
2019-07-03 20:36:26 -07:00
2020-09-15 20:52:42 -07:00
2020-07-14 08:47:33 -07:00
2020-07-28 20:24:14 -07:00
2020-09-15 20:52:41 -07:00
2020-09-15 20:52:41 -07:00
2020-09-15 20:52:38 -07:00
2021-02-03 09:18:49 -08:00
2020-12-12 10:48:24 -08:00
2020-03-02 20:55:54 -08:00
2020-01-06 08:57:36 -08:00
2021-02-03 09:18:49 -08:00
2020-03-02 20:55:55 -08:00
2021-02-03 09:18:49 -08:00
2019-11-03 10:22:30 -08:00
2021-02-03 09:18:49 -08:00
2020-12-12 10:49:38 -08:00
2020-05-19 09:40:58 -07:00
2019-08-29 21:22:41 -07:00
2020-12-09 09:49:38 -08:00
2019-08-30 22:43:56 -07:00
2020-10-21 09:05:19 -07:00
2020-08-05 08:49:58 -07:00
2020-07-28 20:24:14 -07:00
2020-12-16 16:07:34 -08:00
2021-02-01 09:44:23 -08:00
2021-01-22 16:54:51 -08:00
2020-05-07 08:27:46 -07:00
2020-10-25 14:51:49 -07:00
2021-01-22 16:54:51 -08:00
2021-01-22 16:54:51 -08:00
2019-08-26 12:06:22 -07:00
2020-09-15 20:52:42 -07:00
2020-11-11 08:07:37 -08:00
2020-07-01 08:08:20 -06:00
2019-07-03 08:21:58 -07:00
2020-07-28 20:24:14 -07:00
2020-09-15 20:52:40 -07:00
2021-02-03 09:17:47 -08:00
2020-09-15 20:52:40 -07:00
2021-02-03 09:18:49 -08:00
2020-07-28 20:24:14 -07:00
2020-12-09 09:49:38 -08:00
2020-05-08 08:50:01 -07:00
2021-02-03 09:18:49 -08:00
2020-07-06 10:46:57 -07:00
2020-12-09 09:49:38 -08:00
2020-05-08 08:50:01 -07:00
2021-01-22 16:54:47 -08:00
2020-12-16 16:07:34 -08:00
2020-10-07 08:40:28 -07:00
2020-10-07 08:40:28 -07:00
2021-01-22 16:54:52 -08:00
2019-10-21 09:04:57 -07:00
2021-02-03 09:18:49 -08:00
2019-11-10 10:21:57 -08:00
2020-09-25 11:34:08 -07:00
2019-07-03 07:33:26 -07:00
2019-09-24 09:40:19 -07:00
2020-08-07 11:50:17 -07:00
2020-03-18 08:12:23 -07:00
2021-01-22 16:54:50 -08:00
2020-08-05 08:49:58 -07:00
2020-12-16 16:07:34 -08:00
2021-02-03 09:18:49 -08:00
2020-05-08 08:50:00 -07:00
2021-02-03 09:18:49 -08:00
2021-02-03 09:18:49 -08:00
2020-05-08 08:51:34 -07:00