aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-05-08 14:01:32 -0400
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-05-09 22:32:33 -0400
commit4571b82cdcd076a3b8ecaddcf9846cb52f9979e5 (patch)
treef7a69603d07fbfd14da3e0abaa13dd493d4c2f19 /fs/nilfs2
parent13e905592b3daacb6ec27a5a4169afe725c3b668 (diff)
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>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r--fs/nilfs2/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c
index 3ff2118abd7d..16939b37b7d6 100644
--- a/fs/nilfs2/super.c
+++ b/fs/nilfs2/super.c
@@ -1072,6 +1072,7 @@ nilfs_get_sb(struct file_system_type *fs_type, int flags,
1072 1072
1073 /* New superblock instance created */ 1073 /* New superblock instance created */
1074 s->s_flags = flags; 1074 s->s_flags = flags;
1075 s->s_mode = mode;
1075 strlcpy(s->s_id, bdevname(sd.bdev, b), sizeof(s->s_id)); 1076 strlcpy(s->s_id, bdevname(sd.bdev, b), sizeof(s->s_id));
1076 sb_set_blocksize(s, block_size(sd.bdev)); 1077 sb_set_blocksize(s, block_size(sd.bdev));
1077 1078