diff options
author | Dima Zavin <dima@android.com> | 2009-11-01 19:58:15 -0800 |
---|---|---|
committer | Dima Zavin <dima@android.com> | 2009-11-02 17:27:19 -0800 |
commit | d9fd94906d0af05be96dfa544e520ff10ca88e0c (patch) | |
tree | 75513a371730b75281b36be5ace75984d0ed2ccc /drivers | |
parent | b0e4fdd2edd06bd4f9abc89d8dc788c18e9cd521 (diff) |
misc: pmem: don't flush if file was opened with O_SYNC
Change-Id: I067218658a0d7f7ecc1fe73e9ff6b0c3b3054653
Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/pmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/pmem.c b/drivers/misc/pmem.c index ec7db340e71e..55c4de81b177 100644 --- a/drivers/misc/pmem.c +++ b/drivers/misc/pmem.c @@ -795,7 +795,7 @@ void flush_pmem_file(struct file *file, unsigned long offset, unsigned long len) id = get_id(file); data = (struct pmem_data *)file->private_data; - if (!pmem[id].cached) + if (!pmem[id].cached || file->f_flags & O_SYNC) return; down_read(&data->sem); |