diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-12-16 05:34:03 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-12-16 05:34:03 +0000 |
commit | 967c65a99059fd459b956c1588ce0ba227912c4e (patch) | |
tree | 8224d013ff5d255420713d05610c7efebd204d2a /fs/locks.c | |
parent | e20c1cc1656a66a2773bca4591a895cbc12696ff (diff) |
Merge with Linux 2.1.72, part 1.
Diffstat (limited to 'fs/locks.c')
-rw-r--r-- | fs/locks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/locks.c b/fs/locks.c index 3f4c2c287..278193f56 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -402,11 +402,11 @@ int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) switch (flock.l_type) { case F_RDLCK: - if (!(filp->f_mode & 1)) + if (!(filp->f_mode & FMODE_READ)) return (-EBADF); break; case F_WRLCK: - if (!(filp->f_mode & 2)) + if (!(filp->f_mode & FMODE_WRITE)) return (-EBADF); break; case F_UNLCK: |