diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-02-25 15:56:29 -0800 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-02-25 15:56:29 -0800 |
commit | 4b5621f6b127bce9218998c187bd25bf7f9fc371 (patch) | |
tree | 5de8a786af7abdc9e26f59ebd8b1639e85745591 /fs/nfs/write.c | |
parent | bfa274e2436fc7ef72ef51c878083647f1cfd429 (diff) | |
download | kernel_samsung_smdk4412-4b5621f6b127bce9218998c187bd25bf7f9fc371.tar.gz kernel_samsung_smdk4412-4b5621f6b127bce9218998c187bd25bf7f9fc371.tar.bz2 kernel_samsung_smdk4412-4b5621f6b127bce9218998c187bd25bf7f9fc371.zip |
NFS: Fix an f_mode/f_flags confusion in fs/nfs/write.c
O_SYNC is stored in filp->f_flags.
Thanks to Al Viro for pointing out the bug.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index f55c437124a..80c61fdb272 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -734,7 +734,7 @@ int nfs_updatepage(struct file *file, struct page *page, */ if (nfs_write_pageuptodate(page, inode) && inode->i_flock == NULL && - !(file->f_mode & O_SYNC)) { + !(file->f_flags & O_SYNC)) { count = max(count + offset, nfs_page_length(page)); offset = 0; } |