Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 12, 2021. It is now read-only.

Commit 3a8295e

Browse files
akpm00sfrothwell
authored andcommitted
shmem-fix-faulting-into-a-hole-while-its-punched-checkpatch-fixes
ERROR: trailing whitespace torvalds#64: FILE: mm/shmem.c:1243: +^I * wait on i_mutex to be released if vmf->flags permits, $ WARNING: Missing a blank line after declarations torvalds#68: FILE: mm/shmem.c:1247: + struct shmem_falloc *shmem_falloc; + spin_lock(&inode->i_lock); total: 1 errors, 1 warnings, 92 lines checked NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or scripts/cleanfile ./patches/shmem-fix-faulting-into-a-hole-while-its-punched.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent a2e3b44 commit 3a8295e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mm/shmem.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,10 +1240,11 @@ static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
12401240
* prevent the hole-punch from ever completing: which in turn
12411241
* locks writers out with its hold on i_mutex. So refrain from
12421242
* faulting pages into the hole while it's being punched, and
1243-
* wait on i_mutex to be released if vmf->flags permits,
1243+
* wait on i_mutex to be released if vmf->flags permits.
12441244
*/
12451245
if (unlikely(inode->i_private)) {
12461246
struct shmem_falloc *shmem_falloc;
1247+
12471248
spin_lock(&inode->i_lock);
12481249
shmem_falloc = inode->i_private;
12491250
if (!shmem_falloc ||

0 commit comments

Comments
 (0)