]> err.no Git - linux-2.6/commitdiff
[XFS] remove unused "readonly" arg from xlog_find_tail and xlog_recover
authorEric Sandeen <sandeen@sgi.com>
Wed, 11 Jan 2006 04:34:19 +0000 (15:34 +1100)
committerNathan Scott <nathans@sgi.com>
Wed, 11 Jan 2006 04:34:19 +0000 (15:34 +1100)
SGI-PV: 946611
SGI-Modid: xfs-linux-melb:xfs-kern:203307a

Signed-off-by: Eric Sandeen <sandeen@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/xfs_log.c
fs/xfs/xfs_log_priv.h
fs/xfs/xfs_log_recover.c

index 29af51275ca90a09d99c2146f8704c0e0eca630c..ecb1067494f0ab289478c1636c37a03035ff6244 100644 (file)
@@ -428,7 +428,7 @@ xfs_log_mount(xfs_mount_t   *mp,
                if (readonly)
                        vfsp->vfs_flag &= ~VFS_RDONLY;
 
-               error = xlog_recover(mp->m_log, readonly);
+               error = xlog_recover(mp->m_log);
 
                if (readonly)
                        vfsp->vfs_flag |= VFS_RDONLY;
index 4518b188ade69d5e1ff44f850f2a2a5e0e9fd768..4f93988d7ac60c32cfafe7a5017012a58ff32753 100644 (file)
@@ -556,9 +556,8 @@ typedef struct log {
 extern xfs_lsn_t xlog_assign_tail_lsn(struct xfs_mount *mp);
 extern int      xlog_find_tail(xlog_t  *log,
                                xfs_daddr_t *head_blk,
-                               xfs_daddr_t *tail_blk,
-                               int readonly);
-extern int      xlog_recover(xlog_t *log, int readonly);
+                               xfs_daddr_t *tail_blk);
+extern int      xlog_recover(xlog_t *log);
 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_recover_process_iunlinks(xlog_t *log);
index 8ab7df768063deb4824ee52e7e4d55ff0ceb113f..d0c9fc4fed60e36d1346d025e64dff899af46da4 100644 (file)
@@ -783,8 +783,7 @@ int
 xlog_find_tail(
        xlog_t                  *log,
        xfs_daddr_t             *head_blk,
-       xfs_daddr_t             *tail_blk,
-       int                     readonly)
+       xfs_daddr_t             *tail_blk)
 {
        xlog_rec_header_t       *rhead;
        xlog_op_header_t        *op_head;
@@ -3890,14 +3889,13 @@ xlog_do_recover(
  */
 int
 xlog_recover(
-       xlog_t          *log,
-       int             readonly)
+       xlog_t          *log)
 {
        xfs_daddr_t     head_blk, tail_blk;
        int             error;
 
        /* 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;
 
        if (tail_blk != head_blk) {