mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 4/4] f2fs: persist system.advise into on-disk inode
@ 2015-03-23  2:37 Chao Yu
  0 siblings, 0 replies; only message in thread
From: Chao Yu @ 2015-03-23  2:37 UTC (permalink / raw)
  To: Jaegeuk Kim, Changman Lee; +Cc: linux-f2fs-devel, linux-kernel

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>
---
 fs/f2fs/xattr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c
index 55649be..b0fd2f2 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;
 }
 
-- 
2.3.3



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-23  2:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-23  2:37 [PATCH 4/4] f2fs: persist system.advise into on-disk inode Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome