summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-03-23 03:37:39 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2015-04-11 00:08:54 +0200
commit30c62fdb25cc0c55fa442245f7aaab074d2e701a (patch)
tree7b8307fade287e882a164772d569043748bfd607 /fs/f2fs
parentf2fs: avoid NULL pointer dereference in f2fs_xattr_advise_get (diff)
downloadlinux-30c62fdb25cc0c55fa442245f7aaab074d2e701a.tar.xz
linux-30c62fdb25cc0c55fa442245f7aaab074d2e701a.zip
f2fs: persist system.advise into on-disk inode
This patch fixes to dirty inode for persisting i_advise of f2fs inode info into on-disk inode if user sets system.advise through setxattr. Otherwise the new value will be lost. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/xattr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c
index 55649bec0b4d..b0fd2f2d0716 100644
--- a/fs/f2fs/xattr.c
+++ b/fs/f2fs/xattr.c
@@ -153,6 +153,7 @@ static int f2fs_xattr_advise_set(struct dentry *dentry, const char *name,
return -EINVAL;
F2FS_I(inode)->i_advise |= *(char *)value;
+ mark_inode_dirty(inode);
return 0;
}