Skip to content

Commit fef6490

Browse files
committed
mmtmpfs-consider-end-of-file-write-in-shmem_is_huge-checkpatch-fixes
ERROR: code indent should use tabs where possible torvalds#215: FILE: mm/shmem.c:1676: +^I^I ^I^I^I^Ishmem_huge_force, vma, vm_flags);$ WARNING: please, no space before tabs torvalds#215: FILE: mm/shmem.c:1676: +^I^I ^I^I^I^Ishmem_huge_force, vma, vm_flags);$ ERROR: code indent should use tabs where possible torvalds#254: FILE: mm/shmem.c:2439: +^I ^Istruct folio **foliop, enum sgp_type sgp)$ WARNING: please, no space before tabs torvalds#254: FILE: mm/shmem.c:2439: +^I ^Istruct folio **foliop, enum sgp_type sgp)$ total: 2 errors, 2 warnings, 263 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. NOTE: Whitespace errors detected. You may wish to use scripts/cleanpatch or scripts/cleanfile ./patches/mmtmpfs-consider-end-of-file-write-in-shmem_is_huge.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Rik van Riel <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent d13640e commit fef6490

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mm/shmem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,7 @@ unsigned long shmem_allowable_huge_orders(struct inode *inode,
16731673
return 0;
16741674

16751675
global_huge = shmem_huge_global_enabled(inode, index, write_end,
1676-
shmem_huge_force, vma, vm_flags);
1676+
shmem_huge_force, vma, vm_flags);
16771677
if (!vma || !vma_is_anon_shmem(vma)) {
16781678
/*
16791679
* For tmpfs, we now only support PMD sized THP if huge page
@@ -2436,7 +2436,7 @@ static int shmem_get_folio_gfp(struct inode *inode, pgoff_t index,
24362436
* Return: 0 if successful, else a negative error code.
24372437
*/
24382438
int shmem_get_folio(struct inode *inode, pgoff_t index, loff_t write_end,
2439-
struct folio **foliop, enum sgp_type sgp)
2439+
struct folio **foliop, enum sgp_type sgp)
24402440
{
24412441
return shmem_get_folio_gfp(inode, index, write_end, foliop, sgp,
24422442
mapping_gfp_mask(inode->i_mapping), NULL, NULL);

0 commit comments

Comments
 (0)