Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756575Ab3J1Mpf (ORCPT ); Mon, 28 Oct 2013 08:45:35 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:53606 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755844Ab3J1Mpd (ORCPT ); Mon, 28 Oct 2013 08:45:33 -0400 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 X-AuditID: cbfee690-b7f3d6d000001c4a-83-526e5c6cbd87 Content-transfer-encoding: 8BIT Message-id: <1382964295.992.122.camel@kjgkr> Subject: Re: [f2fs-dev 5/5] f2fs: Handle inline data operations From: Jaegeuk Kim Reply-to: jaegeuk.kim@samsung.com To: Huajun Li Cc: linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Huajun Li , Haicheng Li , Weihong Xu Date: Mon, 28 Oct 2013 21:44:55 +0900 In-reply-to: <1382716919-23345-6-git-send-email-huajun.li.lee@gmail.com> References: <1382716919-23345-1-git-send-email-huajun.li.lee@gmail.com> <1382716919-23345-6-git-send-email-huajun.li.lee@gmail.com> Organization: Samsung X-Mailer: Evolution 3.2.3-0ubuntu6 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNIsWRmVeSWpSXmKPExsVy+t8zA92cmLwgg9V7WSxeHtK0OPOsg9Fi y5YYi6/9d9gsLi1yt9iz9ySLxeVdc9gsNp38xerA4bFz1l12j8V7XjJ5zDsZ6LF7wWcmj74t qxg9Pm+SC2CL4rJJSc3JLEst0rdL4Mp4N+Mjc8F59or+y5fYGxjvs3YxcnJICJhItK3oZ4Sw xSQu3FvP1sXIxSEksIxRovvLGxaYogVH37JAJBYxSrw4+Y4ZJMErICjxY/I9oAQHB7OAvMSR S9kgYWYBdYlJ8xYxQ9S/YpR4uXgbI0S9jsSxh6/YQWxhAXuJ5smv2UF62QS0JTbvNwAJCwko SrzdfxfsOBGgOa9fzG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rGEVTC5ILipPScw31 ihNzi0vz0vWS83M3MYITwjOpHYwrGywOMQpwMCrx8G5YmxskxJpYVlyZe4hRgoNZSYTXwz4v SIg3JbGyKrUoP76oNCe1+BBjMtDlE5mlRJPzgckqryTe0NjEzMjSyMzCyMTcnDRhJXHeA63W gUIC6YklqdmpqQWpRTBbmDg4pRoYT2Srum8ufF7X+mZ+rthl9y3uq02nNv3mashr5ExV+T93 re0EgZ0l5jPNP+1m1rLZUyPs7sF1ueJ8dMOmVf6h9/bdsjNJmHqkYC/r3ZfnDpWunTXnT7ng gQOiW083i/9+fnTlxyrxaNd9vqlbRJZ153JNiDw1OfebBceyoKCoBSYT19w2WvY4UImlOCPR UIu5qDgRAA9dILZMAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 46 Hi, 2013-10-26 (토), 00:01 +0800, Huajun Li: > From: Huajun Li > [snip] > > @@ -538,7 +553,7 @@ static int f2fs_write_data_page(struct page *page, > loff_t i_size = i_size_read(inode); > const pgoff_t end_index = ((unsigned long long) i_size) > >> PAGE_CACHE_SHIFT; > - unsigned offset; > + unsigned offset = 0; > bool need_balance_fs = false; > int err = 0; > > @@ -572,7 +587,14 @@ write: > err = do_write_data_page(page); > } else { > f2fs_lock_op(sbi); > - err = do_write_data_page(page); > + if (test_opt(sbi, INLINE_DATA) && (i_size <= MAX_INLINE_DATA)) { > + err = f2fs_write_inline_data(inode, page, offset); > + ClearPageDirty(page); Don't need to call ClearPageDirty(page). > + f2fs_unlock_op(sbi); > + goto out; > + } else { > + err = do_write_data_page(page); > + } > f2fs_unlock_op(sbi); > need_balance_fs = true; > -- Jaegeuk Kim Samsung -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/