|
@@ -38,7 +38,6 @@
|
|
#include <linux/mm.h>
|
|
#include <linux/mm.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/errno.h>
|
|
#include <linux/errno.h>
|
|
-#include <linux/file.h>
|
|
|
|
#include <linux/string.h>
|
|
#include <linux/string.h>
|
|
#include <linux/ratelimit.h>
|
|
#include <linux/ratelimit.h>
|
|
#include <linux/printk.h>
|
|
#include <linux/printk.h>
|
|
@@ -6127,7 +6126,6 @@ static struct nfs4_lockdata *nfs4_alloc_lockdata(struct file_lock *fl,
|
|
p->server = server;
|
|
p->server = server;
|
|
atomic_inc(&lsp->ls_count);
|
|
atomic_inc(&lsp->ls_count);
|
|
p->ctx = get_nfs_open_context(ctx);
|
|
p->ctx = get_nfs_open_context(ctx);
|
|
- get_file(fl->fl_file);
|
|
|
|
memcpy(&p->fl, fl, sizeof(p->fl));
|
|
memcpy(&p->fl, fl, sizeof(p->fl));
|
|
return p;
|
|
return p;
|
|
out_free_seqid:
|
|
out_free_seqid:
|
|
@@ -6240,7 +6238,6 @@ static void nfs4_lock_release(void *calldata)
|
|
nfs_free_seqid(data->arg.lock_seqid);
|
|
nfs_free_seqid(data->arg.lock_seqid);
|
|
nfs4_put_lock_state(data->lsp);
|
|
nfs4_put_lock_state(data->lsp);
|
|
put_nfs_open_context(data->ctx);
|
|
put_nfs_open_context(data->ctx);
|
|
- fput(data->fl.fl_file);
|
|
|
|
kfree(data);
|
|
kfree(data);
|
|
dprintk("%s: done!\n", __func__);
|
|
dprintk("%s: done!\n", __func__);
|
|
}
|
|
}
|