Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964787AbeAJHZ7 (ORCPT + 1 other); Wed, 10 Jan 2018 02:25:59 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:37091 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932618AbeAJHZ5 (ORCPT ); Wed, 10 Jan 2018 02:25:57 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180110072555epoutp043a8747baef116da56815d1baba0e1768~IYh4Ti6MA0758407584epoutp040 X-AuditID: b6c32a36-3d5ff7000000117d-87-5a55bf1cb4aa Mime-Version: 1.0 Subject: Re: [PATCH] f2fs: handle newly created page when revoking inmem pages Reply-To: daeho.jeong@samsung.com From: Daeho Jeong To: "linux-kernel@vger.kernel.org" , "linux-f2fs-devel@lists.sourceforge.net" X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20180110072203epcms1p5590a9b8441e94174b461172222424455@epcms1p5> Date: Wed, 10 Jan 2018 07:22:03 +0000 X-CMS-MailID: 20180110072203epcms1p5590a9b8441e94174b461172222424455 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="utf-8" X-ArchiveUser: EV X-MTR: 20180110072203epcms1p5590a9b8441e94174b461172222424455 CMS-TYPE: 101P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNJsWRmVeSWpSXmKPExsWy7bCmvq7M/tAog3UNfBZ7Pq1js7i0yN3i 8q45bA7MHrsXfGby6NuyitHj8ya5AOaoBkabxKLkjMyyVIXUvOT8lMy8dFul0BA3XQslhYz8 4hJbpWgjA2M9I1MTPSMTcz1Lg1grI1MlhbzE3FRbpQpdqF4lhaLkAqDa3MpioAE5qXpQcb3i 1LwUh6z8UpDj9IoTc4tL89L1kvNzlRTKEnNKgUYo6Sd8YMx48fsPa8FW9op76+wbGKeydzFy ckgImEj0HH0FZHNxCAnsYJRYumUvUxcjBwevgKDE3x3CIDXCAgESs67sZQSxhQQUJVb97WSD iOtKLJlyhAXEZhPQlpi+fBbYHBGBGYwSjXv2M0Es4JWY0f6UBcKWlti+fCvYIE4BO4klu28x QsRFJW6ufssOY78/Nh8qLiLReu8sM4QtKPHg526ouJTE7Sen2ECWSQisY5SY+6uJFcJpYZRo WN0MVaUvcWDDHbBTeQV8Jc4ducsKYrMIqEpsvvObFaLGReLD/ONg1zEDvbBs4WtmkO+ZBTQl 1u/Sh1l8+lo31BG2Eg37b7FDlPNJvPvawwrz5I55T6AeVpVY9WMBM8zDt17Og3reQ2Jz30Io 21HiwuZ25gmMirMQYT0LyRGzEI5YwMi8ilEstaA4Nz212LDACDmCNzGCk6KW2Q7GRed8DjEK cDAq8fB+uBESJcSaWFZcmXuIUYKDWUmE13d+cJQQb0piZVVqUX58UWlOavEhxmRgWExklhJN zgcm7LySeEMTSwMTMyNTU0MDCxNkYWMDAyNDA3NzS3NjHMJK4rwBAS5RQgLpiSWp2ampBalF MFuYODilgMltkbmQ6MPSatHCH79ePXYJT1y9rfpoSVDDJj3x8ug5Oxwn+ZWdkn+vbyNktq9U hHNRyjpuySf5wuxHOyaVRF7pDxeY3mF9cLfo3eLvuq+aI5v+OOw6fFGvqG1Wy2zeOW1NLFyK Jfw9Vz9ZCgqWeWx6sU/uzPdD1WVeUwr4tmZdW6F/wGwlixJLcUaioRZzUXEiAD81pDzOAwAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20180110024336epcas2p1003559800e7f1e59a79496fc5b79cf04 X-RootMTR: 20180110024336epcas2p1003559800e7f1e59a79496fc5b79cf04 References: <1515552234-27964-1-git-send-email-daeho.jeong@samsung.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hi Chao, > Original intention here is to recover status to the timing before > committing atomic write. As at that timing blkaddr in dnode should be > cur->old_addr(NEW_ADDR), so we need to change to call:   > f2fs_update_data_blkaddr(&dn, NEW_ADDR); Ok, I'll change NULL_ADDR to NEW_ADDR. Thanks,   > Otherwise, metadata will become inconsistent, because blkaddr value is > NULL_ADDR means that current block is not preallocated, but > total_valid_block_count has already been updated. Right?   > Thanks,