diff options
author | Christoph Hellwig <hch@sgi.com> | 2005-06-21 01:36:00 -0400 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-06-21 01:36:00 -0400 |
commit | 4372d6e10349d4e8b012588f86f15c740c73a7c4 (patch) | |
tree | 4ca00eae1d6b4eca6a4c19f1846e7cecbe3cdb09 /fs | |
parent | cf9937c6c6c7edb6650411d1cf3cb57f072b1277 (diff) |
[XFS] Remove dead code. Patch from Adrian Bunk
SGI-PV: 936255
SGI-Modid: xfs-linux:xfs-kern:192759a
Signed-off-by: Christoph Hellwig <hch@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/quota/xfs_dquot.c | 62 | ||||
-rw-r--r-- | fs/xfs/quota/xfs_dquot.h | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_bmap_btree.c | 14 | ||||
-rw-r--r-- | fs/xfs/xfs_bmap_btree.h | 8 | ||||
-rw-r--r-- | fs/xfs/xfs_fsops.c | 26 | ||||
-rw-r--r-- | fs/xfs/xfs_inode.c | 45 | ||||
-rw-r--r-- | fs/xfs/xfs_rename.c | 18 | ||||
-rw-r--r-- | fs/xfs/xfs_trans.c | 19 | ||||
-rw-r--r-- | fs/xfs/xfs_trans.h | 3 | ||||
-rw-r--r-- | fs/xfs/xfs_trans_inode.c | 18 |
10 files changed, 0 insertions, 214 deletions
diff --git a/fs/xfs/quota/xfs_dquot.c b/fs/xfs/quota/xfs_dquot.c index 740d20d33187..c961ef7d847c 100644 --- a/fs/xfs/quota/xfs_dquot.c +++ b/fs/xfs/quota/xfs_dquot.c | |||
@@ -371,68 +371,6 @@ xfs_qm_adjust_dqtimers( | |||
371 | } | 371 | } |
372 | 372 | ||
373 | /* | 373 | /* |
374 | * Increment or reset warnings of a given dquot. | ||
375 | */ | ||
376 | int | ||
377 | xfs_qm_dqwarn( | ||
378 | xfs_disk_dquot_t *d, | ||
379 | uint flags) | ||
380 | { | ||
381 | int warned; | ||
382 | |||
383 | /* | ||
384 | * root's limits are not real limits. | ||
385 | */ | ||
386 | if (!d->d_id) | ||
387 | return (0); | ||
388 | |||
389 | warned = 0; | ||
390 | if (INT_GET(d->d_blk_softlimit, ARCH_CONVERT) && | ||
391 | (INT_GET(d->d_bcount, ARCH_CONVERT) >= | ||
392 | INT_GET(d->d_blk_softlimit, ARCH_CONVERT))) { | ||
393 | if (flags & XFS_QMOPT_DOWARN) { | ||
394 | INT_MOD(d->d_bwarns, ARCH_CONVERT, +1); | ||
395 | warned++; | ||
396 | } | ||
397 | } else { | ||
398 | if (!d->d_blk_softlimit || | ||
399 | (INT_GET(d->d_bcount, ARCH_CONVERT) < | ||
400 | INT_GET(d->d_blk_softlimit, ARCH_CONVERT))) { | ||
401 | d->d_bwarns = 0; | ||
402 | } | ||
403 | } | ||
404 | |||
405 | if (INT_GET(d->d_ino_softlimit, ARCH_CONVERT) > 0 && | ||
406 | (INT_GET(d->d_icount, ARCH_CONVERT) >= | ||
407 | INT_GET(d->d_ino_softlimit, ARCH_CONVERT))) { | ||
408 | if (flags & XFS_QMOPT_DOWARN) { | ||
409 | INT_MOD(d->d_iwarns, ARCH_CONVERT, +1); | ||
410 | warned++; | ||
411 | } | ||
412 | } else { | ||
413 | if (!d->d_ino_softlimit || | ||
414 | (INT_GET(d->d_icount, ARCH_CONVERT) < | ||
415 | INT_GET(d->d_ino_softlimit, ARCH_CONVERT))) { | ||
416 | d->d_iwarns = 0; | ||
417 | } | ||
418 | } | ||
419 | #ifdef QUOTADEBUG | ||
420 | if (INT_GET(d->d_iwarns, ARCH_CONVERT)) | ||
421 | cmn_err(CE_DEBUG, | ||
422 | "--------@@Inode warnings running : %Lu >= %Lu", | ||
423 | INT_GET(d->d_icount, ARCH_CONVERT), | ||
424 | INT_GET(d->d_ino_softlimit, ARCH_CONVERT)); | ||
425 | if (INT_GET(d->d_bwarns, ARCH_CONVERT)) | ||
426 | cmn_err(CE_DEBUG, | ||
427 | "--------@@Blks warnings running : %Lu >= %Lu", | ||
428 | INT_GET(d->d_bcount, ARCH_CONVERT), | ||
429 | INT_GET(d->d_blk_softlimit, ARCH_CONVERT)); | ||
430 | #endif | ||
431 | return (warned); | ||
432 | } | ||
433 | |||
434 | |||
435 | /* | ||
436 | * initialize a buffer full of dquots and log the whole thing | 374 | * initialize a buffer full of dquots and log the whole thing |
437 | */ | 375 | */ |
438 | STATIC void | 376 | STATIC void |
diff --git a/fs/xfs/quota/xfs_dquot.h b/fs/xfs/quota/xfs_dquot.h index 0c3fe3175baa..35aeeafe4799 100644 --- a/fs/xfs/quota/xfs_dquot.h +++ b/fs/xfs/quota/xfs_dquot.h | |||
@@ -211,7 +211,6 @@ extern void xfs_qm_adjust_dqtimers(xfs_mount_t *, | |||
211 | xfs_disk_dquot_t *); | 211 | xfs_disk_dquot_t *); |
212 | extern void xfs_qm_adjust_dqlimits(xfs_mount_t *, | 212 | extern void xfs_qm_adjust_dqlimits(xfs_mount_t *, |
213 | xfs_disk_dquot_t *); | 213 | xfs_disk_dquot_t *); |
214 | extern int xfs_qm_dqwarn(xfs_disk_dquot_t *, uint); | ||
215 | extern int xfs_qm_dqget(xfs_mount_t *, xfs_inode_t *, | 214 | extern int xfs_qm_dqget(xfs_mount_t *, xfs_inode_t *, |
216 | xfs_dqid_t, uint, uint, xfs_dquot_t **); | 215 | xfs_dqid_t, uint, uint, xfs_dquot_t **); |
217 | extern void xfs_qm_dqput(xfs_dquot_t *); | 216 | extern void xfs_qm_dqput(xfs_dquot_t *); |
diff --git a/fs/xfs/xfs_bmap_btree.c b/fs/xfs/xfs_bmap_btree.c index 163305a79fcc..09c413576ba8 100644 --- a/fs/xfs/xfs_bmap_btree.c +++ b/fs/xfs/xfs_bmap_btree.c | |||
@@ -2331,20 +2331,6 @@ xfs_bmbt_lookup_ge( | |||
2331 | return xfs_bmbt_lookup(cur, XFS_LOOKUP_GE, stat); | 2331 | return xfs_bmbt_lookup(cur, XFS_LOOKUP_GE, stat); |
2332 | } | 2332 | } |
2333 | 2333 | ||
2334 | int /* error */ | ||
2335 | xfs_bmbt_lookup_le( | ||
2336 | xfs_btree_cur_t *cur, | ||
2337 | xfs_fileoff_t off, | ||
2338 | xfs_fsblock_t bno, | ||
2339 | xfs_filblks_t len, | ||
2340 | int *stat) /* success/failure */ | ||
2341 | { | ||
2342 | cur->bc_rec.b.br_startoff = off; | ||
2343 | cur->bc_rec.b.br_startblock = bno; | ||
2344 | cur->bc_rec.b.br_blockcount = len; | ||
2345 | return xfs_bmbt_lookup(cur, XFS_LOOKUP_LE, stat); | ||
2346 | } | ||
2347 | |||
2348 | /* | 2334 | /* |
2349 | * Give the bmap btree a new root block. Copy the old broot contents | 2335 | * Give the bmap btree a new root block. Copy the old broot contents |
2350 | * down into a real block and make the broot point to it. | 2336 | * down into a real block and make the broot point to it. |
diff --git a/fs/xfs/xfs_bmap_btree.h b/fs/xfs/xfs_bmap_btree.h index 843ff12b4bf2..0a40cf126c28 100644 --- a/fs/xfs/xfs_bmap_btree.h +++ b/fs/xfs/xfs_bmap_btree.h | |||
@@ -580,14 +580,6 @@ xfs_bmbt_lookup_ge( | |||
580 | xfs_filblks_t, | 580 | xfs_filblks_t, |
581 | int *); | 581 | int *); |
582 | 582 | ||
583 | int | ||
584 | xfs_bmbt_lookup_le( | ||
585 | struct xfs_btree_cur *, | ||
586 | xfs_fileoff_t, | ||
587 | xfs_fsblock_t, | ||
588 | xfs_filblks_t, | ||
589 | int *); | ||
590 | |||
591 | /* | 583 | /* |
592 | * Give the bmap btree a new root block. Copy the old broot contents | 584 | * Give the bmap btree a new root block. Copy the old broot contents |
593 | * down into a real block and make the broot point to it. | 585 | * down into a real block and make the broot point to it. |
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c index 21213057c27f..ca535d613190 100644 --- a/fs/xfs/xfs_fsops.c +++ b/fs/xfs/xfs_fsops.c | |||
@@ -559,32 +559,6 @@ xfs_reserve_blocks( | |||
559 | return(0); | 559 | return(0); |
560 | } | 560 | } |
561 | 561 | ||
562 | void | ||
563 | xfs_fs_log_dummy(xfs_mount_t *mp) | ||
564 | { | ||
565 | xfs_trans_t *tp; | ||
566 | xfs_inode_t *ip; | ||
567 | |||
568 | |||
569 | tp = _xfs_trans_alloc(mp, XFS_TRANS_DUMMY1); | ||
570 | atomic_inc(&mp->m_active_trans); | ||
571 | if (xfs_trans_reserve(tp, 0, XFS_ICHANGE_LOG_RES(mp), 0, 0, 0)) { | ||
572 | xfs_trans_cancel(tp, 0); | ||
573 | return; | ||
574 | } | ||
575 | |||
576 | ip = mp->m_rootip; | ||
577 | xfs_ilock(ip, XFS_ILOCK_EXCL); | ||
578 | |||
579 | xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); | ||
580 | xfs_trans_ihold(tp, ip); | ||
581 | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); | ||
582 | xfs_trans_set_sync(tp); | ||
583 | xfs_trans_commit(tp, 0, NULL); | ||
584 | |||
585 | xfs_iunlock(ip, XFS_ILOCK_EXCL); | ||
586 | } | ||
587 | |||
588 | int | 562 | int |
589 | xfs_fs_goingdown( | 563 | xfs_fs_goingdown( |
590 | xfs_mount_t *mp, | 564 | xfs_mount_t *mp, |
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index bc8c8c7f9039..e8274d6b7237 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -146,51 +146,6 @@ xfs_inobp_check( | |||
146 | #endif | 146 | #endif |
147 | 147 | ||
148 | /* | 148 | /* |
149 | * called from bwrite on xfs inode buffers | ||
150 | */ | ||
151 | void | ||
152 | xfs_inobp_bwcheck(xfs_buf_t *bp) | ||
153 | { | ||
154 | xfs_mount_t *mp; | ||
155 | int i; | ||
156 | int j; | ||
157 | xfs_dinode_t *dip; | ||
158 | |||
159 | ASSERT(XFS_BUF_FSPRIVATE3(bp, void *) != NULL); | ||
160 | |||
161 | mp = XFS_BUF_FSPRIVATE3(bp, xfs_mount_t *); | ||
162 | |||
163 | |||
164 | j = mp->m_inode_cluster_size >> mp->m_sb.sb_inodelog; | ||
165 | |||
166 | for (i = 0; i < j; i++) { | ||
167 | dip = (xfs_dinode_t *) xfs_buf_offset(bp, | ||
168 | i * mp->m_sb.sb_inodesize); | ||
169 | if (INT_GET(dip->di_core.di_magic, ARCH_CONVERT) != XFS_DINODE_MAGIC) { | ||
170 | cmn_err(CE_WARN, | ||
171 | "Bad magic # 0x%x in XFS inode buffer 0x%Lx, starting blockno %Ld, offset 0x%x", | ||
172 | INT_GET(dip->di_core.di_magic, ARCH_CONVERT), | ||
173 | (__uint64_t)(__psunsigned_t) bp, | ||
174 | (__int64_t) XFS_BUF_ADDR(bp), | ||
175 | xfs_buf_offset(bp, i * mp->m_sb.sb_inodesize)); | ||
176 | xfs_fs_cmn_err(CE_WARN, mp, | ||
177 | "corrupt, unmount and run xfs_repair"); | ||
178 | } | ||
179 | if (!dip->di_next_unlinked) { | ||
180 | cmn_err(CE_WARN, | ||
181 | "Bad next_unlinked field (0) in XFS inode buffer 0x%p, starting blockno %Ld, offset 0x%x", | ||
182 | (__uint64_t)(__psunsigned_t) bp, | ||
183 | (__int64_t) XFS_BUF_ADDR(bp), | ||
184 | xfs_buf_offset(bp, i * mp->m_sb.sb_inodesize)); | ||
185 | xfs_fs_cmn_err(CE_WARN, mp, | ||
186 | "corrupt, unmount and run xfs_repair"); | ||
187 | } | ||
188 | } | ||
189 | |||
190 | return; | ||
191 | } | ||
192 | |||
193 | /* | ||
194 | * This routine is called to map an inode number within a file | 149 | * This routine is called to map an inode number within a file |
195 | * system to the buffer containing the on-disk version of the | 150 | * system to the buffer containing the on-disk version of the |
196 | * inode. It returns a pointer to the buffer containing the | 151 | * inode. It returns a pointer to the buffer containing the |
diff --git a/fs/xfs/xfs_rename.c b/fs/xfs/xfs_rename.c index cb13f9a1d45b..23b48ac1cb7e 100644 --- a/fs/xfs/xfs_rename.c +++ b/fs/xfs/xfs_rename.c | |||
@@ -234,9 +234,6 @@ xfs_lock_for_rename( | |||
234 | return 0; | 234 | return 0; |
235 | } | 235 | } |
236 | 236 | ||
237 | |||
238 | int rename_which_error_return = 0; | ||
239 | |||
240 | /* | 237 | /* |
241 | * xfs_rename | 238 | * xfs_rename |
242 | */ | 239 | */ |
@@ -316,7 +313,6 @@ xfs_rename( | |||
316 | &num_inodes); | 313 | &num_inodes); |
317 | 314 | ||
318 | if (error) { | 315 | if (error) { |
319 | rename_which_error_return = __LINE__; | ||
320 | /* | 316 | /* |
321 | * We have nothing locked, no inode references, and | 317 | * We have nothing locked, no inode references, and |
322 | * no transaction, so just get out. | 318 | * no transaction, so just get out. |
@@ -332,7 +328,6 @@ xfs_rename( | |||
332 | */ | 328 | */ |
333 | if (target_ip == NULL && (src_dp != target_dp) && | 329 | if (target_ip == NULL && (src_dp != target_dp) && |
334 | target_dp->i_d.di_nlink >= XFS_MAXLINK) { | 330 | target_dp->i_d.di_nlink >= XFS_MAXLINK) { |
335 | rename_which_error_return = __LINE__; | ||
336 | error = XFS_ERROR(EMLINK); | 331 | error = XFS_ERROR(EMLINK); |
337 | xfs_rename_unlock4(inodes, XFS_ILOCK_SHARED); | 332 | xfs_rename_unlock4(inodes, XFS_ILOCK_SHARED); |
338 | goto rele_return; | 333 | goto rele_return; |
@@ -359,7 +354,6 @@ xfs_rename( | |||
359 | XFS_TRANS_PERM_LOG_RES, XFS_RENAME_LOG_COUNT); | 354 | XFS_TRANS_PERM_LOG_RES, XFS_RENAME_LOG_COUNT); |
360 | } | 355 | } |
361 | if (error) { | 356 | if (error) { |
362 | rename_which_error_return = __LINE__; | ||
363 | xfs_trans_cancel(tp, 0); | 357 | xfs_trans_cancel(tp, 0); |
364 | goto rele_return; | 358 | goto rele_return; |
365 | } | 359 | } |
@@ -369,7 +363,6 @@ xfs_rename( | |||
369 | */ | 363 | */ |
370 | if ((error = XFS_QM_DQVOPRENAME(mp, inodes))) { | 364 | if ((error = XFS_QM_DQVOPRENAME(mp, inodes))) { |
371 | xfs_trans_cancel(tp, cancel_flags); | 365 | xfs_trans_cancel(tp, cancel_flags); |
372 | rename_which_error_return = __LINE__; | ||
373 | goto rele_return; | 366 | goto rele_return; |
374 | } | 367 | } |
375 | 368 | ||
@@ -413,7 +406,6 @@ xfs_rename( | |||
413 | if (spaceres == 0 && | 406 | if (spaceres == 0 && |
414 | (error = XFS_DIR_CANENTER(mp, tp, target_dp, target_name, | 407 | (error = XFS_DIR_CANENTER(mp, tp, target_dp, target_name, |
415 | target_namelen))) { | 408 | target_namelen))) { |
416 | rename_which_error_return = __LINE__; | ||
417 | goto error_return; | 409 | goto error_return; |
418 | } | 410 | } |
419 | /* | 411 | /* |
@@ -425,11 +417,9 @@ xfs_rename( | |||
425 | target_namelen, src_ip->i_ino, | 417 | target_namelen, src_ip->i_ino, |
426 | &first_block, &free_list, spaceres); | 418 | &first_block, &free_list, spaceres); |
427 | if (error == ENOSPC) { | 419 | if (error == ENOSPC) { |
428 | rename_which_error_return = __LINE__; | ||
429 | goto error_return; | 420 | goto error_return; |
430 | } | 421 | } |
431 | if (error) { | 422 | if (error) { |
432 | rename_which_error_return = __LINE__; | ||
433 | goto abort_return; | 423 | goto abort_return; |
434 | } | 424 | } |
435 | xfs_ichgtime(target_dp, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); | 425 | xfs_ichgtime(target_dp, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); |
@@ -437,7 +427,6 @@ xfs_rename( | |||
437 | if (new_parent && src_is_directory) { | 427 | if (new_parent && src_is_directory) { |
438 | error = xfs_bumplink(tp, target_dp); | 428 | error = xfs_bumplink(tp, target_dp); |
439 | if (error) { | 429 | if (error) { |
440 | rename_which_error_return = __LINE__; | ||
441 | goto abort_return; | 430 | goto abort_return; |
442 | } | 431 | } |
443 | } | 432 | } |
@@ -455,7 +444,6 @@ xfs_rename( | |||
455 | if (!(XFS_DIR_ISEMPTY(target_ip->i_mount, target_ip)) || | 444 | if (!(XFS_DIR_ISEMPTY(target_ip->i_mount, target_ip)) || |
456 | (target_ip->i_d.di_nlink > 2)) { | 445 | (target_ip->i_d.di_nlink > 2)) { |
457 | error = XFS_ERROR(EEXIST); | 446 | error = XFS_ERROR(EEXIST); |
458 | rename_which_error_return = __LINE__; | ||
459 | goto error_return; | 447 | goto error_return; |
460 | } | 448 | } |
461 | } | 449 | } |
@@ -473,7 +461,6 @@ xfs_rename( | |||
473 | target_namelen, src_ip->i_ino, &first_block, | 461 | target_namelen, src_ip->i_ino, &first_block, |
474 | &free_list, spaceres); | 462 | &free_list, spaceres); |
475 | if (error) { | 463 | if (error) { |
476 | rename_which_error_return = __LINE__; | ||
477 | goto abort_return; | 464 | goto abort_return; |
478 | } | 465 | } |
479 | xfs_ichgtime(target_dp, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); | 466 | xfs_ichgtime(target_dp, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); |
@@ -484,7 +471,6 @@ xfs_rename( | |||
484 | */ | 471 | */ |
485 | error = xfs_droplink(tp, target_ip); | 472 | error = xfs_droplink(tp, target_ip); |
486 | if (error) { | 473 | if (error) { |
487 | rename_which_error_return = __LINE__; | ||
488 | goto abort_return; | 474 | goto abort_return; |
489 | } | 475 | } |
490 | target_ip_dropped = 1; | 476 | target_ip_dropped = 1; |
@@ -495,7 +481,6 @@ xfs_rename( | |||
495 | */ | 481 | */ |
496 | error = xfs_droplink(tp, target_ip); | 482 | error = xfs_droplink(tp, target_ip); |
497 | if (error) { | 483 | if (error) { |
498 | rename_which_error_return = __LINE__; | ||
499 | goto abort_return; | 484 | goto abort_return; |
500 | } | 485 | } |
501 | } | 486 | } |
@@ -519,7 +504,6 @@ xfs_rename( | |||
519 | &free_list, spaceres); | 504 | &free_list, spaceres); |
520 | ASSERT(error != EEXIST); | 505 | ASSERT(error != EEXIST); |
521 | if (error) { | 506 | if (error) { |
522 | rename_which_error_return = __LINE__; | ||
523 | goto abort_return; | 507 | goto abort_return; |
524 | } | 508 | } |
525 | xfs_ichgtime(src_ip, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); | 509 | xfs_ichgtime(src_ip, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); |
@@ -550,7 +534,6 @@ xfs_rename( | |||
550 | */ | 534 | */ |
551 | error = xfs_droplink(tp, src_dp); | 535 | error = xfs_droplink(tp, src_dp); |
552 | if (error) { | 536 | if (error) { |
553 | rename_which_error_return = __LINE__; | ||
554 | goto abort_return; | 537 | goto abort_return; |
555 | } | 538 | } |
556 | } | 539 | } |
@@ -558,7 +541,6 @@ xfs_rename( | |||
558 | error = XFS_DIR_REMOVENAME(mp, tp, src_dp, src_name, src_namelen, | 541 | error = XFS_DIR_REMOVENAME(mp, tp, src_dp, src_name, src_namelen, |
559 | src_ip->i_ino, &first_block, &free_list, spaceres); | 542 | src_ip->i_ino, &first_block, &free_list, spaceres); |
560 | if (error) { | 543 | if (error) { |
561 | rename_which_error_return = __LINE__; | ||
562 | goto abort_return; | 544 | goto abort_return; |
563 | } | 545 | } |
564 | xfs_ichgtime(src_dp, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); | 546 | xfs_ichgtime(src_dp, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); |
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c index 3db0e2200775..a865f6035991 100644 --- a/fs/xfs/xfs_trans.c +++ b/fs/xfs/xfs_trans.c | |||
@@ -332,25 +332,6 @@ undo_blocks: | |||
332 | 332 | ||
333 | 333 | ||
334 | /* | 334 | /* |
335 | * This is called to set the a callback to be called when the given | ||
336 | * transaction is committed to disk. The transaction pointer and the | ||
337 | * argument pointer will be passed to the callback routine. | ||
338 | * | ||
339 | * Only one callback can be associated with any single transaction. | ||
340 | */ | ||
341 | void | ||
342 | xfs_trans_callback( | ||
343 | xfs_trans_t *tp, | ||
344 | xfs_trans_callback_t callback, | ||
345 | void *arg) | ||
346 | { | ||
347 | ASSERT(tp->t_callback == NULL); | ||
348 | tp->t_callback = callback; | ||
349 | tp->t_callarg = arg; | ||
350 | } | ||
351 | |||
352 | |||
353 | /* | ||
354 | * Record the indicated change to the given field for application | 335 | * Record the indicated change to the given field for application |
355 | * to the file system's superblock when the transaction commits. | 336 | * to the file system's superblock when the transaction commits. |
356 | * For now, just store the change in the transaction structure. | 337 | * For now, just store the change in the transaction structure. |
diff --git a/fs/xfs/xfs_trans.h b/fs/xfs/xfs_trans.h index bd37ccb85e76..ec541d66fa2a 100644 --- a/fs/xfs/xfs_trans.h +++ b/fs/xfs/xfs_trans.h | |||
@@ -987,8 +987,6 @@ xfs_trans_t *_xfs_trans_alloc(struct xfs_mount *, uint); | |||
987 | xfs_trans_t *xfs_trans_dup(xfs_trans_t *); | 987 | xfs_trans_t *xfs_trans_dup(xfs_trans_t *); |
988 | int xfs_trans_reserve(xfs_trans_t *, uint, uint, uint, | 988 | int xfs_trans_reserve(xfs_trans_t *, uint, uint, uint, |
989 | uint, uint); | 989 | uint, uint); |
990 | void xfs_trans_callback(xfs_trans_t *, | ||
991 | void (*)(xfs_trans_t *, void *), void *); | ||
992 | void xfs_trans_mod_sb(xfs_trans_t *, uint, long); | 990 | void xfs_trans_mod_sb(xfs_trans_t *, uint, long); |
993 | struct xfs_buf *xfs_trans_get_buf(xfs_trans_t *, struct xfs_buftarg *, xfs_daddr_t, | 991 | struct xfs_buf *xfs_trans_get_buf(xfs_trans_t *, struct xfs_buftarg *, xfs_daddr_t, |
994 | int, uint); | 992 | int, uint); |
@@ -1010,7 +1008,6 @@ int xfs_trans_iget(struct xfs_mount *, xfs_trans_t *, | |||
1010 | xfs_ino_t , uint, uint, struct xfs_inode **); | 1008 | xfs_ino_t , uint, uint, struct xfs_inode **); |
1011 | void xfs_trans_ijoin(xfs_trans_t *, struct xfs_inode *, uint); | 1009 | void xfs_trans_ijoin(xfs_trans_t *, struct xfs_inode *, uint); |
1012 | void xfs_trans_ihold(xfs_trans_t *, struct xfs_inode *); | 1010 | void xfs_trans_ihold(xfs_trans_t *, struct xfs_inode *); |
1013 | void xfs_trans_ihold_release(xfs_trans_t *, struct xfs_inode *); | ||
1014 | void xfs_trans_log_buf(xfs_trans_t *, struct xfs_buf *, uint, uint); | 1011 | void xfs_trans_log_buf(xfs_trans_t *, struct xfs_buf *, uint, uint); |
1015 | void xfs_trans_log_inode(xfs_trans_t *, struct xfs_inode *, uint); | 1012 | void xfs_trans_log_inode(xfs_trans_t *, struct xfs_inode *, uint); |
1016 | struct xfs_efi_log_item *xfs_trans_get_efi(xfs_trans_t *, uint); | 1013 | struct xfs_efi_log_item *xfs_trans_get_efi(xfs_trans_t *, uint); |
diff --git a/fs/xfs/xfs_trans_inode.c b/fs/xfs/xfs_trans_inode.c index e2c3706f453d..7e7631ca4979 100644 --- a/fs/xfs/xfs_trans_inode.c +++ b/fs/xfs/xfs_trans_inode.c | |||
@@ -253,24 +253,6 @@ xfs_trans_ihold( | |||
253 | ip->i_itemp->ili_flags |= XFS_ILI_HOLD; | 253 | ip->i_itemp->ili_flags |= XFS_ILI_HOLD; |
254 | } | 254 | } |
255 | 255 | ||
256 | /* | ||
257 | * Cancel the previous inode hold request made on this inode | ||
258 | * for this transaction. | ||
259 | */ | ||
260 | /*ARGSUSED*/ | ||
261 | void | ||
262 | xfs_trans_ihold_release( | ||
263 | xfs_trans_t *tp, | ||
264 | xfs_inode_t *ip) | ||
265 | { | ||
266 | ASSERT(ip->i_transp == tp); | ||
267 | ASSERT(ip->i_itemp != NULL); | ||
268 | ASSERT(ismrlocked(&ip->i_lock, MR_UPDATE)); | ||
269 | ASSERT(ip->i_itemp->ili_flags & XFS_ILI_HOLD); | ||
270 | |||
271 | ip->i_itemp->ili_flags &= ~XFS_ILI_HOLD; | ||
272 | } | ||
273 | |||
274 | 256 | ||
275 | /* | 257 | /* |
276 | * This is called to mark the fields indicated in fieldmask as needing | 258 | * This is called to mark the fields indicated in fieldmask as needing |