mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
f2fs: allow F2FS_IPU_NOCACHE for pinned file
This patch allows f2fs to submit bios of in-place writes on pinned file. Reviewed-by: Daeho Jeong <daehojeong@google.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
5cc69a27ab
commit
ae87b9c2dc
1 changed files with 2 additions and 1 deletions
|
|
@ -792,7 +792,8 @@ out:
|
|||
if (!strcmp(a->attr.name, "ipu_policy")) {
|
||||
if (t >= BIT(F2FS_IPU_MAX))
|
||||
return -EINVAL;
|
||||
if (t && f2fs_lfs_mode(sbi))
|
||||
/* allow F2FS_IPU_NOCACHE only for IPU in the pinned file */
|
||||
if (f2fs_lfs_mode(sbi) && (t & ~BIT(F2FS_IPU_NOCACHE)))
|
||||
return -EINVAL;
|
||||
SM_I(sbi)->ipu_policy = (unsigned int)t;
|
||||
return count;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue