+ ocfs2-fix-ocfs2_sync_file-if-filesystem-is-readonly.patch added to -mm tree
Subject: + ocfs2-fix-ocfs2_sync_file-if-filesystem-is-readonly.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 24 Jan 2014 14:32:32 -0800
The patch titled
Subject: ocfs2: fix ocfs2_sync_file() if filesystem is readonly
has been added to the -mm tree. Its filename is
ocfs2-fix-ocfs2_sync_file-if-filesystem-is-readonly.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ocfs2-fix-ocfs2_sync_file-if-filesystem-is-readonly.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-fix-ocfs2_sync_file-if-filesystem-is-readonly.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Younger Liu <[email protected]>
Subject: ocfs2: fix ocfs2_sync_file() if filesystem is readonly
If filesystem is readonly, there is no need to flush drive's caches or force any uncommitted transactions.
---
fs/ocfs2/file.c | 3 +++ 1 file changed, 3 insertions(+)
fs/ocfs2/file.c renamed from fs/ocfs2/file.c~ocfs2-fix-ocfs2_sync_file-if-filesystem-is-readonly +3 -0
@@ -185,6 +185,9 @@ static int ocfs2_sync_file(struct file * file->f_path.dentry->d_name.name, (unsigned long long)datasync); +if (ocfs2_is_hard_readonly (osb) ||ocfs2_is_soft_readonly (osb)) +return 0 ; + err =filemap_write_and_wait_range (inode->i_mapping, start, end);if (err)return err;
_
Patches currently in -mm which might be from [email protected] are
origin.patch ocfs2-fix-ocfs2_sync_file-if-filesystem-is-readonly.patch ocfs2-fix-ocfs2_sync_file-if-filesystem-is-readonly-fix.patch