Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c3d4ea
)
Check the f_mode field instead of the f_flags field when using FMODE_ masks.
author
adilger
<adilger>
Wed, 12 Jun 2002 00:17:40 +0000
(
00:17
+0000)
committer
adilger
<adilger>
Wed, 12 Jun 2002 00:17:40 +0000
(
00:17
+0000)
lustre/llite/file.c
patch
|
blob
|
history
diff --git
a/lustre/llite/file.c
b/lustre/llite/file.c
index
e2e29f8
..
834c35b
100644
(file)
--- a/
lustre/llite/file.c
+++ b/
lustre/llite/file.c
@@
-117,7
+117,7
@@
static int ll_file_release(struct inode *inode, struct file *file)
GOTO(out_fd, abs(rc));
}
- if (file->f_
flags
& FMODE_WRITE) {
+ if (file->f_
mode
& FMODE_WRITE) {
struct iattr attr;
attr.ia_valid = ATTR_MTIME | ATTR_CTIME | ATTR_ATIME | ATTR_SIZE;
attr.ia_mtime = inode->i_mtime;