]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/xfs/xfs_trans.h
Merge tag '5.6-rc-smb3-plugfest-patches' of git://git.samba.org/sfrench/cifs-2.6
[linux.git] / fs / xfs / xfs_trans.h
index a0be934ec8118d6e50a8bee6630c6acac61a11b4..752c7fef9de75c52a2776f28b43af10ab36d3040 100644 (file)
@@ -173,22 +173,17 @@ int xfs_trans_get_buf_map(struct xfs_trans *tp, struct xfs_buftarg *target,
                struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags,
                struct xfs_buf **bpp);
 
-static inline struct xfs_buf *
+static inline int
 xfs_trans_get_buf(
        struct xfs_trans        *tp,
        struct xfs_buftarg      *target,
        xfs_daddr_t             blkno,
        int                     numblks,
-       uint                    flags)
+       uint                    flags,
+       struct xfs_buf          **bpp)
 {
-       struct xfs_buf          *bp;
-       int                     error;
-
        DEFINE_SINGLE_BUF_MAP(map, blkno, numblks);
-       error = xfs_trans_get_buf_map(tp, target, &map, 1, flags, &bp);
-       if (error)
-               return NULL;
-       return bp;
+       return xfs_trans_get_buf_map(tp, target, &map, 1, flags, bpp);
 }
 
 int            xfs_trans_read_buf_map(struct xfs_mount *mp,