From: Daeho Jeong Subject: [PATCH] ext4: remove filemap_fdatawrite() when synchronizing a data journaled file Date: Tue, 28 Jul 2015 02:17:27 +0000 (GMT) Message-ID: <1046256826.88691438049846580.JavaMail.weblogic@epmlwas02d> Reply-To: daeho.jeong@samsung.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 To: "tytso@mit.edu" , linux-ext4@vger.kernel.org, daehojng@gmail.com Return-path: Received: from mailout3.samsung.com ([203.254.224.33]:50592 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754483AbbG1CRn (ORCPT ); Mon, 27 Jul 2015 22:17:43 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NS60116WEDHM050@mailout3.samsung.com> for linux-ext4@vger.kernel.org; Tue, 28 Jul 2015 11:17:42 +0900 (KST) MIME-version: 1.0 Sender: linux-ext4-owner@vger.kernel.org List-ID: V2hlbiBmc3luYygpIHN5c3RlbSBjYWxsIGlzIGV4ZWN1dGVkLCBhbGwgZGF0YSBvZiB0aGUgZmls ZSBzaG91bGQgYmUgd3JpdHRlbiBvbiB0aGUgc3RvcmFnZS4NCkJ1dCwgaW4gYSBjYXNlIG9mIHRo YXQgdGhlIGZpbGUgaXMgb3BlcmF0ZWQgaW4gZGF0YSBqb3VybmFsIG1vZGUsIHRoZSBkYXRhIGRv ZXNuJ3QgbmVlZCB0byBiZQ0KZmx1c2hlZCBvdXQgYW5kIHdhaXRlZCBmb3IgaXRzIEkvTyBjb21w bGV0aW9uLiBNb3Jlb3ZlciwgYnkgaW52b2tpbmcgZmlsZW1hcF9mZGF0YXdyaXRlKCkNCmZ1bmN0 aW9uIG9uIHRoZSBkYXRhIGpvdXJuYWxlZCBmaWxlLCBleHQ0X3N5bmNfZmlsZSgpIHN1ZmZlcnMg ZnJ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