Skip to content

Commit 2e29be2

Browse files
weiny2djbw
authored andcommitted
fs/fuse: Remove unneeded kaddr parameter
fuse_dax_mem_range_init() does not need the address or the pfn of the memory requested in dax_direct_access(). It is only calling direct access to get the number of pages. Remove the unused variables and stop requesting the kaddr and pfn from dax_direct_access(). Reviewed-by: Dan Williams <[email protected]> Signed-off-by: Ira Weiny <[email protected]> Reviewed-by: Vivek Goyal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent 62fb987 commit 2e29be2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

fs/fuse/dax.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,8 +1234,6 @@ void fuse_dax_conn_free(struct fuse_conn *fc)
12341234
static int fuse_dax_mem_range_init(struct fuse_conn_dax *fcd)
12351235
{
12361236
long nr_pages, nr_ranges;
1237-
void *kaddr;
1238-
pfn_t pfn;
12391237
struct fuse_dax_mapping *range;
12401238
int ret, id;
12411239
size_t dax_size = -1;
@@ -1247,8 +1245,8 @@ static int fuse_dax_mem_range_init(struct fuse_conn_dax *fcd)
12471245
INIT_DELAYED_WORK(&fcd->free_work, fuse_dax_free_mem_worker);
12481246

12491247
id = dax_read_lock();
1250-
nr_pages = dax_direct_access(fcd->dev, 0, PHYS_PFN(dax_size), &kaddr,
1251-
&pfn);
1248+
nr_pages = dax_direct_access(fcd->dev, 0, PHYS_PFN(dax_size), NULL,
1249+
NULL);
12521250
dax_read_unlock(id);
12531251
if (nr_pages < 0) {
12541252
pr_debug("dax_direct_access() returned %ld\n", nr_pages);

0 commit comments

Comments
 (0)