xfs: remove unused flags arg from getsb interfaces
The flags value is always passed as 0 so remove the argument. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>alistair/sunxi64-5.4-dsi
parent
d03a2f1b9f
commit
8c9ce2f707
|
@ -927,7 +927,7 @@ xfs_log_sb(
|
||||||
struct xfs_trans *tp)
|
struct xfs_trans *tp)
|
||||||
{
|
{
|
||||||
struct xfs_mount *mp = tp->t_mountp;
|
struct xfs_mount *mp = tp->t_mountp;
|
||||||
struct xfs_buf *bp = xfs_trans_getsb(tp, mp, 0);
|
struct xfs_buf *bp = xfs_trans_getsb(tp, mp);
|
||||||
|
|
||||||
mp->m_sb.sb_icount = percpu_counter_sum(&mp->m_icount);
|
mp->m_sb.sb_icount = percpu_counter_sum(&mp->m_icount);
|
||||||
mp->m_sb.sb_ifree = percpu_counter_sum(&mp->m_ifree);
|
mp->m_sb.sb_ifree = percpu_counter_sum(&mp->m_ifree);
|
||||||
|
@ -1057,7 +1057,7 @@ xfs_sync_sb_buf(
|
||||||
if (error)
|
if (error)
|
||||||
return error;
|
return error;
|
||||||
|
|
||||||
bp = xfs_trans_getsb(tp, mp, 0);
|
bp = xfs_trans_getsb(tp, mp);
|
||||||
xfs_log_sb(tp);
|
xfs_log_sb(tp);
|
||||||
xfs_trans_bhold(tp, bp);
|
xfs_trans_bhold(tp, bp);
|
||||||
xfs_trans_set_sync(tp);
|
xfs_trans_set_sync(tp);
|
||||||
|
|
|
@ -5687,7 +5687,7 @@ xlog_do_recover(
|
||||||
* Now that we've finished replaying all buffer and inode
|
* Now that we've finished replaying all buffer and inode
|
||||||
* updates, re-read in the superblock and reverify it.
|
* updates, re-read in the superblock and reverify it.
|
||||||
*/
|
*/
|
||||||
bp = xfs_getsb(mp, 0);
|
bp = xfs_getsb(mp);
|
||||||
bp->b_flags &= ~(XBF_DONE | XBF_ASYNC);
|
bp->b_flags &= ~(XBF_DONE | XBF_ASYNC);
|
||||||
ASSERT(!(bp->b_flags & XBF_WRITE));
|
ASSERT(!(bp->b_flags & XBF_WRITE));
|
||||||
bp->b_flags |= XBF_READ;
|
bp->b_flags |= XBF_READ;
|
||||||
|
|
|
@ -1309,24 +1309,14 @@ xfs_mod_frextents(
|
||||||
* xfs_getsb() is called to obtain the buffer for the superblock.
|
* xfs_getsb() is called to obtain the buffer for the superblock.
|
||||||
* The buffer is returned locked and read in from disk.
|
* The buffer is returned locked and read in from disk.
|
||||||
* The buffer should be released with a call to xfs_brelse().
|
* The buffer should be released with a call to xfs_brelse().
|
||||||
*
|
|
||||||
* If the flags parameter is BUF_TRYLOCK, then we'll only return
|
|
||||||
* the superblock buffer if it can be locked without sleeping.
|
|
||||||
* If it can't then we'll return NULL.
|
|
||||||
*/
|
*/
|
||||||
struct xfs_buf *
|
struct xfs_buf *
|
||||||
xfs_getsb(
|
xfs_getsb(
|
||||||
struct xfs_mount *mp,
|
struct xfs_mount *mp)
|
||||||
int flags)
|
|
||||||
{
|
{
|
||||||
struct xfs_buf *bp = mp->m_sb_bp;
|
struct xfs_buf *bp = mp->m_sb_bp;
|
||||||
|
|
||||||
if (!xfs_buf_trylock(bp)) {
|
xfs_buf_lock(bp);
|
||||||
if (flags & XBF_TRYLOCK)
|
|
||||||
return NULL;
|
|
||||||
xfs_buf_lock(bp);
|
|
||||||
}
|
|
||||||
|
|
||||||
xfs_buf_hold(bp);
|
xfs_buf_hold(bp);
|
||||||
ASSERT(bp->b_flags & XBF_DONE);
|
ASSERT(bp->b_flags & XBF_DONE);
|
||||||
return bp;
|
return bp;
|
||||||
|
|
|
@ -452,7 +452,7 @@ extern int xfs_mod_fdblocks(struct xfs_mount *mp, int64_t delta,
|
||||||
bool reserved);
|
bool reserved);
|
||||||
extern int xfs_mod_frextents(struct xfs_mount *mp, int64_t delta);
|
extern int xfs_mod_frextents(struct xfs_mount *mp, int64_t delta);
|
||||||
|
|
||||||
extern struct xfs_buf *xfs_getsb(xfs_mount_t *, int);
|
extern struct xfs_buf *xfs_getsb(xfs_mount_t *);
|
||||||
extern int xfs_readsb(xfs_mount_t *, int);
|
extern int xfs_readsb(xfs_mount_t *, int);
|
||||||
extern void xfs_freesb(xfs_mount_t *);
|
extern void xfs_freesb(xfs_mount_t *);
|
||||||
extern bool xfs_fs_writable(struct xfs_mount *mp, int level);
|
extern bool xfs_fs_writable(struct xfs_mount *mp, int level);
|
||||||
|
|
|
@ -452,7 +452,7 @@ xfs_trans_apply_sb_deltas(
|
||||||
xfs_buf_t *bp;
|
xfs_buf_t *bp;
|
||||||
int whole = 0;
|
int whole = 0;
|
||||||
|
|
||||||
bp = xfs_trans_getsb(tp, tp->t_mountp, 0);
|
bp = xfs_trans_getsb(tp, tp->t_mountp);
|
||||||
sbp = XFS_BUF_TO_SBP(bp);
|
sbp = XFS_BUF_TO_SBP(bp);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -203,7 +203,7 @@ xfs_trans_read_buf(
|
||||||
flags, bpp, ops);
|
flags, bpp, ops);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct xfs_buf *xfs_trans_getsb(xfs_trans_t *, struct xfs_mount *, int);
|
struct xfs_buf *xfs_trans_getsb(xfs_trans_t *, struct xfs_mount *);
|
||||||
|
|
||||||
void xfs_trans_brelse(xfs_trans_t *, struct xfs_buf *);
|
void xfs_trans_brelse(xfs_trans_t *, struct xfs_buf *);
|
||||||
void xfs_trans_bjoin(xfs_trans_t *, struct xfs_buf *);
|
void xfs_trans_bjoin(xfs_trans_t *, struct xfs_buf *);
|
||||||
|
|
|
@ -174,8 +174,7 @@ xfs_trans_get_buf_map(
|
||||||
xfs_buf_t *
|
xfs_buf_t *
|
||||||
xfs_trans_getsb(
|
xfs_trans_getsb(
|
||||||
xfs_trans_t *tp,
|
xfs_trans_t *tp,
|
||||||
struct xfs_mount *mp,
|
struct xfs_mount *mp)
|
||||||
int flags)
|
|
||||||
{
|
{
|
||||||
xfs_buf_t *bp;
|
xfs_buf_t *bp;
|
||||||
struct xfs_buf_log_item *bip;
|
struct xfs_buf_log_item *bip;
|
||||||
|
@ -185,7 +184,7 @@ xfs_trans_getsb(
|
||||||
* if tp is NULL.
|
* if tp is NULL.
|
||||||
*/
|
*/
|
||||||
if (tp == NULL)
|
if (tp == NULL)
|
||||||
return xfs_getsb(mp, flags);
|
return xfs_getsb(mp);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the superblock buffer already has this transaction
|
* If the superblock buffer already has this transaction
|
||||||
|
@ -203,7 +202,7 @@ xfs_trans_getsb(
|
||||||
return bp;
|
return bp;
|
||||||
}
|
}
|
||||||
|
|
||||||
bp = xfs_getsb(mp, flags);
|
bp = xfs_getsb(mp);
|
||||||
if (bp == NULL)
|
if (bp == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue