mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-01 12:00:18 +07:00
leases: remove unneeded variable from fcntl_setlease().
fcntl_setlease() has a struct dentry* that is used only once; this patch removes it. Signed-off-by: David M. Richter <richterd@citi.umich.edu> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
parent
1908555767
commit
9d91cdcc0c
@ -1493,8 +1493,7 @@ EXPORT_SYMBOL_GPL(vfs_setlease);
|
|||||||
int fcntl_setlease(unsigned int fd, struct file *filp, long arg)
|
int fcntl_setlease(unsigned int fd, struct file *filp, long arg)
|
||||||
{
|
{
|
||||||
struct file_lock fl, *flp = &fl;
|
struct file_lock fl, *flp = &fl;
|
||||||
struct dentry *dentry = filp->f_path.dentry;
|
struct inode *inode = filp->f_path.dentry->d_inode;
|
||||||
struct inode *inode = dentry->d_inode;
|
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
locks_init_lock(&fl);
|
locks_init_lock(&fl);
|
||||||
|
Loading…
Reference in New Issue
Block a user