Commit e811898c authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: don't allow atomic writes for not regular files

The atomic writes only supports regular files for database.
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 8c242db9
......@@ -1518,6 +1518,9 @@ static int f2fs_ioc_start_atomic_write(struct file *filp)
if (!inode_owner_or_capable(inode))
return -EACCES;
if (!S_ISREG(inode->i_mode))
return -EINVAL;
ret = mnt_want_write_file(filp);
if (ret)
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment