[PATCH 4/4] locks: minor setlease cleanup

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: J. Bruce Fields
Date: Monday, January 3, 2011 - 8:06 pm

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
---
 fs/locks.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/locks.c b/fs/locks.c
index 5cb6506..feaac63 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -1399,7 +1399,7 @@ int generic_setlease(struct file *filp, long arg, struct file_lock **flp)
 	for (before = &inode->i_flock;
 			((fl = *before) != NULL) && IS_LEASE(fl);
 			before = &fl->fl_next) {
-		if (fl->fl_file == lease->fl_file)
+		if (fl->fl_file == filp)
 			my_before = before;
 		else if (fl->fl_type == (F_INPROGRESS | F_UNLCK))
 			/*
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
remove lease callbacks, J. Bruce Fields, (Mon Jan 3, 8:06 pm)
[PATCH 1/4] nfsd4: eliminate lease delete callback, J. Bruce Fields, (Mon Jan 3, 8:06 pm)
[PATCH 3/4] locks: eliminate fl_mylease callback, J. Bruce Fields, (Mon Jan 3, 8:06 pm)
[PATCH 4/4] locks: minor setlease cleanup, J. Bruce Fields, (Mon Jan 3, 8:06 pm)
Re: [PATCH 3/4] locks: eliminate fl_mylease callback, Christoph Hellwig, (Mon Jan 3, 11:07 pm)
Re: [PATCH 3/4] locks: eliminate fl_mylease callback, J. Bruce Fields, (Tue Jan 4, 11:18 am)