Skip to content

Commit a10dceb

Browse files
Sebastian Andrzej Siewiortorvalds
authored andcommitted
fs/ntfs/aops.c: don't disable interrupts during kmap_atomic()
ntfs_end_buffer_async_read() disables interrupts around kmap_atomic(). This is a leftover from the old kmap_atomic() implementation which relied on fixed mapping slots, so the caller had to make sure that the same slot could not be reused from an interrupting context. kmap_atomic() was changed to dynamic slots long ago and commit 1ec9c5d ("include/linux/highmem.h: remove the second argument of k[un]map_atomic()") removed the slot assignements, but the callers were not checked for now redundant interrupt disabling. Remove the conditional interrupt disable. Link: http://lkml.kernel.org/r/20180611144913.gln5mklhqcrfsoom@linutronix.de Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Anton Altaparmakov <anton@tuxera.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent bed95c4 commit a10dceb

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎fs/ntfs/aops.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,11 @@ static void ntfs_end_buffer_async_read(struct buffer_head *bh, int uptodate)
9393
ofs = 0;
9494
if (file_ofs < init_size)
9595
ofs = init_size - file_ofs;
96-
local_irq_save(flags);
9796
kaddr = kmap_atomic(page);
9897
memset(kaddr + bh_offset(bh) + ofs, 0,
9998
bh->b_size - ofs);
10099
flush_dcache_page(page);
101100
kunmap_atomic(kaddr);
102-
local_irq_restore(flags);
103101
}
104102
} else {
105103
clear_buffer_uptodate(bh);
@@ -146,13 +144,11 @@ static void ntfs_end_buffer_async_read(struct buffer_head *bh, int uptodate)
146144
recs = PAGE_SIZE / rec_size;
147145
/* Should have been verified before we got here... */
148146
BUG_ON(!recs);
149-
local_irq_save(flags);
150147
kaddr = kmap_atomic(page);
151148
for (i = 0; i < recs; i++)
152149
post_read_mst_fixup((NTFS_RECORD*)(kaddr +
153150
i * rec_size), rec_size);
154151
kunmap_atomic(kaddr);
155-
local_irq_restore(flags);
156152
flush_dcache_page(page);
157153
if (likely(page_uptodate && !PageError(page)))
158154
SetPageUptodate(page);

0 commit comments

Comments
 (0)