keep iocb_flags() result cached in struct file
[linux-2.6-block.git] / fs / fcntl.c
index 34a3faa4886dcbf5413694b9917d0ccfa1980ed8..146c9ab0cd4b7c81e6f661205e79ae562da11cee 100644 (file)
@@ -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: