From: Brian Foster Date: Mon, 10 Aug 2020 20:32:05 +0000 (-0400) Subject: xfs: remove unused iget_flags param from xfs_imap_to_bp() X-Git-Tag: v5.8.0-rc0~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0cd4b54a22f33b07bb3eb627588bf25100c5a61c;p=thirdparty%2Fxfsprogs-dev.git xfs: remove unused iget_flags param from xfs_imap_to_bp() Source kernel commit: c199507993ede3f63d0deae7e2cbc2f5462c6452 iget_flags is unused in xfs_imap_to_bp(). Remove the parameter and fix up the callers. Signed-off-by: Brian Foster Reviewed-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Reviewed-by: Allison Collins Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/trans.c b/libxfs/trans.c index 6e0b1667c..a61f803fe 100644 --- a/libxfs/trans.c +++ b/libxfs/trans.c @@ -811,7 +811,7 @@ inode_item_done( /* * Get the buffer containing the on-disk inode. */ - error = xfs_imap_to_bp(mp, NULL, &ip->i_imap, &dip, &bp, 0, 0); + error = xfs_imap_to_bp(mp, NULL, &ip->i_imap, &dip, &bp, 0); if (error) { fprintf(stderr, _("%s: warning - imap_to_bp failed (%d)\n"), progname, error); diff --git a/libxfs/xfs_inode_buf.c b/libxfs/xfs_inode_buf.c index e94f5bf70..0a2d76e87 100644 --- a/libxfs/xfs_inode_buf.c +++ b/libxfs/xfs_inode_buf.c @@ -158,8 +158,7 @@ xfs_imap_to_bp( struct xfs_imap *imap, struct xfs_dinode **dipp, struct xfs_buf **bpp, - uint buf_flags, - uint iget_flags) + uint buf_flags) { struct xfs_buf *bp; int error; @@ -618,7 +617,7 @@ xfs_iread( /* * Get pointers to the on-disk inode and the buffer containing it. */ - error = xfs_imap_to_bp(mp, tp, &ip->i_imap, &dip, &bp, 0, iget_flags); + error = xfs_imap_to_bp(mp, tp, &ip->i_imap, &dip, &bp, 0); if (error) return error; diff --git a/libxfs/xfs_inode_buf.h b/libxfs/xfs_inode_buf.h index 9b373dcf9..d9b4781ac 100644 --- a/libxfs/xfs_inode_buf.h +++ b/libxfs/xfs_inode_buf.h @@ -48,7 +48,7 @@ struct xfs_imap { int xfs_imap_to_bp(struct xfs_mount *, struct xfs_trans *, struct xfs_imap *, struct xfs_dinode **, - struct xfs_buf **, uint, uint); + struct xfs_buf **, uint); int xfs_iread(struct xfs_mount *, struct xfs_trans *, struct xfs_inode *, uint); void xfs_dinode_calc_crc(struct xfs_mount *, struct xfs_dinode *);