hc
2023-11-07 5e8555e3ea324daaf0e38422bcba48c4df33a0d9
kernel/fs/ntfs/aops.c
....@@ -106,8 +106,7 @@
106106 "0x%llx.", (unsigned long long)bh->b_blocknr);
107107 }
108108 first = page_buffers(page);
109
- local_irq_save(flags);
110
- bit_spin_lock(BH_Uptodate_Lock, &first->b_state);
109
+ flags = bh_uptodate_lock_irqsave(first);
111110 clear_buffer_async_read(bh);
112111 unlock_buffer(bh);
113112 tmp = bh;
....@@ -122,8 +121,7 @@
122121 }
123122 tmp = tmp->b_this_page;
124123 } while (tmp != bh);
125
- bit_spin_unlock(BH_Uptodate_Lock, &first->b_state);
126
- local_irq_restore(flags);
124
+ bh_uptodate_unlock_irqrestore(first, flags);
127125 /*
128126 * If none of the buffers had errors then we can set the page uptodate,
129127 * but we first have to perform the post read mst fixups, if the
....@@ -156,9 +154,7 @@
156154 unlock_page(page);
157155 return;
158156 still_busy:
159
- bit_spin_unlock(BH_Uptodate_Lock, &first->b_state);
160
- local_irq_restore(flags);
161
- return;
157
+ bh_uptodate_unlock_irqrestore(first, flags);
162158 }
163159
164160 /**