]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/f2fs/xattr.c
ocfs2: return non-zero st_blocks for inline data
[karo-tx-linux.git] / fs / f2fs / xattr.c
index 036952a945faf918378dae2dc25a144330d14864..10f1e784fa2390148aaa37f527526162be2d724d 100644 (file)
@@ -571,7 +571,7 @@ int f2fs_setxattr(struct inode *inode, int index, const char *name,
        if (ipage)
                return __f2fs_setxattr(inode, index, name, value,
                                                size, ipage, flags);
-       f2fs_balance_fs(sbi);
+       f2fs_balance_fs(sbi, true);
 
        f2fs_lock_op(sbi);
        /* protect xattr_ver */
@@ -580,5 +580,6 @@ int f2fs_setxattr(struct inode *inode, int index, const char *name,
        up_write(&F2FS_I(inode)->i_sem);
        f2fs_unlock_op(sbi);
 
+       f2fs_update_time(sbi, REQ_TIME);
        return err;
 }