]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: add missing initialization of s_mode
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 8 May 2010 18:01:32 +0000 (03:01 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 10 May 2010 02:32:33 +0000 (11:32 +0900)
commitd5732c29ed8564732658f719cd0d977c5871c128
treef7a69603d07fbfd14da3e0abaa13dd493d4c2f19
parentc91adb29f22f2979e80cbeb5f77e537a45463463
nilfs2: add missing initialization of s_mode

An fmode_t argument is passed to kill_block_super() through s_mode
member of the super_block structure.  This is used to release the
block device with the same mode, however, nilfs does not set s_mode
anywhere.

This modifies nilfs_get_sb function to properly initialize the s_mode
member.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/super.c