projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
keep iocb_flags() result cached in struct file
[linux-2.6-block.git]
/
fs
/
fcntl.c
diff --git
a/fs/fcntl.c
b/fs/fcntl.c
index 34a3faa4886dcbf5413694b9917d0ccfa1980ed8..146c9ab0cd4b7c81e6f661205e79ae562da11cee 100644
(file)
--- a/
fs/fcntl.c
+++ b/
fs/fcntl.c
@@
-78,6
+78,7
@@
static int setfl(int fd, struct file * filp, unsigned long arg)
}
spin_lock(&filp->f_lock);
filp->f_flags = (arg & SETFL_MASK) | (filp->f_flags & ~SETFL_MASK);
+ filp->f_iocb_flags = iocb_flags(filp);
spin_unlock(&filp->f_lock);
out: