diff options
author | Brian Foster <bfoster@redhat.com> | 2018-08-01 10:20:35 -0400 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-08-03 02:05:14 -0400 |
commit | 9d9e6233859706875c392707efd6d516cfb764fb (patch) | |
tree | 5d4ae3417bb8a60eb3ebaf63eaf54f9374498189 /fs/xfs/libxfs/xfs_dir2.c | |
parent | c03edc9e49b6a3c1f4b27f505a04093ab333b245 (diff) |
xfs: fold dfops into the transaction
struct xfs_defer_ops has now been reduced to a single list_head. The
external dfops mechanism is unused and thus everywhere a (permanent)
transaction is accessible the associated dfops structure is as well.
Remove the xfs_defer_ops structure and fold the list_head into the
transaction. Also remove the last remnant of external dfops in
xfs_trans_dup().
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_dir2.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2.c b/fs/xfs/libxfs/xfs_dir2.c index 4ea1fddb126f..229152cd1a24 100644 --- a/fs/xfs/libxfs/xfs_dir2.c +++ b/fs/xfs/libxfs/xfs_dir2.c | |||
@@ -424,7 +424,6 @@ xfs_dir_removename( | |||
424 | int v; /* type-checking value */ | 424 | int v; /* type-checking value */ |
425 | 425 | ||
426 | ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); | 426 | ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); |
427 | ASSERT(tp->t_dfops); | ||
428 | XFS_STATS_INC(dp->i_mount, xs_dir_remove); | 427 | XFS_STATS_INC(dp->i_mount, xs_dir_remove); |
429 | 428 | ||
430 | args = kmem_zalloc(sizeof(*args), KM_SLEEP | KM_NOFS); | 429 | args = kmem_zalloc(sizeof(*args), KM_SLEEP | KM_NOFS); |
@@ -483,7 +482,6 @@ xfs_dir_replace( | |||
483 | int v; /* type-checking value */ | 482 | int v; /* type-checking value */ |
484 | 483 | ||
485 | ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); | 484 | ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); |
486 | ASSERT(tp->t_dfops); | ||
487 | 485 | ||
488 | rval = xfs_dir_ino_validate(tp->t_mountp, inum); | 486 | rval = xfs_dir_ino_validate(tp->t_mountp, inum); |
489 | if (rval) | 487 | if (rval) |