]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
f2fs: use mnt_{want,drop}_write_file in ioctl
authorChao Yu <yuchao0@huawei.com>
Mon, 9 May 2016 11:56:32 +0000 (19:56 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 11 May 2016 16:56:32 +0000 (09:56 -0700)
commit7fb17fe44b70c854d380686d8b7e63217f9f1dcf
tree66c5a2b4945407eb8e95fd63b28c45716ca138ae
parent0080c5076409d211fbe28d6f07966f7d39e58bad
f2fs: use mnt_{want,drop}_write_file in ioctl

In interfaces of ioctl, mnt_{want,drop}_write_file should be used for:
- get exclusion against file system freezing which may used by lvm
  snapshot.
- do telling filesystem that a write is about to be performed on it, and
  make sure that the writes are permitted.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c