diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:59:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:59:33 -0400 |
commit | 60c9b2746f589b0b809582b0471cf30ad3ae439f (patch) | |
tree | deb0169acb7f7b5b5ef721650de1e0c6f139823c /fs/xfs/xfs_log_recover.c | |
parent | 4750def52cb2c21732dda9aa1d43a07db37b0186 (diff) | |
parent | f7c66ce3f70d8417de0cfb481ca4e5430382ec5d (diff) |
Merge git://oss.sgi.com:8090/xfs/xfs-2.6
* git://oss.sgi.com:8090/xfs/xfs-2.6:
[XFS] Add lockdep support for XFS
[XFS] Fix race in xfs_write() b/w dmapi callout and direct I/O checks.
[XFS] Get rid of redundant "required" in msg.
[XFS] Export via a function xfs_buftarg_list for use by kdb/xfsidbg.
[XFS] Remove unused ilen variable and references.
[XFS] Fix to prevent the notorious 'NULL files' problem after a crash.
[XFS] Fix race condition in xfs_write().
[XFS] Fix uquota and oquota enforcement problems.
[XFS] propogate return codes from flush routines
[XFS] Fix quotaon syscall failures for group enforcement requests.
[XFS] Invalidate quotacheck when mounting without a quota type.
[XFS] reducing the number of random number functions.
[XFS] remove more misc. unused args
[XFS] the "aendp" arg to xfs_dir2_data_freescan is always NULL, remove it.
[XFS] The last argument "lsn" of xfs_trans_commit() is always called with
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index ca74d3f5910e..080fabf61c92 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -1509,7 +1509,6 @@ xlog_recover_insert_item_frontq( | |||
1509 | 1509 | ||
1510 | STATIC int | 1510 | STATIC int |
1511 | xlog_recover_reorder_trans( | 1511 | xlog_recover_reorder_trans( |
1512 | xlog_t *log, | ||
1513 | xlog_recover_t *trans) | 1512 | xlog_recover_t *trans) |
1514 | { | 1513 | { |
1515 | xlog_recover_item_t *first_item, *itemq, *itemq_next; | 1514 | xlog_recover_item_t *first_item, *itemq, *itemq_next; |
@@ -1867,7 +1866,6 @@ xlog_recover_do_inode_buffer( | |||
1867 | /*ARGSUSED*/ | 1866 | /*ARGSUSED*/ |
1868 | STATIC void | 1867 | STATIC void |
1869 | xlog_recover_do_reg_buffer( | 1868 | xlog_recover_do_reg_buffer( |
1870 | xfs_mount_t *mp, | ||
1871 | xlog_recover_item_t *item, | 1869 | xlog_recover_item_t *item, |
1872 | xfs_buf_t *bp, | 1870 | xfs_buf_t *bp, |
1873 | xfs_buf_log_format_t *buf_f) | 1871 | xfs_buf_log_format_t *buf_f) |
@@ -2083,7 +2081,7 @@ xlog_recover_do_dquot_buffer( | |||
2083 | if (log->l_quotaoffs_flag & type) | 2081 | if (log->l_quotaoffs_flag & type) |
2084 | return; | 2082 | return; |
2085 | 2083 | ||
2086 | xlog_recover_do_reg_buffer(mp, item, bp, buf_f); | 2084 | xlog_recover_do_reg_buffer(item, bp, buf_f); |
2087 | } | 2085 | } |
2088 | 2086 | ||
2089 | /* | 2087 | /* |
@@ -2184,7 +2182,7 @@ xlog_recover_do_buffer_trans( | |||
2184 | (XFS_BLI_UDQUOT_BUF|XFS_BLI_PDQUOT_BUF|XFS_BLI_GDQUOT_BUF)) { | 2182 | (XFS_BLI_UDQUOT_BUF|XFS_BLI_PDQUOT_BUF|XFS_BLI_GDQUOT_BUF)) { |
2185 | xlog_recover_do_dquot_buffer(mp, log, item, bp, buf_f); | 2183 | xlog_recover_do_dquot_buffer(mp, log, item, bp, buf_f); |
2186 | } else { | 2184 | } else { |
2187 | xlog_recover_do_reg_buffer(mp, item, bp, buf_f); | 2185 | xlog_recover_do_reg_buffer(item, bp, buf_f); |
2188 | } | 2186 | } |
2189 | if (error) | 2187 | if (error) |
2190 | return XFS_ERROR(error); | 2188 | return XFS_ERROR(error); |
@@ -2765,7 +2763,7 @@ xlog_recover_do_trans( | |||
2765 | int error = 0; | 2763 | int error = 0; |
2766 | xlog_recover_item_t *item, *first_item; | 2764 | xlog_recover_item_t *item, *first_item; |
2767 | 2765 | ||
2768 | if ((error = xlog_recover_reorder_trans(log, trans))) | 2766 | if ((error = xlog_recover_reorder_trans(trans))) |
2769 | return error; | 2767 | return error; |
2770 | first_item = item = trans->r_itemq; | 2768 | first_item = item = trans->r_itemq; |
2771 | do { | 2769 | do { |
@@ -3016,7 +3014,7 @@ xlog_recover_process_efi( | |||
3016 | } | 3014 | } |
3017 | 3015 | ||
3018 | efip->efi_flags |= XFS_EFI_RECOVERED; | 3016 | efip->efi_flags |= XFS_EFI_RECOVERED; |
3019 | xfs_trans_commit(tp, 0, NULL); | 3017 | xfs_trans_commit(tp, 0); |
3020 | } | 3018 | } |
3021 | 3019 | ||
3022 | /* | 3020 | /* |
@@ -3143,7 +3141,7 @@ xlog_recover_clear_agi_bucket( | |||
3143 | xfs_trans_log_buf(tp, agibp, offset, | 3141 | xfs_trans_log_buf(tp, agibp, offset, |
3144 | (offset + sizeof(xfs_agino_t) - 1)); | 3142 | (offset + sizeof(xfs_agino_t) - 1)); |
3145 | 3143 | ||
3146 | (void) xfs_trans_commit(tp, 0, NULL); | 3144 | (void) xfs_trans_commit(tp, 0); |
3147 | } | 3145 | } |
3148 | 3146 | ||
3149 | /* | 3147 | /* |
@@ -3886,8 +3884,7 @@ xlog_recover( | |||
3886 | * under the vfs layer, so we can get away with it unless | 3884 | * under the vfs layer, so we can get away with it unless |
3887 | * the device itself is read-only, in which case we fail. | 3885 | * the device itself is read-only, in which case we fail. |
3888 | */ | 3886 | */ |
3889 | if ((error = xfs_dev_is_read_only(log->l_mp, | 3887 | if ((error = xfs_dev_is_read_only(log->l_mp, "recovery"))) { |
3890 | "recovery required"))) { | ||
3891 | return error; | 3888 | return error; |
3892 | } | 3889 | } |
3893 | 3890 | ||