]> git.karo-electronics.de Git - linux-beck.git/commitdiff
f2fs: persist system.advise into on-disk inode
authorChao Yu <chao2.yu@samsung.com>
Mon, 23 Mar 2015 02:37:39 +0000 (10:37 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 10 Apr 2015 22:08:54 +0000 (15:08 -0700)
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>
fs/f2fs/xattr.c

index 55649bec0b4df64e458a181c914c1ac2c07c410f..b0fd2f2d0716c487ff703a7b3a1f2759f0b4fd06 100644 (file)
@@ -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;
 }