From 406911bad0bca67ebcc5e853fd346e050a0b6ba2 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 21 Apr 2011 15:11:33 +0300 Subject: [PATCH] --- yaml --- r: 250428 b: refs/heads/master c: 3b2f9a019e655f3407e4e69cdbaf8b75699b79a4 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ubifs/file.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 6fc846c96e5f..fd4db62fa312 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1a29af8bd740b2720caeafbffece1c0be6a9d06d +refs/heads/master: 3b2f9a019e655f3407e4e69cdbaf8b75699b79a4 diff --git a/trunk/fs/ubifs/file.c b/trunk/fs/ubifs/file.c index 3594aae12a88..adce3b7b5a3e 100644 --- a/trunk/fs/ubifs/file.c +++ b/trunk/fs/ubifs/file.c @@ -1312,7 +1312,11 @@ int ubifs_fsync(struct file *file, int datasync) dbg_gen("syncing inode %lu", inode->i_ino); - if (inode->i_sb->s_flags & MS_RDONLY) + if (c->ro_mount) + /* + * For some really strange reasons VFS does not filter out + * 'fsync()' for R/O mounted file-systems as per 2.6.39. + */ return 0; /*