Commit 65be6054 authored by Eric Sandeen's avatar Eric Sandeen Committed by Nathan Scott

[XFS] remove unused "readonly" arg from xlog_find_tail and xlog_recover

SGI-PV: 946611
SGI-Modid: xfs-linux-melb:xfs-kern:203307a
Signed-off-by: default avatarEric Sandeen <sandeen@sgi.com>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 0d14824c
...@@ -428,7 +428,7 @@ xfs_log_mount(xfs_mount_t *mp, ...@@ -428,7 +428,7 @@ xfs_log_mount(xfs_mount_t *mp,
if (readonly) if (readonly)
vfsp->vfs_flag &= ~VFS_RDONLY; vfsp->vfs_flag &= ~VFS_RDONLY;
error = xlog_recover(mp->m_log, readonly); error = xlog_recover(mp->m_log);
if (readonly) if (readonly)
vfsp->vfs_flag |= VFS_RDONLY; vfsp->vfs_flag |= VFS_RDONLY;
......
...@@ -556,9 +556,8 @@ typedef struct log { ...@@ -556,9 +556,8 @@ typedef struct log {
extern xfs_lsn_t xlog_assign_tail_lsn(struct xfs_mount *mp); extern xfs_lsn_t xlog_assign_tail_lsn(struct xfs_mount *mp);
extern int xlog_find_tail(xlog_t *log, extern int xlog_find_tail(xlog_t *log,
xfs_daddr_t *head_blk, xfs_daddr_t *head_blk,
xfs_daddr_t *tail_blk, xfs_daddr_t *tail_blk);
int readonly); extern int xlog_recover(xlog_t *log);
extern int xlog_recover(xlog_t *log, int readonly);
extern int xlog_recover_finish(xlog_t *log, int mfsi_flags); extern int xlog_recover_finish(xlog_t *log, int mfsi_flags);
extern void xlog_pack_data(xlog_t *log, xlog_in_core_t *iclog, int); extern void xlog_pack_data(xlog_t *log, xlog_in_core_t *iclog, int);
extern void xlog_recover_process_iunlinks(xlog_t *log); extern void xlog_recover_process_iunlinks(xlog_t *log);
......
...@@ -783,8 +783,7 @@ int ...@@ -783,8 +783,7 @@ int
xlog_find_tail( xlog_find_tail(
xlog_t *log, xlog_t *log,
xfs_daddr_t *head_blk, xfs_daddr_t *head_blk,
xfs_daddr_t *tail_blk, xfs_daddr_t *tail_blk)
int readonly)
{ {
xlog_rec_header_t *rhead; xlog_rec_header_t *rhead;
xlog_op_header_t *op_head; xlog_op_header_t *op_head;
...@@ -3890,14 +3889,13 @@ xlog_do_recover( ...@@ -3890,14 +3889,13 @@ xlog_do_recover(
*/ */
int int
xlog_recover( xlog_recover(
xlog_t *log, xlog_t *log)
int readonly)
{ {
xfs_daddr_t head_blk, tail_blk; xfs_daddr_t head_blk, tail_blk;
int error; int error;
/* find the tail of the log */ /* find the tail of the log */
if ((error = xlog_find_tail(log, &head_blk, &tail_blk, readonly))) if ((error = xlog_find_tail(log, &head_blk, &tail_blk)))
return error; return error;
if (tail_blk != head_blk) { if (tail_blk != head_blk) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment