diff options
Diffstat (limited to 'fs/ntfs/attrib.c')
| -rw-r--r-- | fs/ntfs/attrib.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/ntfs/attrib.c b/fs/ntfs/attrib.c index 1c08fefe487a..92dabdcf2b80 100644 --- a/fs/ntfs/attrib.c +++ b/fs/ntfs/attrib.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * attrib.c - NTFS attribute operations. Part of the Linux-NTFS project. | 2 | * attrib.c - NTFS attribute operations. Part of the Linux-NTFS project. |
| 3 | * | 3 | * |
| 4 | * Copyright (c) 2001-2006 Anton Altaparmakov | 4 | * Copyright (c) 2001-2007 Anton Altaparmakov |
| 5 | * Copyright (c) 2002 Richard Russon | 5 | * Copyright (c) 2002 Richard Russon |
| 6 | * | 6 | * |
| 7 | * This program/include file is free software; you can redistribute it and/or | 7 | * This program/include file is free software; you can redistribute it and/or |
| @@ -2500,7 +2500,7 @@ int ntfs_attr_set(ntfs_inode *ni, const s64 ofs, const s64 cnt, const u8 val) | |||
| 2500 | struct page *page; | 2500 | struct page *page; |
| 2501 | u8 *kaddr; | 2501 | u8 *kaddr; |
| 2502 | pgoff_t idx, end; | 2502 | pgoff_t idx, end; |
| 2503 | unsigned int start_ofs, end_ofs, size; | 2503 | unsigned start_ofs, end_ofs, size; |
| 2504 | 2504 | ||
| 2505 | ntfs_debug("Entering for ofs 0x%llx, cnt 0x%llx, val 0x%hx.", | 2505 | ntfs_debug("Entering for ofs 0x%llx, cnt 0x%llx, val 0x%hx.", |
| 2506 | (long long)ofs, (long long)cnt, val); | 2506 | (long long)ofs, (long long)cnt, val); |
| @@ -2548,6 +2548,8 @@ int ntfs_attr_set(ntfs_inode *ni, const s64 ofs, const s64 cnt, const u8 val) | |||
| 2548 | kunmap_atomic(kaddr, KM_USER0); | 2548 | kunmap_atomic(kaddr, KM_USER0); |
| 2549 | set_page_dirty(page); | 2549 | set_page_dirty(page); |
| 2550 | page_cache_release(page); | 2550 | page_cache_release(page); |
| 2551 | balance_dirty_pages_ratelimited(mapping); | ||
| 2552 | cond_resched(); | ||
| 2551 | if (idx == end) | 2553 | if (idx == end) |
| 2552 | goto done; | 2554 | goto done; |
| 2553 | idx++; | 2555 | idx++; |
| @@ -2604,6 +2606,8 @@ int ntfs_attr_set(ntfs_inode *ni, const s64 ofs, const s64 cnt, const u8 val) | |||
| 2604 | kunmap_atomic(kaddr, KM_USER0); | 2606 | kunmap_atomic(kaddr, KM_USER0); |
| 2605 | set_page_dirty(page); | 2607 | set_page_dirty(page); |
| 2606 | page_cache_release(page); | 2608 | page_cache_release(page); |
| 2609 | balance_dirty_pages_ratelimited(mapping); | ||
| 2610 | cond_resched(); | ||
| 2607 | } | 2611 | } |
| 2608 | done: | 2612 | done: |
| 2609 | ntfs_debug("Done."); | 2613 | ntfs_debug("Done."); |
