Patch "f2fs: expose some sectors to user in inline data or dentry case" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
f2fs: expose some sectors to user in inline data or dentry case
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
f2fs-expose-some-sectors-to-user-in-inline-data-or-dentry-case.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
5b4267d195dd887c4412e34b5a7365baa741b679Mon Sep 17 00:00:00 2001
From: Jaegeuk Kim <[email protected]>
Date: Fri, 13 Oct 2017 10:27:45 -0700
Subject: f2fs: expose some sectors to user in inline data or dentry case
From: Jaegeuk Kim <[email protected]>
commit 5b4267d195dd887c4412e34b5a7365baa741b679 upstream.
If there's some data written through inline data or dentry, we need to shouw st_blocks. This fixes reporting zero blocks even though there is small written data.
--- fs/f2fs/file.c | 6 ++++++ 1 file changed, 6 insertions(+)
fs/f2fs/file.c +6 -0
@@ -683,6 +683,12 @@ int f2fs_getattr(const struct path *path STATX_ATTR_NODUMP);generic_fillattr (inode, stat); + +/* we need to show initial sectors used for inline_data/dentries */ +if ((S_ISREG (inode->i_mode) &&f2fs_has_inline_data (inode)) || +f2fs_has_inline_dentry (inode)) + stat->blocks += (stat->size +511 ) >>9 ; +return 0 ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/f2fs-expose-some-sectors-to-user-in-inline-data-or-dentry-case.patch