Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92968
b: refs/heads/master
c: 1908555
h: refs/heads/master
v: v3
  • Loading branch information
David M. Richter authored and J. Bruce Fields committed Apr 25, 2008
1 parent c82d74c commit ac8861f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 288b2fd8251cb0bcb14b8a93755ef9c78de70e0f
refs/heads/master: 190855576743a510219fc67886dace29b825d8cb
10 changes: 5 additions & 5 deletions trunk/fs/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1368,18 +1368,18 @@ int generic_setlease(struct file *filp, long arg, struct file_lock **flp)
lease = *flp;

if (arg != F_UNLCK) {
error = -ENOMEM;
new_fl = locks_alloc_lock();
if (new_fl == NULL)
goto out;

error = -EAGAIN;
if ((arg == F_RDLCK) && (atomic_read(&inode->i_writecount) > 0))
goto out;
if ((arg == F_WRLCK)
&& ((atomic_read(&dentry->d_count) > 1)
|| (atomic_read(&inode->i_count) > 1)))
goto out;

error = -ENOMEM;
new_fl = locks_alloc_lock();
if (new_fl == NULL)
goto out;
}

/*
Expand Down

0 comments on commit ac8861f

Please sign in to comment.