Skip to contentSkip to conversation

f2fs: persist system.advise into on-disk inode

PATCH Superseded Chao Yu 1 participant 1 message Mar 23, 2015 F2FS file system

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 4/4 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.

---
 fs/f2fs/xattr.c | 1 +
 1 file changed, 1 insertion(+)
fs/f2fs/xattr.c +1 -0
index 55649be..b0fd2f2 100644
@@ -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;
 }
 
Signature · 10 lines
2.3.3



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/