diff options
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_dir2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2.c b/fs/xfs/libxfs/xfs_dir2.c index 2fb53a5c0a74..af0f9d171f8a 100644 --- a/fs/xfs/libxfs/xfs_dir2.c +++ b/fs/xfs/libxfs/xfs_dir2.c | |||
@@ -176,7 +176,7 @@ xfs_dir_isempty( | |||
176 | { | 176 | { |
177 | xfs_dir2_sf_hdr_t *sfp; | 177 | xfs_dir2_sf_hdr_t *sfp; |
178 | 178 | ||
179 | ASSERT(S_ISDIR(dp->i_d.di_mode)); | 179 | ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); |
180 | if (dp->i_d.di_size == 0) /* might happen during shutdown. */ | 180 | if (dp->i_d.di_size == 0) /* might happen during shutdown. */ |
181 | return 1; | 181 | return 1; |
182 | if (dp->i_d.di_size > XFS_IFORK_DSIZE(dp)) | 182 | if (dp->i_d.di_size > XFS_IFORK_DSIZE(dp)) |
@@ -231,7 +231,7 @@ xfs_dir_init( | |||
231 | struct xfs_da_args *args; | 231 | struct xfs_da_args *args; |
232 | int error; | 232 | int error; |
233 | 233 | ||
234 | ASSERT(S_ISDIR(dp->i_d.di_mode)); | 234 | ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); |
235 | error = xfs_dir_ino_validate(tp->t_mountp, pdp->i_ino); | 235 | error = xfs_dir_ino_validate(tp->t_mountp, pdp->i_ino); |
236 | if (error) | 236 | if (error) |
237 | return error; | 237 | return error; |
@@ -266,7 +266,7 @@ xfs_dir_createname( | |||
266 | int rval; | 266 | int rval; |
267 | int v; /* type-checking value */ | 267 | int v; /* type-checking value */ |
268 | 268 | ||
269 | ASSERT(S_ISDIR(dp->i_d.di_mode)); | 269 | ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); |
270 | if (inum) { | 270 | if (inum) { |
271 | rval = xfs_dir_ino_validate(tp->t_mountp, inum); | 271 | rval = xfs_dir_ino_validate(tp->t_mountp, inum); |
272 | if (rval) | 272 | if (rval) |
@@ -364,7 +364,7 @@ xfs_dir_lookup( | |||
364 | int v; /* type-checking value */ | 364 | int v; /* type-checking value */ |
365 | int lock_mode; | 365 | int lock_mode; |
366 | 366 | ||
367 | ASSERT(S_ISDIR(dp->i_d.di_mode)); | 367 | ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); |
368 | XFS_STATS_INC(dp->i_mount, xs_dir_lookup); | 368 | XFS_STATS_INC(dp->i_mount, xs_dir_lookup); |
369 | 369 | ||
370 | /* | 370 | /* |
@@ -443,7 +443,7 @@ xfs_dir_removename( | |||
443 | int rval; | 443 | int rval; |
444 | int v; /* type-checking value */ | 444 | int v; /* type-checking value */ |
445 | 445 | ||
446 | ASSERT(S_ISDIR(dp->i_d.di_mode)); | 446 | ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); |
447 | XFS_STATS_INC(dp->i_mount, xs_dir_remove); | 447 | XFS_STATS_INC(dp->i_mount, xs_dir_remove); |
448 | 448 | ||
449 | args = kmem_zalloc(sizeof(*args), KM_SLEEP | KM_NOFS); | 449 | args = kmem_zalloc(sizeof(*args), KM_SLEEP | KM_NOFS); |
@@ -505,7 +505,7 @@ xfs_dir_replace( | |||
505 | int rval; | 505 | int rval; |
506 | int v; /* type-checking value */ | 506 | int v; /* type-checking value */ |
507 | 507 | ||
508 | ASSERT(S_ISDIR(dp->i_d.di_mode)); | 508 | ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); |
509 | 509 | ||
510 | rval = xfs_dir_ino_validate(tp->t_mountp, inum); | 510 | rval = xfs_dir_ino_validate(tp->t_mountp, inum); |
511 | if (rval) | 511 | if (rval) |