diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/locks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/locks.c b/fs/locks.c index 7e81bfc75164..669911e4af9d 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -1289,7 +1289,7 @@ EXPORT_SYMBOL(__break_lease); | |||
1289 | void lease_get_mtime(struct inode *inode, struct timespec *time) | 1289 | void lease_get_mtime(struct inode *inode, struct timespec *time) |
1290 | { | 1290 | { |
1291 | struct file_lock *flock = inode->i_flock; | 1291 | struct file_lock *flock = inode->i_flock; |
1292 | if (flock && IS_LEASE(flock) && (flock->fl_type & F_WRLCK)) | 1292 | if (flock && IS_LEASE(flock) && (flock->fl_type == F_WRLCK)) |
1293 | *time = current_fs_time(inode->i_sb); | 1293 | *time = current_fs_time(inode->i_sb); |
1294 | else | 1294 | else |
1295 | *time = inode->i_mtime; | 1295 | *time = inode->i_mtime; |
@@ -2187,8 +2187,8 @@ static void lock_get_status(struct seq_file *f, struct file_lock *fl, | |||
2187 | } else { | 2187 | } else { |
2188 | seq_printf(f, "%s ", | 2188 | seq_printf(f, "%s ", |
2189 | (lease_breaking(fl)) | 2189 | (lease_breaking(fl)) |
2190 | ? (fl->fl_type & F_UNLCK) ? "UNLCK" : "READ " | 2190 | ? (fl->fl_type == F_UNLCK) ? "UNLCK" : "READ " |
2191 | : (fl->fl_type & F_WRLCK) ? "WRITE" : "READ "); | 2191 | : (fl->fl_type == F_WRLCK) ? "WRITE" : "READ "); |
2192 | } | 2192 | } |
2193 | if (inode) { | 2193 | if (inode) { |
2194 | #ifdef WE_CAN_BREAK_LSLK_NOW | 2194 | #ifdef WE_CAN_BREAK_LSLK_NOW |