]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: keep zero value in i_cno except for gc-inodes
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 20 Aug 2010 11:10:38 +0000 (20:10 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 23 Oct 2010 00:24:33 +0000 (09:24 +0900)
commit0c1b1ae78e66f4fca9d3b797ce092bf0d6517da4
treede22a81c028f33d9fc2354bfdc218191b96240cf
parent325e5fcd84f9b50b154cca56bb2bbbccb218a354
nilfs2: keep zero value in i_cno except for gc-inodes

On-memory inode structures of nilfs have a member "i_cno" which stores
a checkpoint number related to the inode.  For gc-inodes, this field
indicates version of data each gc-inode caches for GC.  Log writer
temporarily uses "i_cno" to transfer the latest checkpoint number.

This stops the latter use and lets only gc-inodes use it.

The purpose of this patch is to allow the successive change use
"i_cno" for inode lookup.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/segment.c
fs/nilfs2/segment.h
include/linux/nilfs2_fs.h