]> Git Repo - linux.git/commitdiff
erofs: update comments in inode.c
authorGao Xiang <[email protected]>
Wed, 4 Sep 2019 02:08:58 +0000 (10:08 +0800)
committerGreg Kroah-Hartman <[email protected]>
Thu, 5 Sep 2019 18:10:07 +0000 (20:10 +0200)
As Christoph suggested [1], update them all.

[1] https://lore.kernel.org/r/20190829102426[email protected]/
Reported-by: Christoph Hellwig <[email protected]>
Signed-off-by: Gao Xiang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
fs/erofs/inode.c

index f6dfd0271261e4e2e5d0d50f5ade7014da441b71..a42f5fc14df9912d6d4b1f13d3bfce581817e4c7 100644 (file)
@@ -147,7 +147,7 @@ static int fill_inline_data(struct inode *inode, void *data,
        if (vi->datalayout != EROFS_INODE_FLAT_INLINE)
                return 0;
 
-       /* fast symlink (following ext4) */
+       /* fast symlink */
        if (S_ISLNK(inode->i_mode) && inode->i_size < PAGE_SIZE) {
                char *lnk = erofs_kmalloc(sbi, inode->i_size + 1, GFP_KERNEL);
 
@@ -156,7 +156,7 @@ static int fill_inline_data(struct inode *inode, void *data,
 
                m_pofs += vi->inode_isize + vi->xattr_isize;
 
-               /* inline symlink data shouldn't across page boundary as well */
+               /* inline symlink data shouldn't cross page boundary as well */
                if (m_pofs + inode->i_size > PAGE_SIZE) {
                        kfree(lnk);
                        errln("inline data cross block boundary @ nid %llu",
@@ -165,7 +165,6 @@ static int fill_inline_data(struct inode *inode, void *data,
                        return -EFSCORRUPTED;
                }
 
-               /* get in-page inline data */
                memcpy(lnk, data + m_pofs, inode->i_size);
                lnk[inode->i_size] = '\0';
 
This page took 0.056015 seconds and 4 git commands to generate.