lkml.org 
[lkml]   [2021]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Orangef: Removed unused variable: "file"
Date
From: gushengxian <gushengxian@yulong.com>

In function orangefs_launder_page() the varialbe "file" is defined.
However it has not been used throughout the function.
At the same time, the entire directory was compiled,
and no error was found.

Signed-off-by: gushengxian <gushengxian@yulong.com>
---
fs/orangefs/inode.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index 207cbf19fba1..16ac617df7d7 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -249,7 +249,6 @@ static void orangefs_readahead(struct readahead_control *rac)
{
loff_t offset;
struct iov_iter iter;
- struct file *file = rac->file;
struct inode *inode = rac->mapping->host;
struct xarray *i_pages;
struct page *page;
--
2.25.1

\
 
 \ /
  Last update: 2021-06-29 06:13    [W:0.025 / U:1.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site