xfs_buf.c (5b5abbefec1bea98abba8f1cffcf72c11c32a92d) | xfs_buf.c (cd913c76f489def1a388e3a5b10df94948ede3f5) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2006 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#include "xfs.h" 7#include <linux/backing-dev.h> 8 --- 1931 unchanged lines hidden (view full) --- 1940{ 1941 xfs_buftarg_t *btp; 1942 1943 btp = kmem_zalloc(sizeof(*btp), KM_NOFS); 1944 1945 btp->bt_mount = mp; 1946 btp->bt_dev = bdev->bd_dev; 1947 btp->bt_bdev = bdev; | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2006 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#include "xfs.h" 7#include <linux/backing-dev.h> 8 --- 1931 unchanged lines hidden (view full) --- 1940{ 1941 xfs_buftarg_t *btp; 1942 1943 btp = kmem_zalloc(sizeof(*btp), KM_NOFS); 1944 1945 btp->bt_mount = mp; 1946 btp->bt_dev = bdev->bd_dev; 1947 btp->bt_bdev = bdev; |
1948 btp->bt_daxdev = fs_dax_get_by_bdev(bdev); | 1948 btp->bt_daxdev = fs_dax_get_by_bdev(bdev, &btp->bt_dax_part_off); |
1949 1950 /* 1951 * Buffer IO error rate limiting. Limit it to no more than 10 messages 1952 * per 30 seconds so as to not spam logs too much on repeated errors. 1953 */ 1954 ratelimit_state_init(&btp->bt_ioerror_rl, 30 * HZ, 1955 DEFAULT_RATELIMIT_BURST); 1956 --- 373 unchanged lines hidden --- | 1949 1950 /* 1951 * Buffer IO error rate limiting. Limit it to no more than 10 messages 1952 * per 30 seconds so as to not spam logs too much on repeated errors. 1953 */ 1954 ratelimit_state_init(&btp->bt_ioerror_rl, 30 * HZ, 1955 DEFAULT_RATELIMIT_BURST); 1956 --- 373 unchanged lines hidden --- |