summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2018-07-19 17:57:54 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2018-08-01 20:52:36 +0200
commit797c1cb56ba58bf42742e9446226345a6216d832 (patch)
treedf0c8215c666c02446cb6bffab81df1e031d436d /fs/f2fs/file.c
parentf2fs: fix wrong kernel message when recover fsync data on ro fs (diff)
downloadlinux-797c1cb56ba58bf42742e9446226345a6216d832.tar.xz
linux-797c1cb56ba58bf42742e9446226345a6216d832.zip
f2fs: restrict setting up inode.i_advise
In order to give advise to f2fs to recognize hot/cold file, it is possible that we can set specific bit in inode.i_advise through setxattr(), but there are several bits which are used internally, such as encrypt_bit, keep_size_bit, they should never be changed through setxattr(). So that this patch 1) adds FADVISE_MODIFIABLE_BITS to filter modifiable bits user given, 2) supports to clear {hot,cold}_file bits. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions