nilfs2: use mnt_want_write in ioctls where write access is needed
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 26 Jan 2010 04:59:40 +0000 (13:59 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 13 Feb 2010 03:26:02 +0000 (12:26 +0900)
A few nilfs2 ioctls need to ask for and then later release write
access to the mount in order to avoid potential write to read-only
mounts.

This adds the missing mnt_want_write and mnt_drop_write in
nilfs_ioctl_change_cpmode, nilfs_ioctl_delete_checkpoint, and
nilfs_ioctl_clean_segments.

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

Simple merge