summaryrefslogtreecommitdiff
path: root/fs/f2fs/segment.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-04-30 13:35:50 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2015-05-29 01:41:41 +0300
commitd5b692b786e1aea68d2c6737dd0abeebc1dad619 (patch)
tree994e30276ea39863112b4c47b8381344af882f4e /fs/f2fs/segment.c
parent402f721d2fa84cae38a403873fb4efdbbca06aff (diff)
downloadlinux-d5b692b786e1aea68d2c6737dd0abeebc1dad619.tar.xz
f2fs: do not re-lookup nat cache with same nid
In set_node_addr, we try to lookup cached nat entry of inode and then set flag in it. But previously in this function, we have already grabbed nat entry with current node id, if the node id is the same as the one of inode, we do not need to lookup it in cache again. So this patch adds condition judgment for reducing unneeded lookup. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
0 files changed, 0 insertions, 0 deletions